libosmogb  0.9.6.315-40e62
Osmocom Gb library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
gprs_bssgp_util.c File Reference

GPRS BSSGP protocol implementation as per 3GPP TS 08.18. More...

#include <errno.h>
#include <stdint.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/byteswap.h>
#include <osmocom/gsm/tlv.h>
#include <osmocom/core/talloc.h>
#include <osmocom/gprs/gprs_bssgp.h>
#include <osmocom/gprs/gprs_ns.h>
#include "common_vty.h"

Functions

const char * bssgp_cause_str (enum gprs_bssgp_cause cause)
 
const char * bssgp_pdu_str (enum bssgp_pdu_type pdu)
 
struct msgb * bssgp_msgb_alloc (void)
 
struct msgb * bssgp_msgb_copy (const struct msgb *msg, const char *name)
 
int bssgp_tx_simple_bvci (uint8_t pdu_type, uint16_t nsei, uint16_t bvci, uint16_t ns_bvci)
 
int bssgp_tx_status (uint8_t cause, uint16_t *bvci, struct msgb *orig_msg)
 

Variables

struct gprs_ns_instbssgp_nsi
 
static const struct value_string bssgp_cause_strings []
 
static const struct value_string bssgp_pdu_strings []
 

Detailed Description

GPRS BSSGP protocol implementation as per 3GPP TS 08.18.

Function Documentation

struct msgb* bssgp_msgb_copy ( const struct msgb *  msg,
const char *  name 
)
const char* bssgp_pdu_str ( enum bssgp_pdu_type  pdu)
int bssgp_tx_simple_bvci ( uint8_t  pdu_type,
uint16_t  nsei,
uint16_t  bvci,
uint16_t  ns_bvci 
)

Variable Documentation

const struct value_string bssgp_cause_strings[]
static
Initial value:
= {
{ BSSGP_CAUSE_PROC_OVERLOAD, "Processor overload" },
{ BSSGP_CAUSE_EQUIP_FAIL, "Equipment Failure" },
{ BSSGP_CAUSE_TRASIT_NET_FAIL, "Transit netowkr service failure" },
{ BSSGP_CAUSE_CAPA_GREATER_0KPBS,"Transmission capacity modified" },
{ BSSGP_CAUSE_UNKNOWN_MS, "Unknown MS" },
{ BSSGP_CAUSE_UNKNOWN_BVCI, "Unknown BVCI" },
{ BSSGP_CAUSE_CELL_TRAF_CONG, "Cell traffic congestion" },
{ BSSGP_CAUSE_SGSN_CONG, "SGSN congestion" },
{ BSSGP_CAUSE_OML_INTERV, "O&M intervention" },
{ BSSGP_CAUSE_BVCI_BLOCKED, "BVCI blocked" },
{ BSSGP_CAUSE_PFC_CREATE_FAIL, "PFC create failure" },
{ BSSGP_CAUSE_SEM_INCORR_PDU, "Semantically incorrect PDU" },
{ BSSGP_CAUSE_INV_MAND_INF, "Invalid mandatory information" },
{ BSSGP_CAUSE_MISSING_MAND_IE, "Missing mandatory IE" },
{ BSSGP_CAUSE_MISSING_COND_IE, "Missing conditional IE" },
{ BSSGP_CAUSE_UNEXP_COND_IE, "Unexpected conditional IE" },
{ BSSGP_CAUSE_COND_IE_ERR, "Conditional IE error" },
{ BSSGP_CAUSE_PDU_INCOMP_STATE, "PDU incompatible with protocol state" },
{ BSSGP_CAUSE_PROTO_ERR_UNSPEC, "Protocol error - unspecified" },
{ BSSGP_CAUSE_PDU_INCOMP_FEAT, "PDU not compatible with feature set" },
{ 0, NULL },
}
Definition: gsm_08_18.h:129
Definition: gsm_08_18.h:124
Definition: gsm_08_18.h:138
Definition: gsm_08_18.h:139
Definition: gsm_08_18.h:142
Definition: gsm_08_18.h:136
Definition: gsm_08_18.h:126
Definition: gsm_08_18.h:141
Definition: gsm_08_18.h:130
Definition: gsm_08_18.h:133
Definition: gsm_08_18.h:140
Definition: gsm_08_18.h:134
Definition: gsm_08_18.h:132
Definition: gsm_08_18.h:127
Definition: gsm_08_18.h:125
Definition: gsm_08_18.h:123
Definition: gsm_08_18.h:131
Definition: gsm_08_18.h:135
Definition: gsm_08_18.h:128
Definition: gsm_08_18.h:137

Referenced by bssgp_cause_str().

const struct value_string bssgp_pdu_strings[]
static

Referenced by bssgp_pdu_str().