diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-14 22:24:15 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-15 23:01:09 +0200 |
commit | 58f225b2f095ef3a71b13a26570a46f2a5c38a91 (patch) | |
tree | 30a58d769d908bac401fc102b6e27df57e5badfa /include | |
parent | 05ad104c5892a84ab490fe435f7905993bd67cd9 (diff) |
osmo_ss7: Clean up all ASPs established via xua_server upon destroy
When we destroy a xua_server, we would like to close and destroy any
ASPs that were established via that xua_server. In order to do so, we
need to add a list of ASPs to the xua_server, which we can iterate.
Change-Id: Iff3ed099b817e54e563b70d9ab40f63af63cc2fb
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/sigtran/osmo_ss7.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/osmo_ss7.h b/include/osmocom/sigtran/osmo_ss7.h index 376e399..a8c1c3c 100644 --- a/include/osmocom/sigtran/osmo_ss7.h +++ b/include/osmocom/sigtran/osmo_ss7.h @@ -339,6 +339,7 @@ struct osmo_ss7_asp { /*! \ref osmo_xua_server over which we were established */ struct osmo_xua_server *xua_server; + struct llist_head siblings; /*! osmo_stream / libosmo-netif handles */ struct osmo_stream_cli *client; @@ -396,6 +397,9 @@ struct osmo_xua_server { struct llist_head list; struct osmo_ss7_instance *inst; + /* list of ASPs established via this server */ + struct llist_head asp_list; + struct osmo_stream_srv_link *server; struct { |