libosmogb  0.9.6.20171026
Osmocom Gb library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
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 
28 uint8_t *bssgp_msgb_tlli_put(struct msgb *msg, uint32_t tlli);
29 int bssgp_tx_bvc_ptp_reset(uint16_t nsei, enum gprs_bssgp_cause cause);
30 int bssgp_tx_suspend(uint16_t nsei, uint32_t tlli,
31  const struct gprs_ra_id *ra_id);
32 
33 int bssgp_tx_resume(uint16_t nsei, uint32_t tlli,
34  const struct gprs_ra_id *ra_id, uint8_t suspend_ref);
35 
36 int bssgp_tx_ra_capa_upd(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag);
37 
38 int bssgp_tx_radio_status_tlli(struct bssgp_bvc_ctx *bctx, uint8_t cause,
39  uint32_t tlli);
40 
41 int bssgp_tx_radio_status_tmsi(struct bssgp_bvc_ctx *bctx, uint8_t cause,
42  uint32_t tmsi);
43 
44 int bssgp_tx_radio_status_imsi(struct bssgp_bvc_ctx *bctx, uint8_t cause,
45  const char *imsi);
46 
47 int bssgp_tx_flush_ll_ack(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
48  uint8_t action, uint16_t bvci_new,
49  uint32_t num_octets);
50 
51 int bssgp_tx_llc_discarded(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
52  uint8_t num_frames, uint32_t num_octets);
53 
54 int bssgp_tx_bvc_block(struct bssgp_bvc_ctx *bctx, uint8_t cause);
55 
56 int bssgp_tx_bvc_unblock(struct bssgp_bvc_ctx *bctx);
57 
58 int bssgp_tx_bvc_reset(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause);
59 
60 int bssgp_tx_ul_ud(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
61  const uint8_t *qos_profile, struct msgb *llc_pdu);
62 
63 int bssgp_rx_paging(struct bssgp_paging_info *pinfo,
64  struct msgb *msg);
65 
66 int bssgp_tx_fc_bvc(struct bssgp_bvc_ctx *bctx, uint8_t tag,
67  uint32_t bucket_size, uint32_t bucket_leak_rate,
68  uint32_t bmax_default_ms, uint32_t r_default_ms,
69  uint8_t *bucket_full_ratio, uint32_t *queue_delay_ms);
70 
71 int bssgp_tx_fc_ms(struct bssgp_bvc_ctx *bctx, uint32_t tlli, uint8_t tag,
72  uint32_t ms_bucket_size, uint32_t bucket_leak_rate,
73  uint8_t *bucket_full_ratio);
int bssgp_rx_paging(struct bssgp_paging_info *pinfo, struct msgb *msg)
Definition: gprs_bssgp_bss.c:472
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:69
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:88
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:94
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:192
uint16_t nsei
Definition: gprs_msgb.h:79
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:388
int bssgp_tx_bvc_reset(struct bssgp_bvc_ctx *bctx, uint16_t bvci, uint8_t cause)
Transmit a BVC-RESET message (Chapter 10.4.12)
Definition: gprs_bssgp_bss.c:282
gprs_bssgp_cause
Cause coding (Section 11.3.8 / Table 11.10)
Definition: gsm_08_18.h:122
uint16_t bvci
Definition: gprs_msgb.h:80
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:216
uint8_t * bssgp_msgb_tlli_put(struct msgb *msg, uint32_t tlli)
Definition: gprs_bssgp_bss.c:39
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:242
BSSGP paging information.
Definition: gprs_bssgp.h:178
uint32_t tlli
Definition: gprs_msgb.h:83
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:158
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:144
uint8_t qos_profile[3]
QoS profile.
Definition: gsm_08_18.h:28
int bssgp_tx_bvc_unblock(struct bssgp_bvc_ctx *bctx)
Transmit a BVC-UNBLOCK message (Chapter 10.4.10)
Definition: gprs_bssgp_bss.c:263
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:318
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:46
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:173
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:431
Definition: gprs_bssgp.h:85