diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-30 10:45:48 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-30 10:45:48 +0200 |
commit | 22252a98e3a2c094edb9d179db8eddede517e339 (patch) | |
tree | 2353f1c4b628b1dc3b19f52c2a56ba5a70f791d2 /openbsc/src/nat/bsc_nat_utils.c | |
parent | 957bc93244224124a1fa5576c94953ae09bc984d (diff) |
sccp: Move the destruction of the sccp connection to a new place
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat_utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index 936026041..08e9e8f8b 100644 --- a/openbsc/src/nat/bsc_nat_utils.c +++ b/openbsc/src/nat/bsc_nat_utils.c @@ -30,6 +30,8 @@ #include <osmocore/linuxlist.h> #include <osmocore/talloc.h> +#include <sccp/sccp.h> + #include <netinet/in.h> #include <arpa/inet.h> @@ -72,6 +74,15 @@ struct bsc_config *bsc_config_alloc(struct bsc_nat *nat, const char *token, unsi return conf; } +void sccp_connection_destroy(struct sccp_connections *conn) +{ + LOGP(DNAT, LOGL_DEBUG, "Destroy 0x%x <-> 0x%x mapping for con %p\n", + sccp_src_ref_to_int(&conn->real_ref), + sccp_src_ref_to_int(&conn->patched_ref), conn->bsc); + llist_del(&conn->list_entry); + talloc_free(conn); +} + struct bsc_connection *bsc_nat_find_bsc(struct bsc_nat *nat, struct msgb *msg) { struct bsc_connection *bsc; |