From 040b4012a77201110cc478054d9b6e9039339621 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Fri, 27 Jun 2014 12:20:44 +0200 Subject: 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 --- openbsc/tests/gbproxy/gbproxy_test.ok | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'openbsc/tests') 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 -- cgit v1.2.3