#include <stdint.h>
Go to the source code of this file.
|
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) |
|
int | osmo_apn_from_str (uint8_t *apn_enc, size_t max_apn_enc_len, const char *str) |
| Convert a dot-separated string into an encoded APN. More...
|
|
char * | osmo_apn_to_str (char *out_str, const uint8_t *apn_enc, size_t apn_enc_len) |
| Convert an encoded APN into a dot-separated string. More...
|
|
◆ APN_MAXLEN
◆ APN_NI_MAXLEN
◆ osmo_apn_from_str()
int osmo_apn_from_str |
( |
uint8_t * |
apn_enc, |
|
|
size_t |
max_apn_enc_len, |
|
|
const char * |
str |
|
) |
| |
Convert a dot-separated string into an encoded APN.
- Parameters
-
apn_enc | the encoded APN |
max_apn_enc_len | the size of the apn_enc buffer |
str | the source string |
- Returns
- out_str on success and NULL otherwise
References len.
◆ osmo_apn_qualify()
char* osmo_apn_qualify |
( |
unsigned int |
mcc, |
|
|
unsigned int |
mnc, |
|
|
const char * |
ni |
|
) |
| |
◆ osmo_apn_qualify_from_imsi()
char* osmo_apn_qualify_from_imsi |
( |
const char * |
imsi, |
|
|
const char * |
ni, |
|
|
int |
have_3dig_mnc |
|
) |
| |
◆ osmo_apn_to_str()
char* osmo_apn_to_str |
( |
char * |
out_str, |
|
|
const uint8_t * |
apn_enc, |
|
|
size_t |
apn_enc_len |
|
) |
| |
Convert an encoded APN into a dot-separated string.
- Parameters
-
out_str | the destination buffer (size must be >= max(app_enc_len,1)) |
apn_enc | the encoded APN |
apn_enc_len | the length of the encoded APN |
- Returns
- out_str on success and NULL otherwise