aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-10-24 12:48:55 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-24 18:02:36 +0200
commit72b401f33df215173aa9b3a6f8237115a3d5f0b5 (patch)
treef82c5da7849d16b82c9d5fb19de37fddbc542faa /openbsc/src/gprs
parent4211d79cd1381efd1c1e457d0592c2a1f5b2a4fd (diff)
gbproxy: Add test for NSEI and NSVCI changes
This checks the behavior of the gbproxy when the BSS peer changes the NSEI and the NSVCI. It also tests BVC_RESET and other UNITDATA messages after these changes between BSS and SGSN and vice versa (via the gbproxy). Ticket: OW#874 Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r--openbsc/src/gprs/gb_proxy.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c
index 6f7d1c387..f008b3ee9 100644
--- a/openbsc/src/gprs/gb_proxy.c
+++ b/openbsc/src/gprs/gb_proxy.c
@@ -881,6 +881,17 @@ int gbprox_dump_peers(FILE *stream, int indent, int verbose)
return 0;
}
+void gbprox_reset()
+{
+ struct gbprox_peer *peer, *tmp;
+
+ llist_for_each_entry_safe(peer, tmp, &gbprox_bts_peers, list)
+ peer_free(peer);
+
+ rate_ctr_group_free(global_ctrg);
+ global_ctrg = NULL;
+}
+
static int gbprox_cleanup_peers(uint16_t nsei, uint16_t bvci)
{
int counter = 0;