Harald Welte | 908085c | 2014-10-01 16:18:11 +0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | |
| 5 | /* 23.003 Section 9.1.1, excluding any terminating zero byte */ |
| 6 | #define APN_NI_MAXLEN 63 |
| 7 | |
| 8 | /* 23.003 Section 9.1, excluding any terminating zero byte */ |
| 9 | #define APN_MAXLEN 100 |
| 10 | |
| 11 | char *osmo_apn_qualify(unsigned int mcc, unsigned int mnc, const char *ni); |
Neels Hofmeyr | 9e57a5a | 2015-12-21 11:20:14 +0100 | [diff] [blame] | 12 | |
| 13 | /* Compose a string of the form '<ni>.mnc001.mcc002.gprs\0', returned in a |
| 14 | * static buffer. */ |
Harald Welte | 908085c | 2014-10-01 16:18:11 +0800 | [diff] [blame] | 15 | char *osmo_apn_qualify_from_imsi(const char *imsi, |
| 16 | const char *ni, int have_3dig_mnc); |
Jacob Erlbeck | 8114294 | 2015-11-17 08:42:05 +0100 | [diff] [blame] | 17 | |
| 18 | int osmo_apn_from_str(uint8_t *apn_enc, size_t max_apn_enc_len, const char *str); |
| 19 | char * osmo_apn_to_str(char *out_str, const uint8_t *apn_enc, size_t apn_enc_len); |