Loading...
Searching...
No Matches
gprs_bssgp_bss.h
Go to the documentation of this file.
/*
* (C) 2009-2012 by Harald Welte <laforge@gnumonks.org>
*
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
#include <osmocom/core/msgb.h>
#include <osmocom/gprs/gprs_bssgp.h>
uint8_t *bssgp_msgb_tlli_put(struct msgb *msg, uint32_t tlli);
uint8_t *bssgp_msgb_ra_put(struct msgb *msg, const struct gprs_ra_id *ra_id);
int bssgp_tx_bvc_ptp_reset(uint16_t nsei, enum gprs_bssgp_cause cause);
int bssgp_tx_suspend(uint16_t nsei, uint32_t tlli,
const struct gprs_ra_id *ra_id);
int bssgp_tx_resume(uint16_t nsei, uint32_t tlli,
const struct gprs_ra_id *ra_id, uint8_t suspend_ref);
int bssgp_tx_ra_capa_upd(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag);
int bssgp_tx_radio_status_tlli(struct bssgp_bvc_ctx *bctx, uint8_t cause,
uint32_t tlli);
int bssgp_tx_radio_status_tmsi(struct bssgp_bvc_ctx *bctx, uint8_t cause,
uint32_t tmsi);
int bssgp_tx_radio_status_imsi(struct bssgp_bvc_ctx *bctx, uint8_t cause,
const char *imsi);
int bssgp_tx_flush_ll_ack(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
uint8_t action, uint16_t bvci_new,
uint32_t num_octets);
int bssgp_tx_llc_discarded(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
uint8_t num_frames, uint32_t num_octets);
int bssgp_tx_bvc_block(struct bssgp_bvc_ctx *bctx, uint8_t cause);
int bssgp_tx_bvc_unblock(struct bssgp_bvc_ctx *bctx);
int bssgp_tx_bvc_reset(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause);
int bssgp_tx_bvc_reset2(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause, bool add_cell_id);
int bssgp_tx_ul_ud(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
const uint8_t *qos_profile, struct msgb *llc_pdu);
int bssgp_rx_paging(struct bssgp_paging_info *pinfo,
struct msgb *msg);
int bssgp_tx_fc_bvc(struct bssgp_bvc_ctx *bctx, uint8_t tag,
uint32_t bucket_size, uint32_t bucket_leak_rate,
uint32_t bmax_default_ms, uint32_t r_default_ms,
uint8_t *bucket_full_ratio, uint32_t *queue_delay_ms);
int bssgp_tx_fc_ms(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag,
uint32_t ms_bucket_size, uint32_t bucket_leak_rate,
uint8_t *bucket_full_ratio);
gprs_bssgp.h
GPRS BSSGP RIM protocol implementation as per 3GPP TS 48.018.
bssgp_msgb_tlli_put
uint8_t * bssgp_msgb_tlli_put(struct msgb *msg, uint32_t tlli)
Definition gprs_bssgp_bss.c:41
bssgp_tx_fc_ms
int bssgp_tx_fc_ms(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag, uint32_t ms_bucket_size, uint32_t bucket_leak_rate, uint8_t *bucket_full_ratio)
Transmit a FLOW_CONTROL-MS (Chapter 10.4.6).
Definition gprs_bssgp_bss.c:394
bssgp_tx_radio_status_tlli
int bssgp_tx_radio_status_tlli(struct bssgp_bvc_ctx *bctx, uint8_t cause, uint32_t tlli)
Transmit RADIO-STATUS for TLLI (10.3.5).
Definition gprs_bssgp_bss.c:148
bssgp_tx_radio_status_imsi
int bssgp_tx_radio_status_imsi(struct bssgp_bvc_ctx *bctx, uint8_t cause, const char *imsi)
Transmit RADIO-STATUS for IMSI (10.3.5).
Definition gprs_bssgp_bss.c:177
bssgp_tx_flush_ll_ack
int bssgp_tx_flush_ll_ack(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t action, uint16_t bvci_new, uint32_t num_octets)
Transmit FLUSH-LL-ACK (Chapter 10.4.2).
Definition gprs_bssgp_bss.c:203
bssgp_tx_ra_capa_upd
int bssgp_tx_ra_capa_upd(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag)
Transmit RA-CAPABILITY-UPDATE (10.3.3).
Definition gprs_bssgp_bss.c:98
bssgp_rx_paging
int bssgp_rx_paging(struct bssgp_paging_info *pinfo, struct msgb *msg)
Definition gprs_bssgp_bss.c:476
bssgp_tx_fc_bvc
int bssgp_tx_fc_bvc(struct bssgp_bvc_ctx *bctx, uint8_t tag, uint32_t bucket_size, uint32_t bucket_leak_rate, uint32_t bmax_default_ms, uint32_t r_default_ms, uint8_t *bucket_full_ratio, uint32_t *queue_delay_ms)
Transmit a FLOW_CONTROL-BVC (Chapter 10.4.4).
Definition gprs_bssgp_bss.c:324
bssgp_tx_bvc_reset
int bssgp_tx_bvc_reset(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause)
Definition gprs_bssgp_bss.c:300
bssgp_tx_ul_ud
int bssgp_tx_ul_ud(struct bssgp_bvc_ctx *bctx, uint32_t tlli, const uint8_t *qos_profile, struct msgb *llc_pdu)
RL-UL-UNITDATA.req (Chapter 10.2.2).
Definition gprs_bssgp_bss.c:435
bssgp_tx_llc_discarded
int bssgp_tx_llc_discarded(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t num_frames, uint32_t num_octets)
Transmit LLC-DISCARDED (Chapter 10.4.3).
Definition gprs_bssgp_bss.c:227
bssgp_tx_suspend
int bssgp_tx_suspend(uint16_t nsei, uint32_t tlli, const struct gprs_ra_id *ra_id)
GMM-SUSPEND.req (Chapter 10.3.6).
Definition gprs_bssgp_bss.c:56
bssgp_tx_bvc_reset2
int bssgp_tx_bvc_reset2(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause, bool add_cell_id)
Transmit a BVC-RESET message (Chapter 10.4.12).
Definition gprs_bssgp_bss.c:293
bssgp_tx_bvc_block
int bssgp_tx_bvc_block(struct bssgp_bvc_ctx *bctx, uint8_t cause)
Transmit a BVC-BLOCK message (Chapter 10.4.8).
Definition gprs_bssgp_bss.c:253
bssgp_tx_resume
int bssgp_tx_resume(uint16_t nsei, uint32_t tlli, const struct gprs_ra_id *ra_id, uint8_t suspend_ref)
GMM-RESUME.req (Chapter 10.3.9).
Definition gprs_bssgp_bss.c:76
bssgp_tx_bvc_ptp_reset
int bssgp_tx_bvc_ptp_reset(uint16_t nsei, enum gprs_bssgp_cause cause)
Initiate reset procedure for all PTP BVC on a given NSEI.
Definition gprs_bssgp.c:173
bssgp_tx_bvc_unblock
int bssgp_tx_bvc_unblock(struct bssgp_bvc_ctx *bctx)
Transmit a BVC-UNBLOCK message (Chapter 10.4.10).
Definition gprs_bssgp_bss.c:274
bssgp_tx_radio_status_tmsi
int bssgp_tx_radio_status_tmsi(struct bssgp_bvc_ctx *bctx, uint8_t cause, uint32_t tmsi)
Transmit RADIO-STATUS for TMSI (10.3.5).
Definition gprs_bssgp_bss.c:162
bssgp_msgb_ra_put
uint8_t * bssgp_msgb_ra_put(struct msgb *msg, const struct gprs_ra_id *ra_id)
Definition gprs_bssgp_bss.c:47
bvci
uint16_t bvci
Definition gprs_msgb.h:8
nsei
uint16_t nsei
Identifiers of a BTS, equal to 'struct bssgp_bts_ctx'.
Definition gprs_msgb.h:7
cause
uint8_t cause
tlli
uint32_t tlli
ra_id
uint8_t ra_id[6]
msg
uint8_t msg[0]
qos_profile
uint8_t qos_profile[3]
QoS profile.
Definition gsm_08_18.h:2
gprs_bssgp_cause
gprs_bssgp_cause
Cause coding (Section 11.3.8 / Table 11.10).
Definition gsm_08_18.h:266
msgb.h
bssgp_bvc_ctx
Definition gprs_bssgp.h:107
bssgp_paging_info
BSSGP paging information.
Definition gprs_bssgp.h:212
gprs_ra_id
msgb