libosmogb 1.13.1.1-afb4 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>
26#include <osmocom/gprs/gprs_bssgp.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);
30 int bssgp_tx_bvc_ptp_reset(uint16_t nsei, enum gprs_bssgp_cause cause);
31 int bssgp_tx_suspend(uint16_t nsei, uint32_t tlli,
32 const struct gprs_ra_id *ra_id);
33
34 int bssgp_tx_resume(uint16_t nsei, uint32_t tlli,
35 const struct gprs_ra_id *ra_id, uint8_t suspend_ref);
36
37 int bssgp_tx_ra_capa_upd(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag);
38
39 int bssgp_tx_radio_status_tlli(struct bssgp_bvc_ctx *bctx, uint8_t cause,
40 uint32_t tlli);
41
42 int bssgp_tx_radio_status_tmsi(struct bssgp_bvc_ctx *bctx, uint8_t cause,
43 uint32_t tmsi);
44
45 int bssgp_tx_radio_status_imsi(struct bssgp_bvc_ctx *bctx, uint8_t cause,
46 const char *imsi);
47
48 int 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
52 int bssgp_tx_llc_discarded(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
53 uint8_t num_frames, uint32_t num_octets);
54
55 int bssgp_tx_bvc_block(struct bssgp_bvc_ctx *bctx, uint8_t cause);
56
57 int bssgp_tx_bvc_unblock(struct bssgp_bvc_ctx *bctx);
58
59 int bssgp_tx_bvc_reset(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause);
60 int bssgp_tx_bvc_reset2(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause, bool add_cell_id);
61
62 int bssgp_tx_ul_ud(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
63 const uint8_t *qos_profile, struct msgb *llc_pdu);
64
65 int bssgp_rx_paging(struct bssgp_paging_info *pinfo,
66 struct msgb *msg);
67
68 int 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
73 int 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.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
tlli
uint32_t tlli
Identifier of a MS (inside BTS), equal to 'struct sgsn_mm_ctx'.
Definition: gprs_msgb.h:11
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
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