libosmogsm  0.10.2
Osmocom GSM library
gsm23003.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  osmo_plmn_id
 
struct  osmo_location_area_id
 
struct  osmo_routing_area_id
 
struct  osmo_cell_global_id
 
struct  osmo_service_area_id
 
struct  osmo_shared_network_area_id
 
struct  osmo_gsn_address
 
struct  osmo_tracking_area_id
 
struct  osmo_eutran_cell_global_id
 
struct  osmo_mme_id
 
struct  osmo_gummei
 
struct  osmo_guti
 

Enumerations

enum  osmo_gsn_addr_type {
  GSN_ADDR_TYPE_IPV4 = 0,
  GSN_ADDR_TYPE_IPV6 = 1
}
 

Functions

bool osmo_imsi_str_valid (const char *imsi)
 Determine whether the given IMSI is valid according to 3GPP TS 23.003. More...
 
bool osmo_msisdn_str_valid (const char *msisdn)
 Determine whether the given MSISDN is valid according to 3GPP TS 23.003. More...
 

Enumeration Type Documentation

◆ osmo_gsn_addr_type

Enumerator
GSN_ADDR_TYPE_IPV4 
GSN_ADDR_TYPE_IPV6 

Function Documentation

◆ osmo_imsi_str_valid()

bool osmo_imsi_str_valid ( const char *  imsi)

Determine whether the given IMSI is valid according to 3GPP TS 23.003.

Parameters
imsiIMSI digits in ASCII string representation.
Returns
true when the IMSI is valid, false for invalid characters or number of digits.

References GSM23003_IMSI_MAX_DIGITS, GSM23003_IMSI_MIN_DIGITS, and is_n_digits().

◆ osmo_msisdn_str_valid()

bool osmo_msisdn_str_valid ( const char *  msisdn)

Determine whether the given MSISDN is valid according to 3GPP TS 23.003.

Parameters
msisdnMSISDN digits in ASCII string representation.
Returns
true when the MSISDN is valid, false for invalid characters or number of digits.

References is_n_digits().