aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-11 18:18:31 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-11 18:18:31 +0200
commitd7c02ad9dfeb8d7d893b211bbb99d7032ae872d4 (patch)
tree5af2a3a6c6d4a581e9a03d60fc703d546f8f4096 /openbsc/src/gprs
parente9359db5803baef9a66bb007a0fa719c2d2bb475 (diff)
[gprs] NS: Make sure we include "Rx" in the log statement for NS RESET
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r--openbsc/src/gprs/gprs_ns.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_ns.c b/openbsc/src/gprs/gprs_ns.c
index 69c96ca37..bd9791afa 100644
--- a/openbsc/src/gprs/gprs_ns.c
+++ b/openbsc/src/gprs/gprs_ns.c
@@ -422,10 +422,14 @@ static int gprs_ns_rx_reset(struct gprs_nsvc *nsvc, struct msgb *msg)
nsvci = (uint16_t *) TLVP_VAL(&tp, NS_IE_VCI);
nsei = (uint16_t *) TLVP_VAL(&tp, NS_IE_NSEI);
- DEBUGP(DNS, "NSEI=%u NS RESET (NSVCI=%u, cause=%s)\n",
+ DEBUGP(DNS, "NSEI=%u Rx NS RESET (NSVCI=%u, cause=%s)\n",
nsvc->nsvci, nsvc->nsei, gprs_ns_cause_str(*cause));
nsvc->state = NSE_S_BLOCKED | NSE_S_ALIVE;
+ /* FIXME: Check if we have an existing peer with this NSEI/NSVCI
+ * and remove it, as our BSS may just have changed its source IP
+ * address */
+
nsvc->nsei = ntohs(*nsei);
nsvc->nsvci = ntohs(*nsvci);