libosmogb UNKNOWN
Osmocom Gb library
|
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 "gprs_bssgp_internal.h"
Macros | |
#define | DL BSSGP_PDUF_DL |
#define | UL BSSGP_PDUF_UL |
#define | SIG BSSGP_PDUF_SIG |
#define | PTP BSSGP_PDUF_PTP |
#define | PTM BSSGP_PDUF_PTM |
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) |
GPRS BSSGP protocol implementation as per 3GPP TS 08.18.
#define DL BSSGP_PDUF_DL |
#define PTM BSSGP_PDUF_PTM |
#define PTP BSSGP_PDUF_PTP |
#define SIG BSSGP_PDUF_SIG |
#define UL BSSGP_PDUF_UL |
const char * bssgp_cause_str | ( | enum gprs_bssgp_cause | cause | ) |
References bssgp_cause_strings, cause, and get_value_string().
Referenced by bssgp_bvc_fsm_allstate(), bssgp_bvc_fsm_blocked(), bssgp_bvc_fsm_unblocked(), bssgp_rx_bvc_reset(), bssgp_rx_status(), bssgp_tx_bvc_block(), bssgp_tx_bvc_ptp_reset(), bssgp_tx_status(), common_tx_radio_status2(), and tx_bvc_reset_nsei_bvci().
References msg, msgb_bssgph, and OSMO_ASSERT.
Referenced by bssgp2_enc_bvc_block(), bssgp2_enc_bvc_block_ack(), bssgp2_enc_bvc_reset(), bssgp2_enc_bvc_reset_ack(), bssgp2_enc_bvc_unblock(), bssgp2_enc_bvc_unblock_ack(), bssgp2_enc_fc_bvc(), bssgp2_enc_fc_bvc_ack(), bssgp2_enc_fc_ms(), bssgp2_enc_fc_ms_ack(), bssgp2_enc_flush_ll(), bssgp2_enc_status(), bssgp_encode_rim_pdu(), bssgp_tx_bvc_block(), bssgp_tx_bvc_unblock(), bssgp_tx_fc_bvc(), bssgp_tx_fc_bvc_ack(), bssgp_tx_fc_ms(), bssgp_tx_flush_ll_ack(), bssgp_tx_llc_discarded(), bssgp_tx_paging(), bssgp_tx_ra_capa_upd(), bssgp_tx_resume(), bssgp_tx_resume_ack(), bssgp_tx_resume_nack(), bssgp_tx_simple_bvci(), bssgp_tx_status(), bssgp_tx_suspend(), bssgp_tx_suspend_ack(), bssgp_tx_suspend_nack(), common_tx_radio_status(), and tx_bvc_reset_nsei_bvci().
References msgb::len, LIBGB_MSGB_CB, msg, msgb_copy(), and name.
const char * bssgp_pdu_str | ( | enum bssgp_pdu_type | pdu | ) |
References bssgp_pdu_strings, and get_value_string().
Referenced by bssgp_rcvmsg(), bssgp_rx_ptp(), bssgp_rx_rim(), bssgp_rx_sign(), bssgp_tx_rim(), and bssgp_tx_rim_encoded().
References BSSGP_IE_BVCI, bssgp_msgb_alloc(), bssgp_ns_send, bssgp_ns_send_data, bvci, msg, msgb_bvci, msgb_nsei, nsei, osmo_htons, pdu_type, and bssgp_normal_hdr::pdu_type.
Referenced by bssgp_bvc_fsm_unblocked(), bssgp_rx_bvc_block(), bssgp_rx_bvc_reset(), and bssgp_rx_bvc_unblock().
References BSSGP_CAUSE_BVCI_BLOCKED, bssgp_cause_str(), BSSGP_CAUSE_UNKNOWN_BVCI, BSSGP_IE_BVCI, BSSGP_IE_CAUSE, BSSGP_IE_PDU_IN_ERROR, bssgp_msgb_alloc(), bssgp_ns_send, bssgp_ns_send_data, BSSGP_PDUT_STATUS, bvci, cause, DLBSSGP, LOGL_ERROR, LOGL_NOTICE, LOGP, msg, msgb_bssgp_len, msgb_bssgph, msgb_bvci, msgb_nsei, osmo_htons, and bssgp_normal_hdr::pdu_type.
Referenced by bssgp_rcvmsg(), bssgp_rx_bvc_block(), bssgp_rx_bvc_unblock(), bssgp_rx_fc_bvc(), bssgp_rx_llc_disc(), bssgp_rx_ptp(), bssgp_rx_resume(), bssgp_rx_rim(), bssgp_rx_sign(), bssgp_rx_suspend(), and bssgp_rx_ul_ud().
|
static |
|
static |
|
static |
Referenced by bssgp_cause_str().
struct gprs_ns_inst* bssgp_nsi |
Referenced by _gprs_ns_sendmsg().
|
static |
Referenced by bssgp_pdu_str().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const struct osmo_tlv_prot_def osmo_pdef_bssgp |
Referenced by bssgp_parse_rim_pdu(), bssgp_pdu_type_flags(), fi_tx_ptp(), and fi_tx_sig().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |