summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-13 14:20:56 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-13 14:20:56 +0200
commit60cc6acaffe4009bf829a1d939a9d08e3287107b (patch)
tree31952769c9ddfb54d7344c02e822e3cec3a6d80e /openbsc
parentdd1c83c52d66c28583e06ba3b930883b488689ea (diff)
[GPRS] NS: Remove 'unknown_nsvc' from list of NS-VCs
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gprs/gprs_ns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_ns.c b/openbsc/src/gprs/gprs_ns.c
index 50ab8203..dc12953e 100644
--- a/openbsc/src/gprs/gprs_ns.c
+++ b/openbsc/src/gprs/gprs_ns.c
@@ -773,7 +773,10 @@ struct gprs_ns_inst *gprs_ns_instantiate(gprs_ns_cb_t *cb)
nsi->timeout[NS_TOUT_TNS_ALIVE] = 3;
nsi->timeout[NS_TOUT_TNS_ALIVE_RETRIES] = 10;
+ /* Create the dummy NSVC that we use for sending
+ * messages to non-existant/unknown NS-VC's */
nsi->unknown_nsvc = nsvc_create(nsi, 0xfffe);
+ llist_del(&nsi->unknown_nsvc->list);
return nsi;
}