|
libosmogb 1.11.0.52-28973f
Osmocom Gb library
|
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | bssgp_bvc_fsm_ops |
Functions | |
| struct osmo_fsm_inst * | bssgp_bvc_fsm_alloc_sig_bss (void *ctx, struct gprs_ns2_inst *nsi, uint16_t nsei, uint32_t features) |
| Allocate a SIGNALING-BVC FSM for the BSS role (facing a remote SGSN). More... | |
| struct osmo_fsm_inst * | bssgp_bvc_fsm_alloc_ptp_bss (void *ctx, struct gprs_ns2_inst *nsi, uint16_t nsei, uint16_t bvci, const struct gprs_ra_id *ra_id, uint16_t cell_id) |
| Allocate a PTP-BVC FSM for the BSS role (facing a remote SGSN). More... | |
| struct osmo_fsm_inst * | bssgp_bvc_fsm_alloc_sig_sgsn (void *ctx, struct gprs_ns2_inst *nsi, uint16_t nsei, uint32_t features) |
| Allocate a SIGNALING-BVC FSM for the SGSN role (facing a remote BSS). More... | |
| struct osmo_fsm_inst * | bssgp_bvc_fsm_alloc_ptp_sgsn (void *ctx, struct gprs_ns2_inst *nsi, uint16_t nsei, uint16_t bvci) |
| Allocate a PTP-BVC FSM for the SGSN role (facing a remote BSS). More... | |
| void | bssgp_bvc_fsm_set_ops (struct osmo_fsm_inst *fi, const struct bssgp_bvc_fsm_ops *ops, void *ops_priv) |
| Set the 'operations' callbacks + private data. More... | |
| bool | bssgp_bvc_fsm_is_unblocked (struct osmo_fsm_inst *fi) |
| Return if the given BVC FSM is in UNBLOCKED state. More... | |
| uint8_t | bssgp_bvc_fsm_get_block_cause (struct osmo_fsm_inst *fi) |
| Determine the cause value why given BVC FSM is blocked. More... | |
| uint32_t | bssgp_bvc_fsm_get_features_advertised (struct osmo_fsm_inst *fi) |
| Return the advertised features / extended features. More... | |
| uint32_t | bssgp_bvc_fsm_get_features_received (struct osmo_fsm_inst *fi) |
| Return the received features / extended features. More... | |
| uint32_t | bssgp_bvc_fsm_get_features_negotiated (struct osmo_fsm_inst *fi) |
| Return the negotiated features / extended features. More... | |
| void | bssgp_bvc_fsm_set_max_pdu_len (struct osmo_fsm_inst *fi, uint16_t max_pdu_len) |
| Set the maximum size of a BSSGP PDU. More... | |
| uint16_t | bssgp_bvc_fsm_get_max_pdu_len (const struct osmo_fsm_inst *fi) |
| Return the maximum size of a BSSGP PDU ! On the NS layer this corresponds to the size of an NS SDU in NS-UNITDATA (3GPP TS 48.016 Ch. More... | |
| struct osmo_fsm_inst * bssgp_bvc_fsm_alloc_ptp_bss | ( | void * | ctx, |
| struct gprs_ns2_inst * | nsi, | ||
| uint16_t | nsei, | ||
| uint16_t | bvci, | ||
| const struct gprs_ra_id * | ra_id, | ||
| uint16_t | cell_id | ||
| ) |
Allocate a PTP-BVC FSM for the BSS role (facing a remote SGSN).
| [in] | ctx | talloc context from which to allocate |
| [in] | nsi | NS Instance on which this BVC operates |
| [in] | nsei | NS Entity Identifier on which this BVC operates |
| [in] | bvci | BVCI of this FSM |
| [in] | ra_id | Routing Area Identity of the cell (reported to SGSN) |
| [in] | cell_id | Cell Identifier of the cell (reported to SGSN) |
References _bvc_fsm_alloc(), bvci, bvc_fsm_priv::cell_id, nsei, bvc_fsm_priv::nsi, OSMO_ASSERT, osmo_fsm_inst::priv, and bvc_fsm_priv::ra_id.
| struct osmo_fsm_inst * bssgp_bvc_fsm_alloc_ptp_sgsn | ( | void * | ctx, |
| struct gprs_ns2_inst * | nsi, | ||
| uint16_t | nsei, | ||
| uint16_t | bvci | ||
| ) |
Allocate a PTP-BVC FSM for the SGSN role (facing a remote BSS).
| [in] | ctx | talloc context from which to allocate |
| [in] | nsi | NS Instance on which this BVC operates |
| [in] | nsei | NS Entity Identifier on which this BVC operates |
| [in] | bvci | BVCI of this FSM |
References _bvc_fsm_alloc(), bvci, nsei, and OSMO_ASSERT.
| struct osmo_fsm_inst * bssgp_bvc_fsm_alloc_sig_bss | ( | void * | ctx, |
| struct gprs_ns2_inst * | nsi, | ||
| uint16_t | nsei, | ||
| uint32_t | features | ||
| ) |
Allocate a SIGNALING-BVC FSM for the BSS role (facing a remote SGSN).
| [in] | ctx | talloc context from which to allocate |
| [in] | nsi | NS Instance on which this BVC operates |
| [in] | nsei | NS Entity Identifier on which this BVC operates |
| [in] | features | Feature [byte 0] and Extended Feature [byte 1] bitmap |
References _bvc_fsm_alloc(), bvc_fsm_priv::advertised, bvc_fsm_priv::features, nsei, and osmo_fsm_inst::priv.
| struct osmo_fsm_inst * bssgp_bvc_fsm_alloc_sig_sgsn | ( | void * | ctx, |
| struct gprs_ns2_inst * | nsi, | ||
| uint16_t | nsei, | ||
| uint32_t | features | ||
| ) |
Allocate a SIGNALING-BVC FSM for the SGSN role (facing a remote BSS).
| [in] | ctx | talloc context from which to allocate |
| [in] | nsi | NS Instance on which this BVC operates |
| [in] | nsei | NS Entity Identifier on which this BVC operates |
| [in] | features | Feature [byte 0] and Extended Feature [byte 1] bitmap |
References _bvc_fsm_alloc(), bvc_fsm_priv::advertised, bvc_fsm_priv::features, nsei, and osmo_fsm_inst::priv.
| uint8_t bssgp_bvc_fsm_get_block_cause | ( | struct osmo_fsm_inst * | fi | ) |
Determine the cause value why given BVC FSM is blocked.
References bvc_fsm_priv::block_cause, bssgp_bvc_fsm, osmo_fsm_inst::fsm, OSMO_ASSERT, and osmo_fsm_inst::priv.
| uint32_t bssgp_bvc_fsm_get_features_advertised | ( | struct osmo_fsm_inst * | fi | ) |
Return the advertised features / extended features.
References bvc_fsm_priv::advertised, bssgp_bvc_fsm, bvc_fsm_priv::features, osmo_fsm_inst::fsm, OSMO_ASSERT, and osmo_fsm_inst::priv.
| uint32_t bssgp_bvc_fsm_get_features_negotiated | ( | struct osmo_fsm_inst * | fi | ) |
Return the negotiated features / extended features.
References bssgp_bvc_fsm, bvc_fsm_priv::features, osmo_fsm_inst::fsm, bvc_fsm_priv::negotiated, OSMO_ASSERT, and osmo_fsm_inst::priv.
| uint32_t bssgp_bvc_fsm_get_features_received | ( | struct osmo_fsm_inst * | fi | ) |
Return the received features / extended features.
References bssgp_bvc_fsm, bvc_fsm_priv::features, osmo_fsm_inst::fsm, OSMO_ASSERT, osmo_fsm_inst::priv, and bvc_fsm_priv::received.
| uint16_t bssgp_bvc_fsm_get_max_pdu_len | ( | const struct osmo_fsm_inst * | fi | ) |
Return the maximum size of a BSSGP PDU ! On the NS layer this corresponds to the size of an NS SDU in NS-UNITDATA (3GPP TS 48.016 Ch.
9.2.10)
References bssgp_bvc_fsm, osmo_fsm_inst::fsm, bvc_fsm_priv::max_pdu_len, OSMO_ASSERT, and osmo_fsm_inst::priv.
| bool bssgp_bvc_fsm_is_unblocked | ( | struct osmo_fsm_inst * | fi | ) |
Return if the given BVC FSM is in UNBLOCKED state.
References BSSGP_BVCFSM_S_UNBLOCKED, and osmo_fsm_inst::state.
| void bssgp_bvc_fsm_set_max_pdu_len | ( | struct osmo_fsm_inst * | fi, |
| uint16_t | max_pdu_len | ||
| ) |
Set the maximum size of a BSSGP PDU.
! On the NS layer this corresponds to the size of an NS SDU in NS-UNITDATA (3GPP TS 48.016 Ch. 9.2.10)
References bssgp_bvc_fsm, osmo_fsm_inst::fsm, bvc_fsm_priv::max_pdu_len, OSMO_ASSERT, and osmo_fsm_inst::priv.
| void bssgp_bvc_fsm_set_ops | ( | struct osmo_fsm_inst * | fi, |
| const struct bssgp_bvc_fsm_ops * | ops, | ||
| void * | ops_priv | ||
| ) |
Set the 'operations' callbacks + private data.
| [in] | fi | FSM instance for which the data shall be set |
| [in] | ops | BSSGP BVC FSM operations (call-back functions) to register |
| [in] | ops_priv | opaque/private data pointer passed through to call-backs |
References bssgp_bvc_fsm, osmo_fsm_inst::fsm, bvc_fsm_priv::ops, bvc_fsm_priv::ops_priv, OSMO_ASSERT, and osmo_fsm_inst::priv.