aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/apn.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/gsm/apn.h')
-rw-r--r--include/osmocom/gsm/apn.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/osmocom/gsm/apn.h b/include/osmocom/gsm/apn.h
new file mode 100644
index 00000000..d8d73996
--- /dev/null
+++ b/include/osmocom/gsm/apn.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <stdint.h>
+
+/* 23.003 Section 9.1.1, excluding any terminating zero byte */
+#define APN_NI_MAXLEN 63
+
+/* 23.003 Section 9.1, excluding any terminating zero byte */
+#define APN_MAXLEN 100
+
+char *osmo_apn_qualify(unsigned int mcc, unsigned int mnc, const char *ni);
+char *osmo_apn_qualify_from_imsi(const char *imsi,
+ const char *ni, int have_3dig_mnc);