libosmogb 1.9.0.196-9975
Osmocom Gb library
gprs_bssgp_bss.h
Go to the documentation of this file.
1
3/*
4 * (C) 2009-2012 by Harald Welte <laforge@gnumonks.org>
5 *
6 * All Rights Reserved
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#pragma once
24
25#include <osmocom/core/msgb.h>
27
28uint8_t *bssgp_msgb_tlli_put(struct msgb *msg, uint32_t tlli);
29uint8_t *bssgp_msgb_ra_put(struct msgb *msg, const struct gprs_ra_id *ra_id);
30int bssgp_tx_bvc_ptp_reset(uint16_t nsei, enum gprs_bssgp_cause cause);
31int bssgp_tx_suspend(uint16_t nsei, uint32_t tlli,
32 const struct gprs_ra_id *ra_id);
33
34int bssgp_tx_resume(uint16_t nsei, uint32_t tlli,
35 const struct gprs_ra_id *ra_id, uint8_t suspend_ref);
36
37int bssgp_tx_ra_capa_upd(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag);
38
39int bssgp_tx_radio_status_tlli(struct bssgp_bvc_ctx *bctx, uint8_t cause,
40 uint32_t tlli);
41
42int bssgp_tx_radio_status_tmsi(struct bssgp_bvc_ctx *bctx, uint8_t cause,
43 uint32_t tmsi);
44
45int bssgp_tx_radio_status_imsi(struct bssgp_bvc_ctx *bctx, uint8_t cause,
46 const char *imsi);
47
48int bssgp_tx_flush_ll_ack(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
49 uint8_t action, uint16_t bvci_new,
50 uint32_t num_octets);
51
52int bssgp_tx_llc_discarded(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
53 uint8_t num_frames, uint32_t num_octets);
54
55int bssgp_tx_bvc_block(struct bssgp_bvc_ctx *bctx, uint8_t cause);
56
57int bssgp_tx_bvc_unblock(struct bssgp_bvc_ctx *bctx);
58
59int bssgp_tx_bvc_reset(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause);
60int bssgp_tx_bvc_reset2(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause, bool add_cell_id);
61
62int bssgp_tx_ul_ud(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
63 const uint8_t *qos_profile, struct msgb *llc_pdu);
64
65int bssgp_rx_paging(struct bssgp_paging_info *pinfo,
66 struct msgb *msg);
67
68int bssgp_tx_fc_bvc(struct bssgp_bvc_ctx *bctx, uint8_t tag,
69 uint32_t bucket_size, uint32_t bucket_leak_rate,
70 uint32_t bmax_default_ms, uint32_t r_default_ms,
71 uint8_t *bucket_full_ratio, uint32_t *queue_delay_ms);
72
73int bssgp_tx_fc_ms(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag,
74 uint32_t ms_bucket_size, uint32_t bucket_leak_rate,
75 uint8_t *bucket_full_ratio);
GPRS BSSGP RIM protocol implementation as per 3GPP TS 48.018.
uint8_t * bssgp_msgb_tlli_put(struct msgb *msg, uint32_t tlli)
Definition: gprs_bssgp_bss.c:41
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
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
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
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
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
int bssgp_rx_paging(struct bssgp_paging_info *pinfo, struct msgb *msg)
Definition: gprs_bssgp_bss.c:476
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
int bssgp_tx_bvc_reset(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause)
Definition: gprs_bssgp_bss.c:300
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
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
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
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
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
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
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
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
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
uint8_t * bssgp_msgb_ra_put(struct msgb *msg, const struct gprs_ra_id *ra_id)
Definition: gprs_bssgp_bss.c:47
uint32_t tlli
Identifier of a MS (inside BTS), equal to 'struct sgsn_mm_ctx'.
Definition: gprs_msgb.h:11
uint16_t bvci
Definition: gprs_msgb.h:8
uint16_t nsei
Identifiers of a BTS, equal to 'struct bssgp_bts_ctx'.
Definition: gprs_msgb.h:7
uint8_t qos_profile[3]
QoS profile.
Definition: gsm_08_18.h:2
gprs_bssgp_cause
Cause coding (Section 11.3.8 / Table 11.10)
Definition: gsm_08_18.h:266
Definition: gprs_bssgp.h:107
BSSGP paging information.
Definition: gprs_bssgp.h:206