diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-16 12:16:58 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-19 11:20:31 +0200 |
commit | 85e5c8f9052dfdb09a06859128441073e516c5a7 (patch) | |
tree | 861fb39238dbe4647413122574e473728a046a91 /openbsc/tests/gbproxy/gbproxy_test.c | |
parent | cdd37837b3db91281d903a975e233109821666e9 (diff) |
gbproxy: Parse RA_UPD_REJ and invalidate TLLI
Since this message puts the MS into DEREGISTERED state (like a detach
procedure), this message is parsed and the invalidate_tlli field is
set accordingly.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/gbproxy/gbproxy_test.c')
-rw-r--r-- | openbsc/tests/gbproxy/gbproxy_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/tests/gbproxy/gbproxy_test.c b/openbsc/tests/gbproxy/gbproxy_test.c index cfbe68859..a818a1259 100644 --- a/openbsc/tests/gbproxy/gbproxy_test.c +++ b/openbsc/tests/gbproxy/gbproxy_test.c @@ -2895,9 +2895,10 @@ static void test_gbproxy_keep_info() dump_peers(stdout, 0, 0, &gbcfg); - /* TODO: This should have de-registered the TLLI which it did not. Add - * assertions when this is fixed. - */ + OSMO_ASSERT(!gbproxy_find_tlli(peer, local_tlli)); + tlli_info = gbproxy_find_tlli_by_imsi(peer, imsi, sizeof(imsi)); + OSMO_ASSERT(tlli_info); + OSMO_ASSERT(tlli_info->is_deregistered); /* Bad case: Re-Attach with wrong (initial) P-TMSI */ send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002, |