summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDieter Spaar <spaar@mirider.augusta.de>2012-07-12 18:27:18 +0200
committerHarald Welte <laforge@gnumonks.org>2015-11-15 14:15:19 +0100
commit4cd1f353ea4ad5becd013942892a1dfa73f8fab0 (patch)
tree2ac1c10e78f21c0a00a5ed8bf4c14db8cf9d2d8a
parentb92d8d738aaa36dfd772f83a016736edd89aaf1c (diff)
ganc: Add peer to global list of peers in network
TODO: remove peer from that list once tcp connection closes
-rw-r--r--openbsc/src/osmo-ganc/ganc_server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/osmo-ganc/ganc_server.c b/openbsc/src/osmo-ganc/ganc_server.c
index 4ecd8f1..0ba47f2 100644
--- a/openbsc/src/osmo-ganc/ganc_server.c
+++ b/openbsc/src/osmo-ganc/ganc_server.c
@@ -470,6 +470,11 @@ static void unc_accept_cb(struct osmo_conn *conn)
peer->bts = g_ganc_bts;
peer->conn = conn;
conn->priv = peer;
+
+ peer->sccp_con = NULL;
+
+ /* TODO: remove from list when closed */
+ llist_add_tail(&peer->entry, &g_ganc_bts->net->peers);
}