diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-06-20 14:13:37 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-06-28 01:22:29 +0200 |
commit | 155d638af04627e5512f3bad27c10b33fc3b90e7 (patch) | |
tree | 88bf4ebbc6f974c06c893c121197c766d152e028 /openbsc/include/openbsc | |
parent | 9244306db501a2e94a43861b67f619d4a4b8a958 (diff) |
wip: a_iface: MSC sided reset
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r-- | openbsc/include/openbsc/a_iface.h | 6 | ||||
-rw-r--r-- | openbsc/include/openbsc/a_iface_bssap.h | 13 | ||||
-rw-r--r-- | openbsc/include/openbsc/bsc_msc.h | 2 |
3 files changed, 8 insertions, 13 deletions
diff --git a/openbsc/include/openbsc/a_iface.h b/openbsc/include/openbsc/a_iface.h index b27c3db83..f40356ab4 100644 --- a/openbsc/include/openbsc/a_iface.h +++ b/openbsc/include/openbsc/a_iface.h @@ -34,4 +34,10 @@ int a_iface_tx_paging(const char *imsi, uint32_t tmsi, uint16_t lac); /* Send assignment request via A-interface */ int a_iface_tx_assignment(struct gsm_trans *trans); +/* Clear all subscriber connections on a specified BSC */ +void a_clear_all(struct osmo_sccp_user *scu, struct osmo_sccp_addr *bsc_addr); + +/* Delete info of a closed connection from the active connection list */ +void a_delete_bsc_con(uint32_t conn_id); + #pragma once diff --git a/openbsc/include/openbsc/a_iface_bssap.h b/openbsc/include/openbsc/a_iface_bssap.h index 211bcf2d9..f0a2187ef 100644 --- a/openbsc/include/openbsc/a_iface_bssap.h +++ b/openbsc/include/openbsc/a_iface_bssap.h @@ -28,16 +28,9 @@ struct a_conn_info { struct osmo_sccp_addr *called_addr; struct osmo_sccp_addr *calling_addr; - int conn_id; + uint32_t conn_id; struct gsm_network *network; -}; - -/* A structure to pack BSC calling addresses into a list */ -struct a_bsc_addr { - struct llist_head list; - struct osmo_sccp_addr called_addr; - struct osmo_sccp_addr calling_addr; - struct osmo_sccp_user *scu; + struct a_reset_ctx *reset; }; /* Receive incoming connection less data messages via sccp */ @@ -46,5 +39,3 @@ void sccp_rx_udt(struct osmo_sccp_user *scu, struct a_conn_info *a_conn_info, st /* Receive incoming connection oriented data messages via sccp */ int sccp_rx_dt(struct osmo_sccp_user *scu, struct a_conn_info *a_conn_info, struct msgb *msg); -/* Get a list with all known BSCs */ -struct llist_head *get_bsc_addr_list(void); diff --git a/openbsc/include/openbsc/bsc_msc.h b/openbsc/include/openbsc/bsc_msc.h index a7c881b84..35b8654d5 100644 --- a/openbsc/include/openbsc/bsc_msc.h +++ b/openbsc/include/openbsc/bsc_msc.h @@ -62,8 +62,6 @@ struct bsc_msc_connection { struct osmo_sccp_addr g_calling_addr; struct osmo_sccp_addr g_called_addr; struct a_reset_ctx reset; - - int conn_id_counter; }; struct bsc_msc_connection *bsc_msc_create(void *ctx, struct llist_head *dest); |