blob: da5e2f1ac14c7532d6c21b440f448c8e6a940cee [file] [log] [blame]
Neels Hofmeyrb5ce49f2018-07-24 17:42:14 +02001/* GSM 08.08 function declarations for osmo-bsc */
Holger Hans Peter Freytherec32b582010-03-23 07:40:46 +01002
Neels Hofmeyrb5ce49f2018-07-24 17:42:14 +02003#pragma once
Holger Hans Peter Freyther05a379b2010-06-14 15:50:35 +08004
Neels Hofmeyrb5ce49f2018-07-24 17:42:14 +02005#include <stdint.h>
Holger Hans Peter Freytherec32b582010-03-23 07:40:46 +01006
Neels Hofmeyrb5ce49f2018-07-24 17:42:14 +02007struct gsm_subscriber_connection;
Holger Hans Peter Freyther97643312010-06-17 16:41:25 +08008
Vadim Yanitskiy6a26e2c2020-08-26 18:49:08 +07009void bsc_sapi_n_reject(struct gsm_subscriber_connection *conn, uint8_t dlci, enum gsm0808_cause cause);
Neels Hofmeyrc19581f2018-05-27 03:05:18 +020010void bsc_cipher_mode_compl(struct gsm_subscriber_connection *conn, struct msgb *msg, uint8_t chosen_encr);
Neels Hofmeyr2001dd62020-09-11 23:35:28 +000011int bsc_compl_l3(struct gsm_lchan *lchan, struct msgb *msg, uint16_t chosen_channel);
Neels Hofmeyrc19581f2018-05-27 03:05:18 +020012void bsc_dtap(struct gsm_subscriber_connection *conn, uint8_t link_id, struct msgb *msg);
Neels Hofmeyrc19581f2018-05-27 03:05:18 +020013void bsc_cm_update(struct gsm_subscriber_connection *conn,
14 const uint8_t *cm2, uint8_t cm2_len,
15 const uint8_t *cm3, uint8_t cm3_len);