aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-06-27 12:20:44 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-22 17:05:16 +0200
commit040b4012a77201110cc478054d9b6e9039339621 (patch)
treea6090cc35f24dab74c73155dbdd89382556710e4 /openbsc/tests
parentaa3e334608d0101c8e98b5bc65d4cd9fd2bc82ea (diff)
gprs: Fix TLLI cache size computation
Currently the enabled_tllis_count field isn't always decremented when an element is removed from the TLLI cache list. This patch adds the missing update and also adjusts the counter accordingly. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/gbproxy/gbproxy_test.ok12
1 files changed, 4 insertions, 8 deletions
diff --git a/openbsc/tests/gbproxy/gbproxy_test.ok b/openbsc/tests/gbproxy/gbproxy_test.ok
index de54311a7..5f2d81e3c 100644
--- a/openbsc/tests/gbproxy/gbproxy_test.ok
+++ b/openbsc/tests/gbproxy/gbproxy_test.ok
@@ -1737,8 +1737,7 @@ Peers:
RAID patched (SGSN): 2
APN patched : 2
Attach Request count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
+ TLLI-Cache: 0
--- RA update ---
PROCESSING RA UPD REQ from 0x01020304:1111
@@ -1783,8 +1782,7 @@ Peers:
RAID patched (SGSN): 3
APN patched : 2
Attach Request count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
+ TLLI-Cache: 0
PROCESSING DETACH REQ from 0x01020304:1111
00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 75 30 00 80 0e 00 15 01 c0 19 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 7e e1 41
@@ -1816,8 +1814,7 @@ Peers:
RAID patched (SGSN): 3
APN patched : 2
Attach Request count : 1
- TLLI cache size : 3
- TLLI-Cache: 3
+ TLLI-Cache: 0
--- Bad cases ---
TLLI is already detached, shouldn't patch
@@ -1855,7 +1852,6 @@ Peers:
RAID patched (SGSN): 3
APN patched : 2
Attach Request count : 1
- TLLI cache size : 3
- TLLI-Cache: 3
+ TLLI-Cache: 0
===== GbProxy test END