summaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-ganc/ganc_server.c
diff options
context:
space:
mode:
authorDieter Spaar <spaar@mirider.augusta.de>2012-07-12 18:27:18 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-12 18:27:18 +0200
commitf8313ebcc16d64506061e379ead11d4571ea1daf (patch)
treea0b5eef81e3b3cf9196bc9d668ac10742069d692 /openbsc/src/osmo-ganc/ganc_server.c
parent5a3ceedea0f6f737733e9e6b6a79f70ff315e314 (diff)
ganc: Add peer to global list of peers in network
TODO: remove peer from that list once tcp connection closes
Diffstat (limited to 'openbsc/src/osmo-ganc/ganc_server.c')
-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);
}