libosmogsm
0.9.6.269-c2af
Osmocom GSM library
|
Osmocom Generic Subscriber Update Protocol. More...
Functions | |
static int | decode_pdp_info (uint8_t *data, size_t data_len, struct osmo_gsup_pdp_info *pdp_info) |
static int | decode_auth_info (uint8_t *data, size_t data_len, struct osmo_auth_vector *auth_vector) |
int | osmo_gsup_decode (const uint8_t *const_data, size_t data_len, struct osmo_gsup_message *gsup_msg) |
static void | encode_pdp_info (struct msgb *msg, enum osmo_gsup_iei iei, const struct osmo_gsup_pdp_info *pdp_info) |
static void | encode_auth_info (struct msgb *msg, enum osmo_gsup_iei iei, const struct osmo_auth_vector *auth_vector) |
void | osmo_gsup_encode (struct msgb *msg, const struct osmo_gsup_message *gsup_msg) |
Variables | |
const struct value_string | osmo_gsup_message_type_names [] |
Osmocom Generic Subscriber Update Protocol.
int osmo_gsup_decode | ( | const uint8_t * | const_data, |
size_t | data_len, | ||
struct osmo_gsup_message * | gsup_msg | ||
) |
Decode (parse) a GSUP message
[in] | const_data | input data to be parsed |
[in] | data_len | length of input (const_data) |
[out] | gsup_msg | callee-allocated output data structure |
References gsm48_decode_bcd_number(), osmo_match_shift_tlv(), osmo_shift_tlv(), and osmo_shift_v_fixed().
void osmo_gsup_encode | ( | struct msgb * | msg, |
const struct osmo_gsup_message * | gsup_msg | ||
) |
Encode a GSUP message
[out] | msg | message buffer to which encoded message is written |
[in] | gsup_msg | osmo_gsup_message data to be encoded |
References gsm48_encode_bcd_number(), msgb_tlv_put(), and msgb_v_put().
const struct value_string osmo_gsup_message_type_names[] |