Harald Welte | 17a892f | 2020-12-07 21:39:03 +0100 | [diff] [blame^] | 1 | #pragma once |
| 2 | #include <stdint.h> |
| 3 | |
| 4 | #include <osmocom/gprs/protocol/gsm_08_18.h> |
| 5 | #include <osmocom/gprs/gprs_ns2.h> |
| 6 | |
| 7 | struct gprs_ns2_inst; |
| 8 | struct gprs_ra_id; |
| 9 | struct msgb; |
| 10 | |
| 11 | int bssgp2_nsi_tx_ptp(struct gprs_ns2_inst *nsi, uint16_t nsei, uint16_t bvci, |
| 12 | struct msgb *msg, uint32_t lsp); |
| 13 | |
| 14 | int bssgp2_nsi_tx_sig(struct gprs_ns2_inst *nsi, uint16_t nsei, struct msgb *msg, uint32_t lsp); |
| 15 | |
| 16 | struct msgb *bssgp2_enc_bvc_block(uint16_t bvci, enum gprs_bssgp_cause cause); |
| 17 | |
| 18 | struct msgb *bssgp2_enc_bvc_block_ack(uint16_t bvci); |
| 19 | |
| 20 | struct msgb *bssgp2_enc_bvc_unblock(uint16_t bvci); |
| 21 | |
| 22 | struct msgb *bssgp2_enc_bvc_unblock_ack(uint16_t bvci); |
| 23 | |
| 24 | struct msgb *bssgp2_enc_bvc_reset(uint16_t bvci, enum gprs_bssgp_cause cause, |
| 25 | const struct gprs_ra_id *ra_id, uint16_t cell_id, |
| 26 | const uint8_t *feat_bm, const uint8_t *ext_feat_bm); |
| 27 | |
| 28 | struct msgb *bssgp2_enc_bvc_reset_ack(uint16_t bvci, const struct gprs_ra_id *ra_id, uint16_t cell_id, |
| 29 | const uint8_t *feat_bm, const uint8_t *ext_feat_bm); |
| 30 | |
| 31 | struct msgb *bssgp2_enc_status(uint8_t cause, const uint16_t *bvci, const struct msgb *orig_msg); |