47 #define OSMO_GSUP_PORT 4222 50 #define OSMO_GSUP_MAX_NUM_PDP_INFO 10 52 #define OSMO_GSUP_MAX_NUM_AUTH_INFO 5 54 #define OSMO_GSUP_MAX_MSISDN_LEN 9 56 #define OSMO_GSUP_PDP_TYPE_SIZE 2 115 #define OSMO_GSUP_IS_MSGT_REQUEST(msgt) (((msgt) & 0b00000011) == 0b00) 116 #define OSMO_GSUP_IS_MSGT_ERROR(msgt) (((msgt) & 0b00000011) == 0b01) 117 #define OSMO_GSUP_TO_MSGT_ERROR(msgt) (((msgt) & 0b11111100) | 0b01) 120 static inline const char *
osmo_gsup_cancel_type
Definition: gsup.h:124
const uint8_t * auts
Definition: gsup.h:173
const struct value_string osmo_gsup_message_type_names[]
Definition: gsup.c:39
const char * get_value_string(const struct value_string *vs, uint32_t val)
#define GSM23003_IMSI_MAX_DIGITS
Definition: gsm_23_003.h:6
size_t num_pdp_infos
Definition: gsup.h:168
#define OSMO_GSUP_MAX_NUM_AUTH_INFO
Maximum number of auth info inside osmo_gsup_message.
Definition: gsup.h:52
uint16_t pdp_type
Type of PDP context.
Definition: gsup.h:139
const uint8_t * pdp_charg_enc
Definition: gsup.h:176
int freeze_ptmsi
Definition: gsup.h:164
int have_info
Definition: gsup.h:137
int pdp_info_compl
Definition: gsup.h:163
const uint8_t * msisdn_enc
Definition: gsup.h:169
size_t hlr_enc_len
Definition: gsup.h:172
uint8_t cause
Definition: gsm_04_08.h:504
unsigned int context_id
Definition: gsup.h:136
osmo_gsup_message_type
GSUP message type.
Definition: gsup.h:87
static const char * osmo_gsup_message_type_name(enum osmo_gsup_message_type val)
Definition: gsup.h:121
osmo_gsup_iei
Information Element Identifiers for GSUP IEs.
Definition: gsup.h:59
const uint8_t * hlr_enc
Definition: gsup.h:171
size_t msisdn_enc_len
Definition: gsup.h:170
size_t qos_enc_len
length (in octets) of qos_enc
Definition: gsup.h:149
int osmo_gsup_decode(const uint8_t *data, size_t data_len, struct osmo_gsup_message *gsup_msg)
Decode (parse) a GSUP message.
Definition: gsup.c:219
#define OSMO_GSUP_MAX_NUM_PDP_INFO
Maximum nubmer of PDP inside osmo_gsup_message.
Definition: gsup.h:50
parsed/decoded PDP context information
Definition: gsup.h:135
size_t pdp_charg_enc_len
Definition: gsup.h:177
gsm48_gmm_cause
Definition: gsm_04_08_gprs.h:175
parsed/decoded GSUP protocol message
Definition: gsup.h:158
const uint8_t * apn_enc
APN information, still in encoded form.
Definition: gsup.h:142
size_t pdp_charg_enc_len
length (in octets) of pdp_charg_enc
Definition: gsup.h:154
const uint8_t * pdp_charg_enc
PDP Charging Characteristics, still in encoded form.
Definition: gsup.h:152
const uint8_t * rand
Definition: gsup.h:174
int osmo_gsup_encode(struct msgb *msg, const struct osmo_gsup_message *gsup_msg)
Encode a GSUP message.
Definition: gsup.c:480
const uint8_t * qos_enc
QoS information, still in encoded form.
Definition: gsup.h:147
size_t apn_enc_len
length (in octets) of apn_enc
Definition: gsup.h:144
uint8_t data[0]
message payload data
Definition: gsm_03_41.h:109
osmo_gsup_cn_domain
Definition: gsup.h:129
size_t num_auth_vectors
Definition: gsup.h:166