diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-11 20:20:13 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-11 20:20:13 +0200 |
commit | e9ea26935ef53f1b860b1d3bf85644a174de0f9c (patch) | |
tree | 9670257e370e0044881c6bb66d9ed1bd4457dc2f /openbsc/src/gprs/gb_proxy.c | |
parent | 7c209ebb86888a686e97e22d68b46f668f02a680 (diff) |
[gprs] gb_proxy: more verbose debugging
Diffstat (limited to 'openbsc/src/gprs/gb_proxy.c')
-rw-r--r-- | openbsc/src/gprs/gb_proxy.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c index 6c912db4c..fd932523b 100644 --- a/openbsc/src/gprs/gb_proxy.c +++ b/openbsc/src/gprs/gb_proxy.c @@ -129,7 +129,7 @@ static void strip_ns_hdr(struct msgb *msg) /* feed a message down the NS-VC associated with the specified peer */ static int gbprox_relay2sgsn(struct msgb *msg, uint16_t ns_bvci) { - DEBUGP(DGPRS, "NSEI=%u proxying to SGSN (NS_BVCI=%u, NSEI=%u)\n", + DEBUGP(DGPRS, "NSEI=%u proxying BTS->SGSN (NS_BVCI=%u, NSEI=%u)\n", msgb_nsei(msg), ns_bvci, gbcfg.nsip_sgsn_nsei); msgb_bvci(msg) = ns_bvci; @@ -144,7 +144,7 @@ static int gbprox_relay2sgsn(struct msgb *msg, uint16_t ns_bvci) static int gbprox_relay2peer(struct msgb *msg, struct gbprox_peer *peer, uint16_t ns_bvci) { - DEBUGP(DGPRS, "NSEI=%u proxying to BSS (NS_BVCI=%u, NSEI=%u)\n", + DEBUGP(DGPRS, "NSEI=%u proxying to SGSN->BSS (NS_BVCI=%u, NSEI=%u)\n", msgb_nsei(msg), ns_bvci, peer->nsvc->nsei); msgb_bvci(msg) = ns_bvci; @@ -227,9 +227,11 @@ static int gbprox_rx_sig_from_bss(struct msgb *msg, struct gprs_nsvc *nsvc, * is common for all point-to-point BVCs (and thus all BTS) */ if (TLVP_PRESENT(&tp, BSSGP_IE_BVCI)) { uint16_t bvci = ntohs(*(uint16_t *)TLVP_VAL(&tp, BSSGP_IE_BVCI)); + LOGP(DGPRS, LOGL_DEBUG, "NSEI=%u Rx BVC RESET (BVCI=%u)\n", + nsvc->nsei, bvci); if (bvci == 0) { /* FIXME: only do this if SGSN is alive! */ - LOGP(DGPRS, LOGL_INFO, "NSEI=%u Sending fake " + LOGP(DGPRS, LOGL_INFO, "NSEI=%u Tx fake " "BVC RESET ACK of BVCI=0\n", nsvc->nsei); return bssgp_tx_simple_bvci(BSSGP_PDUT_BVC_RESET_ACK, nsvc->nsei, 0, ns_bvci); @@ -246,7 +248,8 @@ static int gbprox_rx_sig_from_bss(struct msgb *msg, struct gprs_nsvc *nsvc, break; } - /* Normally, we can simply pass on all signalling messages from BSS to SGSN */ + /* Normally, we can simply pass on all signalling messages from BSS to + * SGSN */ return gbprox_relay2sgsn(msg, ns_bvci); err_no_peer: LOGP(DGPRS, LOGL_ERROR, "NSEI=%u(BSS) cannot find peer based on RAC\n", |