libosmogsm
0.9.6.20171026
Osmocom GSM library
|
Osmocom Generic Subscriber Update Protocol message encoder/decoder. More...
#include <stdint.h>
#include <osmocom/core/msgb.h>
#include <osmocom/gsm/protocol/gsm_23_003.h>
#include <osmocom/gsm/protocol/gsm_04_08_gprs.h>
#include <osmocom/crypt/auth.h>
Go to the source code of this file.
Data Structures | |
struct | osmo_gsup_pdp_info |
parsed/decoded PDP context information More... | |
struct | osmo_gsup_message |
parsed/decoded GSUP protocol message More... | |
Macros | |
#define | OSMO_GSUP_PORT 4222 |
#define | OSMO_GSUP_MAX_NUM_PDP_INFO 10 /* GSM 09.02 limits this to 50 */ |
Maximum nubmer of PDP inside osmo_gsup_message. More... | |
#define | OSMO_GSUP_MAX_NUM_AUTH_INFO 5 |
Maximum number of auth info inside osmo_gsup_message. More... | |
#define | OSMO_GSUP_MAX_MSISDN_LEN 9 |
Maximum number of octets encoding MSISDN in BCD format. More... | |
#define | OSMO_GSUP_PDP_TYPE_SIZE 2 |
#define | OSMO_GSUP_IS_MSGT_REQUEST(msgt) (((msgt) & 0b00000011) == 0b00) |
#define | OSMO_GSUP_IS_MSGT_ERROR(msgt) (((msgt) & 0b00000011) == 0b01) |
#define | OSMO_GSUP_TO_MSGT_ERROR(msgt) (((msgt) & 0b11111100) | 0b01) |
Functions | |
static const char * | osmo_gsup_message_type_name (enum osmo_gsup_message_type val) |
int | osmo_gsup_decode (const uint8_t *const_data, size_t data_len, struct osmo_gsup_message *gsup_msg) |
Decode (parse) a GSUP message. More... | |
void | osmo_gsup_encode (struct msgb *msg, const struct osmo_gsup_message *gsup_msg) |
Encode a GSUP message. More... | |
Variables | |
const struct value_string | osmo_gsup_message_type_names [] |
Osmocom Generic Subscriber Update Protocol message encoder/decoder.