aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-07-09 22:09:18 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-08-11 18:39:50 +0200
commitc1343e2e4249349b7cfdfb4288949de4ba589646 (patch)
tree40fc47cbbab87e4160f5c5d134903427c6cb769d /tests
parent5ae993a8af0a9cdb5ed84dddbb130423e9a163e5 (diff)
split off osmo-bsc: remove files, apply build
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am29
-rw-r--r--tests/bsc-nat-trie/Makefile.am5
-rw-r--r--tests/bsc-nat/Makefile.am4
-rw-r--r--tests/bsc/Makefile.am3
-rw-r--r--tests/channel/Makefile.am1
-rw-r--r--tests/channel/channel_test.c1
-rw-r--r--tests/db/Makefile.am47
-rw-r--r--tests/db/db_test.c286
-rw-r--r--tests/db/db_test.err2
-rw-r--r--tests/db/db_test.ok4
-rw-r--r--tests/db/hlr.sqlite3bin29696 -> 0 bytes
-rw-r--r--tests/gbproxy/Makefile.am54
-rw-r--r--tests/gbproxy/gbproxy_test.c4971
-rw-r--r--tests/gbproxy/gbproxy_test.ok7244
-rw-r--r--tests/gprs/Makefile.am10
-rw-r--r--tests/gprs/gprs_test.c236
-rw-r--r--tests/gprs/gprs_test.ok17
-rw-r--r--tests/gsm0408/gsm0408_test.c7
-rw-r--r--tests/gtphub/Makefile.am42
-rw-r--r--tests/gtphub/gtphub_test.c1786
-rw-r--r--tests/gtphub/gtphub_test.ok42
-rw-r--r--tests/msc_vlr/Makefile.am168
-rw-r--r--tests/msc_vlr/msc_vlr_test_gsm_authen.c924
-rw-r--r--tests/msc_vlr/msc_vlr_test_gsm_authen.err1997
-rw-r--r--tests/msc_vlr/msc_vlr_test_gsm_authen.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_test_gsm_ciph.c845
-rw-r--r--tests/msc_vlr/msc_vlr_test_gsm_ciph.err1679
-rw-r--r--tests/msc_vlr/msc_vlr_test_gsm_ciph.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_test_hlr_reject.c447
-rw-r--r--tests/msc_vlr/msc_vlr_test_hlr_reject.err1165
-rw-r--r--tests/msc_vlr/msc_vlr_test_hlr_reject.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_test_hlr_timeout.c118
-rw-r--r--tests/msc_vlr/msc_vlr_test_hlr_timeout.err189
-rw-r--r--tests/msc_vlr/msc_vlr_test_hlr_timeout.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_test_ms_timeout.c189
-rw-r--r--tests/msc_vlr/msc_vlr_test_ms_timeout.err342
-rw-r--r--tests/msc_vlr/msc_vlr_test_ms_timeout.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_test_no_authen.c908
-rw-r--r--tests/msc_vlr/msc_vlr_test_no_authen.err2119
-rw-r--r--tests/msc_vlr/msc_vlr_test_no_authen.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_test_reject_concurrency.c397
-rw-r--r--tests/msc_vlr/msc_vlr_test_reject_concurrency.err1817
-rw-r--r--tests/msc_vlr/msc_vlr_test_reject_concurrency.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_test_rest.c201
-rw-r--r--tests/msc_vlr/msc_vlr_test_rest.err493
-rw-r--r--tests/msc_vlr/msc_vlr_test_rest.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_test_umts_authen.c581
-rw-r--r--tests/msc_vlr/msc_vlr_test_umts_authen.err1381
-rw-r--r--tests/msc_vlr/msc_vlr_test_umts_authen.ok1
-rw-r--r--tests/msc_vlr/msc_vlr_tests.c800
-rw-r--r--tests/msc_vlr/msc_vlr_tests.h186
-rw-r--r--tests/nanobts_omlattr/Makefile.am1
-rw-r--r--tests/nanobts_omlattr/nanobts_omlattr_test.c1
-rw-r--r--tests/oap/Makefile.am36
-rw-r--r--tests/oap/oap_client_test.c270
-rw-r--r--tests/oap/oap_client_test.err35
-rw-r--r--tests/oap/oap_client_test.ok2
-rw-r--r--tests/sgsn/Makefile.am81
-rw-r--r--tests/sgsn/sgsn_test.c2487
-rw-r--r--tests/sgsn/sgsn_test.ok45
-rw-r--r--tests/slhc/Makefile.am15
-rw-r--r--tests/slhc/slhc_test.c272
-rw-r--r--tests/slhc/slhc_test.ok154
-rw-r--r--tests/smpp/Makefile.am40
-rw-r--r--tests/smpp/smpp_test.c73
-rw-r--r--tests/smpp/smpp_test.err2
-rw-r--r--tests/smpp/smpp_test.ok1
-rw-r--r--tests/smpp_test_runner.py137
-rw-r--r--tests/sms_queue/Makefile.am57
-rw-r--r--tests/sms_queue/sms_queue_test.c215
-rw-r--r--tests/sms_queue/sms_queue_test.err0
-rw-r--r--tests/sms_queue/sms_queue_test.ok98
-rw-r--r--tests/sndcp_xid/Makefile.am21
-rw-r--r--tests/sndcp_xid/sndcp_xid_test.c284
-rw-r--r--tests/sndcp_xid/sndcp_xid_test.ok11
-rw-r--r--tests/testsuite.at156
-rw-r--r--tests/v42bis/Makefile.am15
-rw-r--r--tests/v42bis/v42bis_test.c435
-rw-r--r--tests/v42bis/v42bis_test.ok648
-rw-r--r--tests/xid/Makefile.am39
-rw-r--r--tests/xid/xid_test.c164
-rw-r--r--tests/xid/xid_test.ok12
82 files changed, 13 insertions, 37540 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7e17ad8de..fc7fc570d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,14 +1,10 @@
SUBDIRS = \
gsm0408 \
channel \
- gprs \
abis \
- gbproxy \
trau \
subscr \
nanobts_omlattr \
- sms_queue \
- msc_vlr \
$(NULL)
if BUILD_NAT
@@ -22,27 +18,6 @@ SUBDIRS += \
bsc \
$(NULL)
endif
-if BUILD_SMPP
-SUBDIRS += \
- smpp \
- $(NULL)
-endif
-if HAVE_LIBGTP
-SUBDIRS += \
- gtphub \
- $(NULL)
-
-if HAVE_LIBCARES
-SUBDIRS += \
- sgsn \
- oap \
- xid \
- sndcp_xid \
- slhc \
- v42bis \
- $(NULL)
-endif
-endif
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
@@ -68,7 +43,6 @@ EXTRA_DIST = \
$(TESTSUITE) \
vty_test_runner.py \
ctrl_test_runner.py \
- smpp_test_runner.py \
$(NULL)
TESTSUITE = $(srcdir)/testsuite
@@ -83,9 +57,6 @@ python-tests: $(BUILT_SOURCES)
osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
$(PYTHON) $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v
$(PYTHON) $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v
-if BUILD_SMPP
- $(PYTHON) $(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v
-endif
rm -f $(top_builddir)/sms.db $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count
else
python-tests: $(BUILT_SOURCES)
diff --git a/tests/bsc-nat-trie/Makefile.am b/tests/bsc-nat-trie/Makefile.am
index cf8ebaf20..c8422f318 100644
--- a/tests/bsc-nat-trie/Makefile.am
+++ b/tests/bsc-nat-trie/Makefile.am
@@ -9,9 +9,10 @@ noinst_PROGRAMS = bsc_nat_trie_test
bsc_nat_trie_test_SOURCES = bsc_nat_trie_test.c \
$(top_srcdir)/src/osmo-bsc_nat/bsc_nat_rewrite_trie.c
bsc_nat_trie_test_LDADD = $(top_builddir)/src/libbsc/libbsc.a \
- $(top_builddir)/src/libmgcp/libmgcp.a \
$(top_builddir)/src/libtrau/libtrau.a \
$(top_builddir)/src/libcommon/libcommon.a \
$(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) -lrt \
$(LIBOSMOSCCP_LIBS) $(LIBOSMOVTY_LIBS) \
- $(LIBOSMOABIS_LIBS)
+ $(LIBOSMOABIS_LIBS) \
+ $(LIBOSMOMGCP_LIBS) \
+ $(LIBRARY_GSM)
diff --git a/tests/bsc-nat/Makefile.am b/tests/bsc-nat/Makefile.am
index 40be3a32f..74838a984 100644
--- a/tests/bsc-nat/Makefile.am
+++ b/tests/bsc-nat/Makefile.am
@@ -12,6 +12,7 @@ AM_CFLAGS = \
$(LIBOSMOSCCP_CFLAGS) \
$(LIBOSMOABIS_CFLAGS) \
$(LIBOSMONETIF_CFLAGS) \
+ $(LIBOSMOLEGACYMGCP_CFLAGS) \
$(COVERAGE_CFLAGS) \
$(NULL)
@@ -45,7 +46,6 @@ bsc_nat_test_LDADD = \
$(top_builddir)/src/libfilter/libfilter.a \
$(top_builddir)/src/libbsc/libbsc.a \
$(top_builddir)/src/libcommon-cs/libcommon-cs.a \
- $(top_builddir)/src/libmgcp/libmgcp.a \
$(top_builddir)/src/libtrau/libtrau.a \
$(top_builddir)/src/libcommon/libcommon.a \
$(LIBOSMOCORE_LIBS) \
@@ -55,5 +55,7 @@ bsc_nat_test_LDADD = \
$(LIBOSMOABIS_LIBS) \
$(LIBOSMONETIF_LIBS) \
$(LIBOSMOCTRL_LIBS) \
+ $(LIBOSMOLEGACYMGCP_LIBS) \
+ $(LIBRARY_GSM) \
-lrt \
$(NULL)
diff --git a/tests/bsc/Makefile.am b/tests/bsc/Makefile.am
index 904bdfcd7..5361bb874 100644
--- a/tests/bsc/Makefile.am
+++ b/tests/bsc/Makefile.am
@@ -33,7 +33,6 @@ bsc_test_SOURCES = \
bsc_test_LDADD = \
$(top_builddir)/src/libbsc/libbsc.a \
$(top_builddir)/src/libcommon-cs/libcommon-cs.a \
- $(top_builddir)/src/libmgcp/libmgcp.a \
$(top_builddir)/src/libtrau/libtrau.a \
$(top_builddir)/src/libcommon/libcommon.a \
$(LIBOSMOCORE_LIBS) \
@@ -41,5 +40,7 @@ bsc_test_LDADD = \
$(LIBOSMOSCCP_LIBS) \
$(LIBOSMOVTY_LIBS) \
$(LIBOSMOABIS_LIBS) \
+ $(LIBOSMOMGCP_LIBS) \
+ $(LIBRARY_GSM) \
-lrt \
$(NULL)
diff --git a/tests/channel/Makefile.am b/tests/channel/Makefile.am
index dd78bdcf9..d190cbaa9 100644
--- a/tests/channel/Makefile.am
+++ b/tests/channel/Makefile.am
@@ -25,7 +25,6 @@ channel_test_SOURCES = \
channel_test_LDADD = \
$(top_builddir)/src/libbsc/libbsc.a \
- $(top_builddir)/src/libvlr/libvlr.a \
$(top_builddir)/src/libcommon-cs/libcommon-cs.a \
$(top_builddir)/src/libcommon/libcommon.a \
$(LIBOSMOCORE_LIBS) \
diff --git a/tests/channel/channel_test.c b/tests/channel/channel_test.c
index f6869691c..46295d0e2 100644
--- a/tests/channel/channel_test.c
+++ b/tests/channel/channel_test.c
@@ -29,7 +29,6 @@
#include <openbsc/abis_rsl.h>
#include <openbsc/debug.h>
#include <openbsc/gsm_subscriber.h>
-#include <openbsc/vlr.h>
void test_dyn_ts_subslots(void)
{
diff --git a/tests/db/Makefile.am b/tests/db/Makefile.am
deleted file mode 100644
index bcb66ec32..000000000
--- a/tests/db/Makefile.am
+++ /dev/null
@@ -1,47 +0,0 @@
-AM_CPPFLAGS = \
- $(all_includes) \
- -I$(top_srcdir)/include \
- $(NULL)
-
-AM_CFLAGS = \
- -Wall \
- -ggdb3 \
- $(LIBOSMOCORE_CFLAGS) \
- $(LIBOSMOGSM_CFLAGS) \
- $(LIBOSMOABIS_CFLAGS) \
- $(LIBSMPP34_CFLAGS) \
- $(COVERAGE_CFLAGS) \
- $(NULL)
-
-AM_LDFLAGS = \
- $(COVERAGE_LDFLAGS) \
- $(NULL)
-
-EXTRA_DIST = \
- db_test.ok \
- db_test.err \
- hlr.sqlite3 \
- $(NULL)
-
-noinst_PROGRAMS = \
- db_test \
- $(NULL)
-
-db_test_SOURCES = \
- db_test.c \
- $(NULL)
-
-db_test_LDADD = \
- $(top_builddir)/src/libmsc/libmsc.a \
- $(top_builddir)/src/libcommon-cs/libcommon-cs.a \
- $(top_builddir)/src/libtrau/libtrau.a \
- $(top_builddir)/src/libcommon/libcommon.a \
- $(top_builddir)/tests/libiudummy/libiudummy.a \
- $(LIBOSMOCORE_LIBS) \
- $(LIBOSMOABIS_LIBS) \
- $(LIBOSMOGSM_LIBS) \
- $(LIBSMPP34_LIBS) \
- $(LIBOSMOVTY_LIBS) \
- $(LIBCRYPTO_LIBS) \
- -ldbi \
- $(NULL)
diff --git a/tests/db/db_test.c b/tests/db/db_test.c
deleted file mode 100644
index a0c1e79c3..000000000
--- a/tests/db/db_test.c
+++ /dev/null
@@ -1,286 +0,0 @@
-/* (C) 2008 by Jan Luebbe <jluebbe@debian.org>
- * (C) 2009-2016 by Holger Hans Peter Freyther <zecke@selfish.org>
- * (C) 2014 by Alexander Chemeris <Alexander.Chemeris@fairwaves.co>
- * All Rights Reserved
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#include <openbsc/debug.h>
-#include <openbsc/db.h>
-#include <openbsc/gsm_subscriber.h>
-#include <openbsc/gsm_04_11.h>
-#include <openbsc/mgcp.h>
-
-#include <osmocom/core/application.h>
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <inttypes.h>
-
-static struct gsm_network dummy_net;
-static struct gsm_subscriber_group dummy_sgrp;
-
-#define SUBSCR_PUT(sub) \
- sub->group = &dummy_sgrp; \
- subscr_put(sub);
-
-#define COMPARE(original, copy) \
- if (original->id != copy->id) \
- printf("Ids do not match in %s:%d %llu %llu\n", \
- __FUNCTION__, __LINE__, original->id, copy->id); \
- if (original->lac != copy->lac) \
- printf("LAC do not match in %s:%d %d %d\n", \
- __FUNCTION__, __LINE__, original->lac, copy->lac); \
- if (original->authorized != copy->authorized) \
- printf("Authorize do not match in %s:%d %d %d\n", \
- __FUNCTION__, __LINE__, original->authorized, \
- copy->authorized); \
- if (strcmp(original->imsi, copy->imsi) != 0) \
- printf("IMSIs do not match in %s:%d '%s' '%s'\n", \
- __FUNCTION__, __LINE__, original->imsi, copy->imsi); \
- if (original->tmsi != copy->tmsi) \
- printf("TMSIs do not match in %s:%d '%u' '%u'\n", \
- __FUNCTION__, __LINE__, original->tmsi, copy->tmsi); \
- if (strcmp(original->name, copy->name) != 0) \
- printf("names do not match in %s:%d '%s' '%s'\n", \
- __FUNCTION__, __LINE__, original->name, copy->name); \
- if (strcmp(original->extension, copy->extension) != 0) \
- printf("Extensions do not match in %s:%d '%s' '%s'\n", \
- __FUNCTION__, __LINE__, original->extension, copy->extension); \
-
-/*
- * Create/Store a SMS and then try to load it.
- */
-static void test_sms(void)
-{
- int rc;
- struct gsm_sms *sms;
- struct gsm_subscriber *subscr;
- subscr = db_get_subscriber(GSM_SUBSCRIBER_IMSI, "9993245423445");
- OSMO_ASSERT(subscr);
- subscr->group = &dummy_sgrp;
-
- sms = sms_alloc();
- sms->receiver = subscr_get(subscr);
-
- sms->src.ton = 0x23;
- sms->src.npi = 0x24;
- memcpy(sms->src.addr, "1234", strlen("1234") + 1);
-
- sms->dst.ton = 0x32;
- sms->dst.npi = 0x42;
- memcpy(sms->dst.addr, subscr->extension, sizeof(subscr->extension));
-
- memcpy(sms->text, "Text123", strlen("Text123") + 1);
- memcpy(sms->user_data, "UserData123", strlen("UserData123") + 1);
- sms->user_data_len = strlen("UserData123");
-
- /* random values */
- sms->reply_path_req = 1;
- sms->status_rep_req = 2;
- sms->ud_hdr_ind = 3;
- sms->protocol_id = 4;
- sms->data_coding_scheme = 5;
-
- rc = db_sms_store(sms);
- sms_free(sms);
- OSMO_ASSERT(rc == 0);
-
- /* now query */
- sms = db_sms_get_unsent_for_subscr(subscr);
- OSMO_ASSERT(sms);
- OSMO_ASSERT(sms->receiver == subscr);
- OSMO_ASSERT(sms->reply_path_req == 1);
- OSMO_ASSERT(sms->status_rep_req == 2);
- OSMO_ASSERT(sms->ud_hdr_ind == 3);
- OSMO_ASSERT(sms->protocol_id == 4);
- OSMO_ASSERT(sms->data_coding_scheme == 5);
- OSMO_ASSERT(sms->src.ton == 0x23);
- OSMO_ASSERT(sms->src.npi == 0x24);
- OSMO_ASSERT(sms->dst.ton == 0x32);
- OSMO_ASSERT(sms->dst.npi == 0x42);
- OSMO_ASSERT(strcmp((char *) sms->text, "Text123") == 0);
- OSMO_ASSERT(sms->user_data_len == strlen("UserData123"));
- OSMO_ASSERT(strcmp((char *) sms->user_data, "UserData123") == 0);
-
- /* Mark the SMS as delivered */
- db_sms_mark_delivered(sms);
- sms_free(sms);
-
- sms = db_sms_get_unsent_for_subscr(subscr);
- OSMO_ASSERT(!sms);
-
- subscr_put(subscr);
-}
-
-static void test_sms_migrate(void)
-{
- struct gsm_subscriber *rcv_subscr;
- struct gsm_sms *sms;
- static const uint8_t user_data_1[] = {
- 0x41, 0xf1, 0xd8, 0x05, 0x22, 0x96, 0xcd, 0x2e,
- 0x90, 0xf1, 0xfd, 0x06, 0x00 };
- static const uint8_t user_data_2[] = {
- 0x41, 0xf1, 0xd8, 0x05, 0x22, 0x96, 0xcd, 0x2e,
- 0xd0, 0xf1, 0xfd, 0x06, 0x00 };
-
- rcv_subscr = db_get_subscriber(GSM_SUBSCRIBER_IMSI, "901010000001111");
- rcv_subscr->group = &dummy_sgrp;
-
- sms = db_sms_get(&dummy_net, 1);
- OSMO_ASSERT(sms->id == 1);
- OSMO_ASSERT(sms->receiver == rcv_subscr);
- OSMO_ASSERT(strcmp(sms->text, "Abc. Def. Foo") == 0);
- OSMO_ASSERT(sms->user_data_len == ARRAY_SIZE(user_data_1));
- OSMO_ASSERT(memcmp(sms->user_data, user_data_1, ARRAY_SIZE(user_data_1)) == 0);
- sms_free(sms);
-
- sms = db_sms_get(&dummy_net, 2);
- OSMO_ASSERT(sms->id == 2);
- OSMO_ASSERT(sms->receiver == rcv_subscr);
- OSMO_ASSERT(strcmp(sms->text, "Abc. Def. Goo") == 0);
- OSMO_ASSERT(sms->user_data_len == ARRAY_SIZE(user_data_2));
- OSMO_ASSERT(memcmp(sms->user_data, user_data_2, ARRAY_SIZE(user_data_2)) == 0);
- sms_free(sms);
-
- subscr_put(rcv_subscr);
-}
-
-static void test_subs(const char *imsi, char *imei1, char *imei2, bool make_ext)
-{
- struct gsm_subscriber *alice = NULL, *alice_db;
- char scratch_str[256];
-
- alice = db_create_subscriber(imsi, GSM_MIN_EXTEN, GSM_MAX_EXTEN,
- make_ext);
- db_subscriber_assoc_imei(alice, imei1);
- if (imei2)
- db_subscriber_assoc_imei(alice, imei2);
- db_subscriber_alloc_tmsi(alice);
- alice->lac=42;
- db_sync_subscriber(alice);
- /* Get by TMSI */
- snprintf(scratch_str, sizeof(scratch_str), "%"PRIu32, alice->tmsi);
- alice_db = db_get_subscriber(GSM_SUBSCRIBER_TMSI, scratch_str);
- COMPARE(alice, alice_db);
- SUBSCR_PUT(alice_db);
- /* Get by IMSI */
- alice_db = db_get_subscriber(GSM_SUBSCRIBER_IMSI, imsi);
- COMPARE(alice, alice_db);
- SUBSCR_PUT(alice_db);
- /* Get by id */
- snprintf(scratch_str, sizeof(scratch_str), "%llu", alice->id);
- alice_db = db_get_subscriber(GSM_SUBSCRIBER_ID, scratch_str);
- COMPARE(alice, alice_db);
- SUBSCR_PUT(alice_db);
- /* Get by extension */
- alice_db = db_get_subscriber(GSM_SUBSCRIBER_EXTENSION, alice->extension);
- if (alice_db) {
- if (!make_ext)
- printf("FAIL: bogus extension created for IMSI %s\n",
- imsi);
- COMPARE(alice, alice_db);
- SUBSCR_PUT(alice_db);
- } else if (make_ext)
- printf("FAIL: no subscriber extension for IMSI %s\n", imsi);
- SUBSCR_PUT(alice);
-}
-
-int main()
-{
- printf("Testing subscriber database code.\n");
- osmo_init_logging(&log_info);
- log_set_print_filename(osmo_stderr_target, 0);
-
- dummy_net.subscr_group = &dummy_sgrp;
- dummy_sgrp.net = &dummy_net;
-
- if (db_init("hlr.sqlite3")) {
- printf("DB: Failed to init database. Please check the option settings.\n");
- return 1;
- }
- printf("DB: Database initialized.\n");
-
- if (db_prepare()) {
- printf("DB: Failed to prepare database.\n");
- return 1;
- }
- printf("DB: Database prepared.\n");
-
- struct gsm_subscriber *alice = NULL;
- struct gsm_subscriber *alice_db;
-
- char *alice_imsi = "3243245432345";
- alice = db_create_subscriber(alice_imsi, GSM_MIN_EXTEN, GSM_MAX_EXTEN,
- true);
- db_sync_subscriber(alice);
- alice_db = db_get_subscriber(GSM_SUBSCRIBER_IMSI, alice->imsi);
- COMPARE(alice, alice_db);
- SUBSCR_PUT(alice_db);
- SUBSCR_PUT(alice);
-
- test_subs("3693245423445", "1234567890", NULL, true);
- test_subs("9993245423445", "1234567890", "6543560920", true);
- test_subs("3123122223445", "1234567890", NULL, false);
- test_subs("9123121223445", "1234567890", "6543560920", false);
-
- /* create it again and see it fails */
- alice = db_create_subscriber(alice_imsi, GSM_MIN_EXTEN, GSM_MAX_EXTEN,
- true);
- OSMO_ASSERT(!alice);
-
- test_sms();
- test_sms_migrate();
-
- db_fini();
-
- printf("Done\n");
- return 0;
-}
-
-/* stubs */
-void vty_out() {}
-void vlr_subscr_disconnected() {}
-void vlr_subscr_rx_tmsi_reall_compl() {}
-void vlr_subscr_rx_id_resp() {}
-void vlr_subscr_rx_auth_resp() {}
-void vlr_loc_update() {}
-void vlr_proc_acc_req() {}
-void vlr_init() {}
-unsigned int mgcpgw_client_next_endpoint(struct mgcpgw_client *client)
-{ return 0; }
-struct msgb *mgcp_msg_crcx(struct mgcpgw_client *mgcp,
- uint16_t rtp_endpoint, unsigned int call_id,
- enum mgcp_connection_mode mode)
-{ return NULL; }
-struct msgb *mgcp_msg_mdcx(struct mgcpgw_client *mgcp,
- uint16_t rtp_endpoint, const char *rtp_conn_addr,
- uint16_t rtp_port, enum mgcp_connection_mode mode)
-{ return NULL; }
-int mgcpgw_client_tx(struct mgcpgw_client *mgcp, struct msgb *msg,
- mgcp_response_cb_t response_cb, void *priv)
-{ return -EINVAL; }
-const char *mgcpgw_client_remote_addr_str(struct mgcpgw_client *mgcp)
-{ return "0.0.0.0"; }
-uint32_t mgcpgw_client_remote_addr_n(struct mgcpgw_client *mgcp)
-{ return 0; }
-int mgcp_response_parse_params(struct mgcp_response *r)
-{ return -EINVAL; }
-struct RANAP_Cause;
-int iu_tx_release(struct ue_conn_ctx *ctx, const struct RANAP_Cause *cause)
-{ return 0; }
diff --git a/tests/db/db_test.err b/tests/db/db_test.err
deleted file mode 100644
index fa9a54c09..000000000
--- a/tests/db/db_test.err
+++ /dev/null
@@ -1,2 +0,0 @@
-Going to migrate from revision 3
- \ No newline at end of file
diff --git a/tests/db/db_test.ok b/tests/db/db_test.ok
deleted file mode 100644
index 2632a8c8a..000000000
--- a/tests/db/db_test.ok
+++ /dev/null
@@ -1,4 +0,0 @@
-Testing subscriber database code.
-DB: Database initialized.
-DB: Database prepared.
-Done
diff --git a/tests/db/hlr.sqlite3 b/tests/db/hlr.sqlite3
deleted file mode 100644
index e59dcdca3..000000000
--- a/tests/db/hlr.sqlite3
+++ /dev/null
Binary files differ
diff --git a/tests/gbproxy/Makefile.am b/tests/gbproxy/Makefile.am
deleted file mode 100644
index 2dd66dfd4..000000000
--- a/tests/gbproxy/Makefile.am
+++ /dev/null
@@ -1,54 +0,0 @@
-AM_CPPFLAGS = \
- $(all_includes) \
- -I$(top_srcdir)/include \
- $(NULL)
-
-AM_CFLAGS = \
- -Wall \
- -ggdb3 \
- $(LIBOSMOCORE_CFLAGS) \
- $(LIBOSMOGSM_CFLAGS) \
- $(LIBOSMOABIS_CFLAGS) \
- $(NULL)
-
-AM_LDFLAGS = \
- $(COVERAGE_LDFLAGS) \
- $(NULL)
-
-EXTRA_DIST = \
- gbproxy_test.ok \
- $(NULL)
-
-noinst_PROGRAMS = \
- gbproxy_test \
- $(NULL)
-
-gbproxy_test_SOURCES = \
- gbproxy_test.c \
- $(NULL)
-
-gbproxy_test_LDFLAGS = \
- -Wl,--wrap=RAND_bytes \
- $(NULL)
-
-gbproxy_test_LDADD = \
- $(top_builddir)/src/gprs/gb_proxy.o \
- $(top_builddir)/src/gprs/gb_proxy_patch.o \
- $(top_builddir)/src/gprs/gb_proxy_peer.o \
- $(top_builddir)/src/gprs/gb_proxy_tlli.o \
- $(top_builddir)/src/gprs/gprs_gb_parse.o \
- $(top_builddir)/src/gprs/gprs_llc_parse.o \
- $(top_builddir)/src/gprs/crc24.o \
- $(top_builddir)/src/gprs/gprs_utils.o \
- $(top_builddir)/src/libcommon/libcommon.a \
- $(top_builddir)/src/libbsc/libbsc.a \
- $(top_builddir)/src/libtrau/libtrau.a \
- $(LIBOSMOCORE_LIBS) \
- $(LIBOSMOGB_LIBS) \
- $(LIBOSMOGSM_LIBS) \
- $(LIBOSMOVTY_LIBS) \
- $(LIBOSMOABIS_LIBS) \
- $(LIBRARY_DL) \
- $(LIBCRYPTO_LIBS) \
- -lrt \
- $(NULL)
diff --git a/tests/gbproxy/gbproxy_test.c b/tests/gbproxy/gbproxy_test.c
deleted file mode 100644
index 577daa95e..000000000
--- a/tests/gbproxy/gbproxy_test.c
+++ /dev/null
@@ -1,4971 +0,0 @@
-/* test routines for gbproxy
- * send NS messages to the gbproxy and dumps what happens
- * (C) 2013 by sysmocom s.f.m.c. GmbH
- * Author: Jacob Erlbeck <jerlbeck@sysmocom.de>
- */
-
-#undef _GNU_SOURCE
-#define _GNU_SOURCE
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <string.h>
-#include <getopt.h>
-#include <dlfcn.h>
-#include <time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-
-#include <osmocom/core/msgb.h>
-#include <osmocom/core/application.h>
-#include <osmocom/core/utils.h>
-#include <osmocom/core/logging.h>
-#include <osmocom/core/talloc.h>
-#include <osmocom/core/signal.h>
-#include <osmocom/core/rate_ctr.h>
-#include <osmocom/gsm/tlv.h>
-#include <osmocom/gsm/gsm_utils.h>
-#include <osmocom/gsm/protocol/gsm_04_08_gprs.h>
-#include <osmocom/gprs/gprs_msgb.h>
-#include <osmocom/gprs/gprs_ns.h>
-#include <osmocom/gprs/gprs_bssgp.h>
-
-#include <openbsc/gb_proxy.h>
-#include <openbsc/gprs_utils.h>
-#include <openbsc/gprs_llc.h>
-#include <openbsc/gprs_gb_parse.h>
-#include <openbsc/debug.h>
-
-#include <openssl/rand.h>
-
-#define REMOTE_BSS_ADDR 0x01020304
-#define REMOTE_SGSN_ADDR 0x05060708
-
-#define SGSN_NSEI 0x0100
-
-#define REMOTE_SGSN2_ADDR 0x15161718
-#define SGSN2_NSEI 0x0102
-
-#define MATCH_ANY (-1)
-
-struct gbproxy_config gbcfg = {0};
-
-struct llist_head *received_messages = NULL;
-
-/* override, requires '-Wl,--wrap=RAND_bytes' */
-int __real_RAND_bytes(unsigned char *buf, int num);
-int mock_RAND_bytes(unsigned char *buf, int num);
-int (*RAND_bytes_cb)(unsigned char *, int) =
- &mock_RAND_bytes;
-
-int __wrap_RAND_bytes(unsigned char *buf, int num)
-{
- return (*RAND_bytes_cb)(buf, num);
-}
-
-static int rand_seq_num = 0;
-int mock_RAND_bytes(unsigned char *buf, int num)
-{
- uint32_t val;
-
- OSMO_ASSERT(num == sizeof(val));
- OSMO_ASSERT(__real_RAND_bytes(buf, num) == 1);
-
- val = 0x00dead00 + rand_seq_num;
-
- rand_seq_num++;
-
- memcpy(buf, &val, num);
-
- return 1;
-}
-
-static void cleanup_test()
-{
- rand_seq_num = 0;
-}
-
-static int dump_global(FILE *stream, int indent)
-{
- unsigned int i;
- const struct rate_ctr_group_desc *desc;
- int rc;
-
- rc = fprintf(stream, "%*sGbproxy global:\n", indent, "");
- if (rc < 0)
- return rc;
-
- desc = gbcfg.ctrg->desc;
-
- for (i = 0; i < desc->num_ctr; i++) {
- struct rate_ctr *ctr = &gbcfg.ctrg->ctr[i];
- if (ctr->current) {
- rc = fprintf(stream, "%*s %s: %llu\n",
- indent, "",
- desc->ctr_desc[i].description,
- (long long)ctr->current);
-
- if (rc < 0)
- return rc;
- }
- }
-
- return 0;
-}
-
-static int dump_peers(FILE *stream, int indent, time_t now,
- struct gbproxy_config *cfg)
-{
- struct gbproxy_peer *peer;
- struct gprs_ra_id raid;
- unsigned int i;
- const struct rate_ctr_group_desc *desc;
- int rc;
-
- rc = fprintf(stream, "%*sPeers:\n", indent, "");
- if (rc < 0)
- return rc;
-
- llist_for_each_entry(peer, &cfg->bts_peers, list) {
- struct gbproxy_link_info *link_info;
- struct gbproxy_patch_state *state = &peer->patch_state;
- gsm48_parse_ra(&raid, peer->ra);
-
- rc = fprintf(stream, "%*s NSEI %u, BVCI %u, %sblocked, "
- "RAI %u-%u-%u-%u\n",
- indent, "",
- peer->nsei, peer->bvci,
- peer->blocked ? "" : "not ",
- raid.mcc, raid.mnc, raid.lac, raid.rac);
-
- if (rc < 0)
- return rc;
-
- desc = peer->ctrg->desc;
-
- for (i = 0; i < desc->num_ctr; i++) {
- struct rate_ctr *ctr = &peer->ctrg->ctr[i];
- if (ctr->current) {
- rc = fprintf(stream, "%*s %s: %llu\n",
- indent, "",
- desc->ctr_desc[i].description,
- (long long)ctr->current);
-
- if (rc < 0)
- return rc;
- }
- }
-
- fprintf(stream, "%*s TLLI-Cache: %d\n",
- indent, "", state->logical_link_count);
- llist_for_each_entry(link_info, &state->logical_links, list) {
- char mi_buf[200];
- time_t age = now ? now - link_info->timestamp : 0;
- int stored_msgs = 0;
- struct llist_head *iter;
- enum gbproxy_match_id match_id;
- llist_for_each(iter, &link_info->stored_msgs)
- stored_msgs++;
-
- if (link_info->imsi_len > 0) {
- snprintf(mi_buf, sizeof(mi_buf), "(invalid)");
- gsm48_mi_to_string(mi_buf, sizeof(mi_buf),
- link_info->imsi,
- link_info->imsi_len);
- } else {
- snprintf(mi_buf, sizeof(mi_buf), "(none)");
- }
- fprintf(stream, "%*s TLLI %08x",
- indent, "", link_info->tlli.current);
- if (link_info->tlli.assigned)
- fprintf(stream, "/%08x", link_info->tlli.assigned);
- if (link_info->sgsn_tlli.current) {
- fprintf(stream, " -> %08x",
- link_info->sgsn_tlli.current);
- if (link_info->sgsn_tlli.assigned)
- fprintf(stream, "/%08x",
- link_info->sgsn_tlli.assigned);
- }
- fprintf(stream, ", IMSI %s, AGE %d",
- mi_buf, (int)age);
-
- if (stored_msgs)
- fprintf(stream, ", STORED %d", stored_msgs);
-
- for (match_id = 0; match_id < ARRAY_SIZE(cfg->matches);
- ++match_id) {
- if (cfg->matches[match_id].enable &&
- link_info->is_matching[match_id]) {
- fprintf(stream, ", IMSI matches");
- break;
- }
- }
-
- if (link_info->imsi_acq_pending)
- fprintf(stream, ", IMSI acquisition in progress");
-
- if (cfg->route_to_sgsn2)
- fprintf(stream, ", SGSN NSEI %d",
- link_info->sgsn_nsei);
-
- if (link_info->is_deregistered)
- fprintf(stream, ", DE-REGISTERED");
-
- rc = fprintf(stream, "\n");
- if (rc < 0)
- return rc;
- }
- }
-
- return 0;
-}
-
-const uint8_t *convert_ra(struct gprs_ra_id *raid)
-{
- static uint8_t buf[6];
- gsm48_construct_ra(buf, raid);
- return buf;
-}
-
-/* DTAP - Attach Request */
-static const unsigned char dtap_attach_req[] = {
- 0x08, 0x01, 0x02, 0xf5, 0xe0, 0x21, 0x08, 0x02,
- 0x05, 0xf4, 0xfb, 0xc5, 0x46, 0x79, 0x11, 0x22,
- 0x33, 0x40, 0x50, 0x60, 0x19, 0x18, 0xb3, 0x43,
- 0x2b, 0x25, 0x96, 0x62, 0x00, 0x60, 0x80, 0x9a,
- 0xc2, 0xc6, 0x62, 0x00, 0x60, 0x80, 0xba, 0xc8,
- 0xc6, 0x62, 0x00, 0x60, 0x80, 0x00,
-};
-
-/* DTAP - Attach Request (invalid RAI) */
-static const unsigned char dtap_attach_req2[] = {
- 0x08, 0x01, 0x02, 0xf5, 0xe0, 0x21, 0x08, 0x02,
- 0x05, 0xf4, 0xfb, 0x00, 0xbe, 0xef, 0x99, 0x99,
- 0x99, 0x40, 0x50, 0x60, 0x19, 0x18, 0xb3, 0x43,
- 0x2b, 0x25, 0x96, 0x62, 0x00, 0x60, 0x80, 0x9a,
- 0xc2, 0xc6, 0x62, 0x00, 0x60, 0x80, 0xba, 0xc8,
- 0xc6, 0x62, 0x00, 0x60, 0x80, 0x00,
-};
-
-/* DTAP - Attach Request (P-TMSI 0x3f32b700) */
-static const unsigned char dtap_attach_req3[] = {
- 0x08, 0x01, 0x02, 0xf5, 0xe0, 0x21, 0x08, 0x02,
- 0x05, 0xf4, 0xef, 0xe2, 0xb7, 0x00, 0x11, 0x22,
- 0x33, 0x40, 0x50, 0x60, 0x19, 0x18, 0xb3, 0x43,
- 0x2b, 0x25, 0x96, 0x62, 0x00, 0x60, 0x80, 0x9a,
- 0xc2, 0xc6, 0x62, 0x00, 0x60, 0x80, 0xba, 0xc8,
- 0xc6, 0x62, 0x00, 0x60, 0x80, 0x00,
-};
-
-/* DTAP - Attach Request (IMSI 12131415161718) */
-static const unsigned char dtap_attach_req4[] = {
- 0x08, 0x01, 0x02, 0xf5, 0xe0, 0x21, 0x08, 0x02,
- 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
- 0x18, 0x11, 0x22, 0x33, 0x40, 0x50, 0x60, 0x19,
- 0x18, 0xb3, 0x43, 0x2b, 0x25, 0x96, 0x62, 0x00,
- 0x60, 0x80, 0x9a, 0xc2, 0xc6, 0x62, 0x00, 0x60,
- 0x80, 0xba, 0xc8, 0xc6, 0x62, 0x00, 0x60, 0x80,
- 0x00,
-};
-
-/* DTAP - Identity Request */
-static const unsigned char dtap_identity_req[] = {
- 0x08, 0x15, 0x01
-};
-
-/* DTAP - Identity Response */
-static const unsigned char dtap_identity_resp[] = {
- 0x08, 0x16, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15,
- 0x16, 0x17, 0x18
-};
-
-/* DTAP - Identity Response, IMSI 2 */
-static const unsigned char dtap_identity2_resp[] = {
- 0x08, 0x16, 0x08, 0x11, 0x12, 0x99, 0x99, 0x99,
- 0x16, 0x17, 0x18
-};
-
-/* DTAP - Identity Response, IMSI 3 */
-static const unsigned char dtap_identity3_resp[] = {
- 0x08, 0x16, 0x08, 0x11, 0x12, 0x99, 0x99, 0x99,
- 0x26, 0x27, 0x28
-};
-
-/* DTAP - Attach Accept */
-static const unsigned char dtap_attach_acc[] = {
- 0x08, 0x02, 0x01, 0x49, 0x04, 0x21, 0x63, 0x54,
- 0x40, 0x50, 0x60, 0x19, 0xcd, 0xd7, 0x08, 0x17,
- 0x16, 0x18, 0x05, 0xf4, 0xef, 0xe2, 0xb7, 0x00
-};
-
-/* DTAP - Attach Accept, P-TMSI 2 */
-static const unsigned char dtap_attach_acc2[] = {
- 0x08, 0x02, 0x01, 0x49, 0x04, 0x21, 0x63, 0x54,
- 0x40, 0x50, 0x60, 0x19, 0xcd, 0xd7, 0x08, 0x17,
- 0x16, 0x18, 0x05, 0xf4, 0xe0, 0x98, 0x76, 0x54
-};
-
-/* DTAP - Attach Complete */
-static const unsigned char dtap_attach_complete[] = {
- 0x08, 0x03
-};
-
-/* DTAP - Attach Reject (GPRS services not allowed) */
-static const unsigned char dtap_attach_rej7[] = {
- 0x08, 0x04, 0x07
-};
-
-/* DTAP - GMM Information */
-static const unsigned char dtap_gmm_information[] = {
- 0x08, 0x21
-};
-
-/* DTAP - Routing Area Update Request */
-static const unsigned char dtap_ra_upd_req[] = {
- 0x08, 0x08, 0x10, 0x11, 0x22, 0x33, 0x40, 0x50,
- 0x60, 0x1d, 0x19, 0x13, 0x42, 0x33, 0x57, 0x2b,
- 0xf7, 0xc8, 0x48, 0x02, 0x13, 0x48, 0x50, 0xc8,
- 0x48, 0x02, 0x14, 0x48, 0x50, 0xc8, 0x48, 0x02,
- 0x17, 0x49, 0x10, 0xc8, 0x48, 0x02, 0x00, 0x19,
- 0x8b, 0xb2, 0x92, 0x17, 0x16, 0x27, 0x07, 0x04,
- 0x31, 0x02, 0xe5, 0xe0, 0x32, 0x02, 0x20, 0x00
-};
-
-/* DTAP - Routing Area Update Accept */
-static const unsigned char dtap_ra_upd_acc[] = {
- 0x08, 0x09, 0x00, 0x49, 0x21, 0x63, 0x54,
- 0x40, 0x50, 0x60, 0x19, 0x54, 0xab, 0xb3, 0x18,
- 0x05, 0xf4, 0xef, 0xe2, 0xb7, 0x00, 0x17, 0x16,
-};
-
-/* DTAP - Routing Area Update Accept, P-TMSI 2 */
-static const unsigned char dtap_ra_upd_acc2[] = {
- 0x08, 0x09, 0x00, 0x49, 0x21, 0x63, 0x54,
- 0x40, 0x50, 0x60, 0x19, 0x54, 0xab, 0xb3, 0x18,
- 0x05, 0xf4, 0xe0, 0x98, 0x76, 0x54, 0x17, 0x16,
-};
-
-/* DTAP - Routing Area Update Accept, P-TMSI 3 */
-static const unsigned char dtap_ra_upd_acc3[] = {
- 0x08, 0x09, 0x00, 0x49, 0x21, 0x63, 0x54,
- 0x40, 0x50, 0x60, 0x19, 0x54, 0xab, 0xb3, 0x18,
- 0x05, 0xf4, 0xe0, 0x54, 0x32, 0x10, 0x17, 0x16,
-};
-
-/* DTAP - Routing Area Update Complete */
-static const unsigned char dtap_ra_upd_complete[] = {
- 0x08, 0x0a
-};
-
-/* DTAP - Routing Area Update Reject */
-/* cause = 10 ("Implicitly detached"), force_standby = 0 */
-static const unsigned char dtap_ra_upd_rej[] = {
- 0x08, 0x0b, 0x0a, 0x00,
-};
-
-/* DTAP - Activate PDP Context Request */
-static const unsigned char dtap_act_pdp_ctx_req[] = {
- 0x0a, 0x41, 0x05, 0x03, 0x0c, 0x00,
- 0x00, 0x1f, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x02, 0x01, 0x21, 0x28, 0x03,
- 0x02, 0x61, 0x62, 0x27, 0x14, 0x80, 0x80, 0x21,
- 0x10, 0x01, 0x00, 0x00, 0x10, 0x81, 0x06, 0x00,
- 0x00, 0x00, 0x00, 0x83, 0x06, 0x00, 0x00, 0x00,
- 0x00
-};
-
-/* DTAP - Detach Request (MO) */
-/* normal detach, power_off = 1 */
-static const unsigned char dtap_detach_po_req[] = {
- 0x08, 0x05, 0x09, 0x18, 0x05, 0xf4, 0xef, 0xe2,
- 0xb7, 0x00, 0x19, 0x03, 0xb9, 0x97, 0xcb
-};
-
-/* DTAP - Detach Request (MO) */
-/* normal detach, power_off = 0 */
-static const unsigned char dtap_detach_req[] = {
- 0x08, 0x05, 0x01, 0x18, 0x05, 0xf4, 0xef, 0xe2,
- 0xb7, 0x00, 0x19, 0x03, 0xb9, 0x97, 0xcb
-};
-
-/* DTAP - Detach Accept (MO) */
-static const unsigned char dtap_detach_acc[] = {
- 0x08, 0x06, 0x00
-};
-
-/* DTAP - Detach Request (MT) */
-/* normal detach, reattach required, implicitly detached */
-static const unsigned char dtap_mt_detach_rea_req[] = {
- 0x08, 0x05, 0x01, 0x25, 0x0a
-};
-
-/* DTAP - Detach Request (MT) */
-/* normal detach, reattach not required, implicitly detached */
-static const unsigned char dtap_mt_detach_req[] = {
- 0x08, 0x05, 0x02, 0x25, 0x0a
-};
-
-/* DTAP - Detach Accept (MT) */
-static const unsigned char dtap_mt_detach_acc[] = {
- 0x08, 0x06
-};
-
-/* GPRS-LLC - SAPI: LLGMM, U, XID */
-static const unsigned char llc_u_xid_ul[] = {
- 0x41, 0xfb, 0x01, 0x00, 0x0e, 0x00, 0x64, 0x11,
- 0x05, 0x16, 0x01, 0x90, 0x66, 0xb3, 0x28
-};
-
-/* GPRS-LLC - SAPI: LLGMM, U, XID */
-static const unsigned char llc_u_xid_dl[] = {
- 0x41, 0xfb, 0x30, 0x84, 0x10, 0x61, 0xb6, 0x64,
- 0xe4, 0xa9, 0x1a, 0x9e
-};
-
-/* GPRS-LLC - SAPI: LL11, UI, NSAPI 5, DNS query */
-static const unsigned char llc_ui_ll11_dns_query_ul[] = {
- 0x0b, 0xc0, 0x01, 0x65, 0x00, 0x00, 0x00, 0x45,
- 0x00, 0x00, 0x38, 0x95, 0x72, 0x00, 0x00, 0x45,
- 0x11, 0x20, 0x85, 0x0a, 0xc0, 0x07, 0xe4, 0xac,
- 0x10, 0x01, 0x0a, 0xad, 0xab, 0x00, 0x35, 0x00,
- 0x24, 0x0e, 0x1c, 0x3b, 0xe0, 0x01, 0x00, 0x00,
- 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
- 0x6d, 0x05, 0x68, 0x65, 0x69, 0x73, 0x65, 0x02,
- 0x64, 0x65, 0x00, 0x00, 0x01, 0x00, 0x01, 0x47,
- 0x8f, 0x07
-};
-
-/* GPRS-LLC - SAPI: LL11, UI, NSAPI 5, DNS query */
-static const unsigned char llc_ui_ll11_dns_resp_dl[] = {
- 0x4b, 0xc0, 0x01, 0x65, 0x00, 0x00, 0x00, 0x45,
- 0x00, 0x00, 0xc6, 0x00, 0x00, 0x40, 0x00, 0x3e,
- 0x11, 0x7c, 0x69, 0xac, 0x10, 0x01, 0x0a, 0x0a,
- 0xc0, 0x07, 0xe4, 0x00, 0x35, 0xad, 0xab, 0x00,
- 0xb2, 0x74, 0x4e, 0x3b, 0xe0, 0x81, 0x80, 0x00,
- 0x01, 0x00, 0x01, 0x00, 0x05, 0x00, 0x00, 0x01,
- 0x6d, 0x05, 0x68, 0x65, 0x69, 0x73, 0x65, 0x02,
- 0x64, 0x65, 0x00, 0x00, 0x01, 0x00, 0x01, 0xc0,
- 0x0c, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x0e,
- 0x10, 0x00, 0x04, 0xc1, 0x63, 0x90, 0x58, 0xc0,
- 0x0e, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x0e,
- 0x10, 0x00, 0x16, 0x03, 0x6e, 0x73, 0x32, 0x0c,
- 0x70, 0x6f, 0x70, 0x2d, 0x68, 0x61, 0x6e, 0x6e,
- 0x6f, 0x76, 0x65, 0x72, 0x03, 0x6e, 0x65, 0x74,
- 0x00, 0xc0, 0x0e, 0x00, 0x02, 0x00, 0x01, 0x00,
- 0x00, 0x0e, 0x10, 0x00, 0x10, 0x02, 0x6e, 0x73,
- 0x01, 0x73, 0x08, 0x70, 0x6c, 0x75, 0x73, 0x6c,
- 0x69, 0x6e, 0x65, 0xc0, 0x14, 0xc0, 0x0e, 0x00,
- 0x02, 0x00, 0x01, 0x00, 0x00, 0x0e, 0x10, 0x00,
- 0x05, 0x02, 0x6e, 0x73, 0xc0, 0x0e, 0xc0, 0x0e,
- 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x0e, 0x10,
- 0x00, 0x05, 0x02, 0x6e, 0x73, 0xc0, 0x5f, 0xc0,
- 0x0e, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x0e,
- 0x10, 0x00, 0x12, 0x02, 0x6e, 0x73, 0x0c, 0x70,
- 0x6f, 0x70, 0x2d, 0x68, 0x61, 0x6e, 0x6e, 0x6f,
- 0x76, 0x65, 0x72, 0xc0, 0x14, 0xaa, 0xdf, 0x31
-};
-
-static int gprs_process_message(struct gprs_ns_inst *nsi, const char *text,
- struct sockaddr_in *peer, const unsigned char* data,
- size_t data_len);
-
-static void send_ns_reset(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr,
- enum ns_cause cause, uint16_t nsvci, uint16_t nsei)
-{
- /* GPRS Network Service, PDU type: NS_RESET,
- */
- unsigned char msg[12] = {
- 0x02, 0x00, 0x81, 0x01, 0x01, 0x82, 0x11, 0x22,
- 0x04, 0x82, 0x11, 0x22
- };
-
- msg[3] = cause;
- msg[6] = nsvci / 256;
- msg[7] = nsvci % 256;
- msg[10] = nsei / 256;
- msg[11] = nsei % 256;
-
- gprs_process_message(nsi, "RESET", src_addr, msg, sizeof(msg));
-}
-
-static void send_ns_reset_ack(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr,
- uint16_t nsvci, uint16_t nsei)
-{
- /* GPRS Network Service, PDU type: NS_RESET_ACK,
- */
- unsigned char msg[9] = {
- 0x03, 0x01, 0x82, 0x11, 0x22,
- 0x04, 0x82, 0x11, 0x22
- };
-
- msg[3] = nsvci / 256;
- msg[4] = nsvci % 256;
- msg[7] = nsei / 256;
- msg[8] = nsei % 256;
-
- gprs_process_message(nsi, "RESET_ACK", src_addr, msg, sizeof(msg));
-}
-
-static void send_ns_alive(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr)
-{
- /* GPRS Network Service, PDU type: NS_ALIVE */
- unsigned char msg[1] = {
- 0x0a
- };
-
- gprs_process_message(nsi, "ALIVE", src_addr, msg, sizeof(msg));
-}
-
-static void send_ns_alive_ack(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr)
-{
- /* GPRS Network Service, PDU type: NS_ALIVE_ACK */
- unsigned char msg[1] = {
- 0x0b
- };
-
- gprs_process_message(nsi, "ALIVE_ACK", src_addr, msg, sizeof(msg));
-}
-
-static void send_ns_unblock(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr)
-{
- /* GPRS Network Service, PDU type: NS_UNBLOCK */
- unsigned char msg[1] = {
- 0x06
- };
-
- gprs_process_message(nsi, "UNBLOCK", src_addr, msg, sizeof(msg));
-}
-
-static void send_ns_unblock_ack(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr)
-{
- /* GPRS Network Service, PDU type: NS_UNBLOCK_ACK */
- unsigned char msg[1] = {
- 0x07
- };
-
- gprs_process_message(nsi, "UNBLOCK_ACK", src_addr, msg, sizeof(msg));
-}
-
-static void send_ns_unitdata(struct gprs_ns_inst *nsi, const char *text,
- struct sockaddr_in *src_addr, uint16_t nsbvci,
- const unsigned char *bssgp_msg, size_t bssgp_msg_size)
-{
- /* GPRS Network Service, PDU type: NS_UNITDATA */
- unsigned char msg[4096] = {
- 0x00, 0x00, 0x00, 0x00
- };
-
- OSMO_ASSERT(bssgp_msg_size <= sizeof(msg) - 4);
-
- msg[2] = nsbvci / 256;
- msg[3] = nsbvci % 256;
- memcpy(msg + 4, bssgp_msg, bssgp_msg_size);
-
- gprs_process_message(nsi, text ? text : "UNITDATA", src_addr, msg, bssgp_msg_size + 4);
-}
-
-static void send_bssgp_ul_unitdata(
- struct gprs_ns_inst *nsi, const char *text,
- struct sockaddr_in *src_addr, uint16_t nsbvci, uint32_t tlli,
- struct gprs_ra_id *raid, uint16_t cell_id,
- const uint8_t *llc_msg, size_t llc_msg_size)
-{
- /* GPRS Network Service, PDU type: NS_UNITDATA */
- /* Base Station Subsystem GPRS Protocol: UL_UNITDATA */
- unsigned char msg[4096] = {
- 0x01, /* TLLI */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04,
- 0x08, 0x88, /* RAI */ 0x11, 0x22, 0x33, 0x40, 0x50, 0x60,
- /* CELL ID */ 0x00, 0x00, 0x00, 0x80, 0x0e, /* LLC LEN */ 0x00, 0x00,
- };
-
- size_t bssgp_msg_size = 23 + llc_msg_size;
-
- OSMO_ASSERT(bssgp_msg_size <= sizeof(msg));
-
- gsm48_construct_ra(msg + 10, raid);
- msg[1] = (uint8_t)(tlli >> 24);
- msg[2] = (uint8_t)(tlli >> 16);
- msg[3] = (uint8_t)(tlli >> 8);
- msg[4] = (uint8_t)(tlli >> 0);
- msg[16] = cell_id / 256;
- msg[17] = cell_id % 256;
- msg[21] = llc_msg_size / 256;
- msg[22] = llc_msg_size % 256;
- memcpy(msg + 23, llc_msg, llc_msg_size);
-
- send_ns_unitdata(nsi, text ? text : "BSSGP UL UNITDATA",
- src_addr, nsbvci, msg, bssgp_msg_size);
-}
-
-static void send_bssgp_dl_unitdata(
- struct gprs_ns_inst *nsi, const char *text,
- struct sockaddr_in *src_addr, uint16_t nsbvci, uint32_t tlli,
- int with_racap_drx, const uint8_t *imsi, size_t imsi_size,
- const uint8_t *llc_msg, size_t llc_msg_size)
-{
- /* Base Station Subsystem GPRS Protocol: DL_UNITDATA */
- unsigned char msg[4096] = {
- 0x00, /* TLLI */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x20,
- 0x16, 0x82, 0x02, 0x58,
- };
- unsigned char racap_drx[] = {
- 0x13, 0x99, 0x18, 0xb3, 0x43, 0x2b, 0x25, 0x96,
- 0x62, 0x00, 0x60, 0x80, 0x9a, 0xc2, 0xc6, 0x62,
- 0x00, 0x60, 0x80, 0xba, 0xc8, 0xc6, 0x62, 0x00,
- 0x60, 0x80, 0x00, 0x0a, 0x82, 0x08, 0x02
- };
-
- size_t bssgp_msg_size = 0;
-
- OSMO_ASSERT(51 + imsi_size + llc_msg_size <= sizeof(msg));
-
- msg[1] = (uint8_t)(tlli >> 24);
- msg[2] = (uint8_t)(tlli >> 16);
- msg[3] = (uint8_t)(tlli >> 8);
- msg[4] = (uint8_t)(tlli >> 0);
-
- bssgp_msg_size = 12;
-
- if (with_racap_drx) {
- memcpy(msg + bssgp_msg_size, racap_drx, sizeof(racap_drx));
- bssgp_msg_size += sizeof(racap_drx);
- }
-
- if (imsi) {
- OSMO_ASSERT(imsi_size <= 127);
- msg[bssgp_msg_size] = BSSGP_IE_IMSI;
- msg[bssgp_msg_size + 1] = 0x80 | imsi_size;
- memcpy(msg + bssgp_msg_size + 2, imsi, imsi_size);
- bssgp_msg_size += 2 + imsi_size;
- }
-
- if ((bssgp_msg_size % 4) != 0) {
- size_t abytes = (4 - (bssgp_msg_size + 2) % 4) % 4;
- msg[bssgp_msg_size] = BSSGP_IE_ALIGNMENT;
- msg[bssgp_msg_size + 1] = 0x80 | abytes;
- memset(msg + bssgp_msg_size + 2, 0, abytes);
- bssgp_msg_size += 2 + abytes;
- }
-
- msg[bssgp_msg_size] = BSSGP_IE_LLC_PDU;
- if (llc_msg_size < 128) {
- msg[bssgp_msg_size + 1] = 0x80 | llc_msg_size;
- bssgp_msg_size += 2;
- } else {
- msg[bssgp_msg_size + 1] = llc_msg_size / 256;
- msg[bssgp_msg_size + 2] = llc_msg_size % 256;
- bssgp_msg_size += 3;
- }
- memcpy(msg + bssgp_msg_size, llc_msg, llc_msg_size);
- bssgp_msg_size += llc_msg_size;
-
-
- send_ns_unitdata(nsi, text ? text : "BSSGP DL UNITDATA",
- src_addr, nsbvci, msg, bssgp_msg_size);
-}
-
-static void send_bssgp_reset(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr,
- uint16_t bvci)
-{
- /* GPRS Network Service, PDU type: NS_UNITDATA, BVCI 0
- * BSSGP RESET */
- unsigned char msg[18] = {
- 0x22, 0x04, 0x82, 0x4a,
- 0x2e, 0x07, 0x81, 0x08, 0x08, 0x88, 0x11, 0x22,
- 0x33, 0x40, 0x50, 0x60, 0x10, 0x00
- };
-
- msg[3] = bvci / 256;
- msg[4] = bvci % 256;
-
- send_ns_unitdata(nsi, "BVC_RESET", src_addr, 0, msg, sizeof(msg));
-}
-
-static void send_bssgp_reset_ack(struct gprs_ns_inst *nsi,
- struct sockaddr_in *src_addr, uint16_t bvci)
-{
- /* GPRS Network Service, PDU type: NS_UNITDATA, BVCI 0
- * BSSGP RESET_ACK */
- static unsigned char msg[5] = {
- 0x23, 0x04, 0x82, 0x00,
- 0x00
- };
-
- msg[3] = bvci / 256;
- msg[4] = bvci % 256;
-
- send_ns_unitdata(nsi, "BVC_RESET_ACK", src_addr, 0, msg, sizeof(msg));
-}
-
-static void send_bssgp_suspend(struct gprs_ns_inst *nsi,
- struct sockaddr_in *src_addr,
- uint32_t tlli,
- struct gprs_ra_id *raid)
-{
- /* Base Station Subsystem GPRS Protocol, BSSGP SUSPEND */
- unsigned char msg[15] = {
- 0x0b, 0x1f, 0x84, /* TLLI */ 0xff, 0xff, 0xff, 0xff, 0x1b,
- 0x86, /* RAI */ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
- };
-
- msg[3] = (uint8_t)(tlli >> 24);
- msg[4] = (uint8_t)(tlli >> 16);
- msg[5] = (uint8_t)(tlli >> 8);
- msg[6] = (uint8_t)(tlli >> 0);
-
- gsm48_construct_ra(msg + 9, raid);
-
- send_ns_unitdata(nsi, "BVC_SUSPEND", src_addr, 0, msg, sizeof(msg));
-}
-
-static void send_bssgp_suspend_ack(struct gprs_ns_inst *nsi,
- struct sockaddr_in *src_addr,
- uint32_t tlli,
- struct gprs_ra_id *raid)
-{
- /* Base Station Subsystem GPRS Protocol, BSSGP SUSPEND ACK */
- unsigned char msg[18] = {
- 0x0c, 0x1f, 0x84, /* TLLI */ 0xff, 0xff, 0xff, 0xff, 0x1b,
- 0x86, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1d,
- 0x81, 0x01
- };
-
- msg[3] = (uint8_t)(tlli >> 24);
- msg[4] = (uint8_t)(tlli >> 16);
- msg[5] = (uint8_t)(tlli >> 8);
- msg[6] = (uint8_t)(tlli >> 0);
-
- gsm48_construct_ra(msg + 9, raid);
-
- send_ns_unitdata(nsi, "BVC_SUSPEND_ACK", src_addr, 0, msg, sizeof(msg));
-}
-
-static void send_bssgp_llc_discarded(struct gprs_ns_inst *nsi,
- struct sockaddr_in *src_addr,
- uint16_t bvci, uint32_t tlli,
- unsigned n_frames, unsigned n_octets)
-{
- /* Base Station Subsystem GPRS Protocol: LLC-DISCARDED (0x2c) */
- unsigned char msg[] = {
- 0x2c, 0x1f, 0x84, /* TLLI */ 0xff, 0xff, 0xff, 0xff, 0x0f,
- 0x81, /* n frames */ 0xff, 0x04, 0x82, /* BVCI */ 0xff, 0xff, 0x25, 0x83,
- /* n octets */ 0xff, 0xff, 0xff
- };
-
- msg[3] = (uint8_t)(tlli >> 24);
- msg[4] = (uint8_t)(tlli >> 16);
- msg[5] = (uint8_t)(tlli >> 8);
- msg[6] = (uint8_t)(tlli >> 0);
- msg[9] = (uint8_t)(n_frames);
- msg[12] = (uint8_t)(bvci >> 8);
- msg[13] = (uint8_t)(bvci >> 0);
- msg[16] = (uint8_t)(n_octets >> 16);
- msg[17] = (uint8_t)(n_octets >> 8);
- msg[18] = (uint8_t)(n_octets >> 0);
-
- send_ns_unitdata(nsi, "LLC_DISCARDED", src_addr, 0, msg, sizeof(msg));
-}
-
-static void send_bssgp_paging(struct gprs_ns_inst *nsi,
- struct sockaddr_in *src_addr,
- const uint8_t *imsi, size_t imsi_size,
- struct gprs_ra_id *raid, uint32_t ptmsi)
-{
- /* Base Station Subsystem GPRS Protocol, BSSGP SUSPEND */
- unsigned char msg[100] = {
- 0x06,
- };
-
- const unsigned char drx_ie[] = {0x0a, 0x82, 0x07, 0x04};
- const unsigned char qos_ie[] = {0x18, 0x83, 0x00, 0x00, 0x00};
-
- size_t bssgp_msg_size = 1;
-
- if (imsi) {
- OSMO_ASSERT(imsi_size <= 127);
- msg[bssgp_msg_size] = BSSGP_IE_IMSI;
- msg[bssgp_msg_size + 1] = 0x80 | imsi_size;
- memcpy(msg + bssgp_msg_size + 2, imsi, imsi_size);
- bssgp_msg_size += 2 + imsi_size;
- }
-
- memcpy(msg + bssgp_msg_size, drx_ie, sizeof(drx_ie));
- bssgp_msg_size += sizeof(drx_ie);
-
- if (raid) {
- msg[bssgp_msg_size] = BSSGP_IE_ROUTEING_AREA;
- msg[bssgp_msg_size+1] = 0x86;
- gsm48_construct_ra(msg + bssgp_msg_size + 2, raid);
- bssgp_msg_size += 8;
- }
-
- memcpy(msg + bssgp_msg_size, qos_ie, sizeof(qos_ie));
- bssgp_msg_size += sizeof(qos_ie);
-
- if (ptmsi != GSM_RESERVED_TMSI) {
- const uint32_t ptmsi_be = htonl(ptmsi);
- msg[bssgp_msg_size] = BSSGP_IE_TMSI;
- msg[bssgp_msg_size+1] = 0x84;
- memcpy(msg + bssgp_msg_size + 2, &ptmsi_be, 4);
- bssgp_msg_size += 6;
- }
-
- send_ns_unitdata(nsi, "PAGING_PS", src_addr, 0, msg, bssgp_msg_size);
-}
-
-static void send_bssgp_flow_control_bvc(struct gprs_ns_inst *nsi,
- struct sockaddr_in *src_addr,
- uint16_t bvci, uint8_t tag)
-{
- /* GPRS Network Service, PDU type: NS_UNITDATA,
- * BSSGP FLOW_CONTROL_BVC */
- unsigned char msg[] = {
- 0x26, 0x1e, 0x81, /* Tag */ 0xff, 0x05, 0x82, 0x01, 0xdc,
- 0x03, 0x82, 0x02, 0x76, 0x01, 0x82, 0x00, 0x50,
- 0x1c, 0x82, 0x02, 0x58, 0x06, 0x82, 0x00, 0x03
- };
-
- msg[3] = tag;
-
- send_ns_unitdata(nsi, "FLOW_CONTROL_BVC", src_addr, bvci,
- msg, sizeof(msg));
-}
-
-static void send_bssgp_flow_control_bvc_ack(struct gprs_ns_inst *nsi,
- struct sockaddr_in *src_addr,
- uint16_t bvci, uint8_t tag)
-{
- /* GPRS Network Service, PDU type: NS_UNITDATA,
- * BSSGP FLOW_CONTROL_BVC_ACK */
- unsigned char msg[] = {
- 0x27, 0x1e, 0x81, /* Tag */ 0xce
- };
-
- msg[3] = tag;
-
- send_ns_unitdata(nsi, "FLOW_CONTROL_BVC_ACK", src_addr, bvci,
- msg, sizeof(msg));
-}
-
-static void send_llc_ul_ui(
- struct gprs_ns_inst *nsi, const char *text,
- struct sockaddr_in *src_addr, uint16_t nsbvci, uint32_t tlli,
- struct gprs_ra_id *raid, uint16_t cell_id,
- unsigned sapi, unsigned nu,
- const uint8_t *msg, size_t msg_size)
-{
- unsigned char llc_msg[4096] = {
- 0x00, 0xc0, 0x01
- };
-
- size_t llc_msg_size = 3 + msg_size + 3;
- uint8_t e_bit = 0;
- uint8_t pm_bit = 1;
- unsigned fcs;
-
- nu &= 0x01ff;
-
- OSMO_ASSERT(llc_msg_size <= sizeof(llc_msg));
-
- llc_msg[0] = (sapi & 0x0f);
- llc_msg[1] = 0xc0 | (nu >> 6); /* UI frame */
- llc_msg[2] = (nu << 2) | ((e_bit & 1) << 1) | (pm_bit & 1);
-
- memcpy(llc_msg + 3, msg, msg_size);
-
- fcs = gprs_llc_fcs(llc_msg, msg_size + 3);
- llc_msg[3 + msg_size + 0] = (uint8_t)(fcs >> 0);
- llc_msg[3 + msg_size + 1] = (uint8_t)(fcs >> 8);
- llc_msg[3 + msg_size + 2] = (uint8_t)(fcs >> 16);
-
- send_bssgp_ul_unitdata(nsi, text ? text : "LLC UI",
- src_addr, nsbvci, tlli, raid, cell_id,
- llc_msg, llc_msg_size);
-}
-
-static void send_llc_dl_ui(
- struct gprs_ns_inst *nsi, const char *text,
- struct sockaddr_in *src_addr, uint16_t nsbvci, uint32_t tlli,
- int with_racap_drx, const uint8_t *imsi, size_t imsi_size,
- unsigned sapi, unsigned nu,
- const uint8_t *msg, size_t msg_size)
-{
- /* GPRS Network Service, PDU type: NS_UNITDATA */
- /* Base Station Subsystem GPRS Protocol: UL_UNITDATA */
- unsigned char llc_msg[4096] = {
- 0x00, 0x00, 0x01
- };
-
- size_t llc_msg_size = 3 + msg_size + 3;
- uint8_t e_bit = 0;
- uint8_t pm_bit = 1;
- unsigned fcs;
-
- nu &= 0x01ff;
-
- OSMO_ASSERT(llc_msg_size <= sizeof(llc_msg));
-
- llc_msg[0] = 0x40 | (sapi & 0x0f);
- llc_msg[1] = 0xc0 | (nu >> 6); /* UI frame */
- llc_msg[2] = (nu << 2) | ((e_bit & 1) << 1) | (pm_bit & 1);
-
- memcpy(llc_msg + 3, msg, msg_size);
-
- fcs = gprs_llc_fcs(llc_msg, msg_size + 3);
- llc_msg[3 + msg_size + 0] = (uint8_t)(fcs >> 0);
- llc_msg[3 + msg_size + 1] = (uint8_t)(fcs >> 8);
- llc_msg[3 + msg_size + 2] = (uint8_t)(fcs >> 16);
-
- send_bssgp_dl_unitdata(nsi, text ? text : "LLC UI",
- src_addr, nsbvci, tlli,
- with_racap_drx, imsi, imsi_size,
- llc_msg, llc_msg_size);
-}
-
-
-static void setup_ns(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr,
- uint16_t nsvci, uint16_t nsei)
-{
- printf("Setup NS-VC: remote 0x%08x:%d, "
- "NSVCI 0x%04x(%d), NSEI 0x%04x(%d)\n\n",
- ntohl(src_addr->sin_addr.s_addr), ntohs(src_addr->sin_port),
- nsvci, nsvci, nsei, nsei);
-
- send_ns_reset(nsi, src_addr, NS_CAUSE_OM_INTERVENTION, nsvci, nsei);
- send_ns_alive(nsi, src_addr);
- send_ns_unblock(nsi, src_addr);
- send_ns_alive_ack(nsi, src_addr);
-}
-
-static void setup_bssgp(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr,
- uint16_t bvci)
-{
- printf("Setup BSSGP: remote 0x%08x:%d, "
- "BVCI 0x%04x(%d)\n\n",
- ntohl(src_addr->sin_addr.s_addr), ntohs(src_addr->sin_port),
- bvci, bvci);
-
- send_bssgp_reset(nsi, src_addr, bvci);
-}
-
-static void connect_sgsn(struct gprs_ns_inst *nsi, struct sockaddr_in *sgsn_peer,
- uint32_t sgsn_nsei)
-{
- gprs_ns_nsip_connect(nsi, sgsn_peer, sgsn_nsei, sgsn_nsei+1);
- send_ns_reset_ack(nsi, sgsn_peer, sgsn_nsei+1, sgsn_nsei);
- send_ns_alive_ack(nsi, sgsn_peer);
- send_ns_unblock_ack(nsi, sgsn_peer);
- send_ns_alive(nsi, sgsn_peer);
-}
-
-static void configure_sgsn_peer(struct sockaddr_in *sgsn_peer)
-{
- sgsn_peer->sin_family = AF_INET;
- sgsn_peer->sin_port = htons(32000);
- sgsn_peer->sin_addr.s_addr = htonl(REMOTE_SGSN_ADDR);
-}
-
-static void configure_sgsn2_peer(struct sockaddr_in *sgsn_peer)
-{
- sgsn_peer->sin_family = AF_INET;
- sgsn_peer->sin_port = htons(32001);
- sgsn_peer->sin_addr.s_addr = htonl(REMOTE_SGSN2_ADDR);
-}
-
-static void configure_bss_peers(struct sockaddr_in *bss_peers, size_t size)
-{
- size_t i;
-
- for (i = 0; i < size; ++i) {
- bss_peers[i].sin_family = AF_INET;
- bss_peers[i].sin_port = htons((i + 1) * 1111);
- bss_peers[i].sin_addr.s_addr = htonl(REMOTE_BSS_ADDR);
- }
-}
-
-int gprs_ns_rcvmsg(struct gprs_ns_inst *nsi, struct msgb *msg,
- struct sockaddr_in *saddr, enum gprs_ns_ll ll);
-
-/* override */
-int gprs_ns_callback(enum gprs_ns_evt event, struct gprs_nsvc *nsvc,
- struct msgb *msg, uint16_t bvci)
-{
- printf("CALLBACK, event %d, msg length %zu, bvci 0x%04x\n%s\n\n",
- event, msgb_bssgp_len(msg), bvci,
- osmo_hexdump(msgb_l2(msg), msgb_l2len(msg)));
-
- switch (event) {
- case GPRS_NS_EVT_UNIT_DATA:
- return gbprox_rcvmsg(&gbcfg, msg, nsvc->nsei, bvci, nsvc->nsvci);
- default:
- break;
- }
- return 0;
-}
-
-/* override */
-ssize_t sendto(int sockfd, const void *buf, size_t len, int flags,
- const struct sockaddr *dest_addr, socklen_t addrlen)
-{
- typedef ssize_t (*sendto_t)(int, const void *, size_t, int,
- const struct sockaddr *, socklen_t);
- static sendto_t real_sendto = NULL;
- uint32_t dest_host = htonl(((struct sockaddr_in *)dest_addr)->sin_addr.s_addr);
- int dest_port = htons(((struct sockaddr_in *)dest_addr)->sin_port);
-
- if (!real_sendto)
- real_sendto = dlsym(RTLD_NEXT, "sendto");
-
- if (dest_host == REMOTE_BSS_ADDR)
- printf("MESSAGE to BSS at 0x%08x:%d, msg length %zu\n%s\n\n",
- dest_host, dest_port,
- len, osmo_hexdump(buf, len));
- else if (dest_host == REMOTE_SGSN_ADDR)
- printf("MESSAGE to SGSN at 0x%08x:%d, msg length %zu\n%s\n\n",
- dest_host, dest_port,
- len, osmo_hexdump(buf, len));
- else if (dest_host == REMOTE_SGSN2_ADDR)
- printf("MESSAGE to SGSN 2 at 0x%08x:%d, msg length %zu\n%s\n\n",
- dest_host, dest_port,
- len, osmo_hexdump(buf, len));
- else
- return real_sendto(sockfd, buf, len, flags, dest_addr, addrlen);
-
- return len;
-}
-
-/* override */
-int gprs_ns_sendmsg(struct gprs_ns_inst *nsi, struct msgb *msg)
-{
- typedef int (*gprs_ns_sendmsg_t)(struct gprs_ns_inst *nsi, struct msgb *msg);
- static gprs_ns_sendmsg_t real_gprs_ns_sendmsg = NULL;
- uint16_t bvci = msgb_bvci(msg);
- uint16_t nsei = msgb_nsei(msg);
-
- size_t len = msgb_length(msg);
-
- if (!real_gprs_ns_sendmsg)
- real_gprs_ns_sendmsg = dlsym(RTLD_NEXT, "gprs_ns_sendmsg");
-
- if (nsei == SGSN_NSEI)
- printf("NS UNITDATA MESSAGE to SGSN, BVCI 0x%04x, "
- "msg length %zu (%s)\n",
- bvci, len, __func__);
- else if (nsei == SGSN2_NSEI)
- printf("NS UNITDATA MESSAGE to SGSN 2, BVCI 0x%04x, "
- "msg length %zu (%s)\n",
- bvci, len, __func__);
- else
- printf("NS UNITDATA MESSAGE to BSS, BVCI 0x%04x, "
- "msg length %zu (%s)\n",
- bvci, len, __func__);
-
- if (received_messages) {
- struct msgb *msg_copy;
- msg_copy = gprs_msgb_copy(msg, "received_messages");
- llist_add_tail(&msg_copy->list, received_messages);
- }
-
- return real_gprs_ns_sendmsg(nsi, msg);
-}
-
-/* Get the next message from the receive FIFO
- *
- * \returns a pointer to the message which will be invalidated at the next call
- * to expect_msg. Returns NULL, if there is no message left.
- */
-static struct msgb *expect_msg(void)
-{
- static struct msgb *msg = NULL;
-
- msgb_free(msg);
- msg = NULL;
-
- if (!received_messages)
- return NULL;
-
- if (llist_empty(received_messages))
- return NULL;
-
- msg = llist_entry(received_messages->next, struct msgb, list);
- llist_del(&msg->list);
-
- return msg;
-}
-
-struct expect_result {
- struct msgb *msg;
- struct gprs_gb_parse_context parse_ctx;
-};
-
-static struct expect_result *expect_bssgp_msg(
- int match_nsei, int match_bvci, int match_pdu_type)
-{
- static struct expect_result result;
- static const struct expect_result empty_result = {0,};
- static struct msgb *msg;
- uint16_t nsei;
- int rc;
-
- memcpy(&result, &empty_result, sizeof(result));
-
- msg = expect_msg();
- if (!msg)
- return NULL;
-
- nsei = msgb_nsei(msg);
-
- if (match_nsei != MATCH_ANY && match_nsei != nsei) {
- fprintf(stderr, "%s: NSEI mismatch (expected %u, got %u)\n",
- __func__, match_nsei, nsei);
- return NULL;
- }
-
- if (match_bvci != MATCH_ANY && match_bvci != msgb_bvci(msg)) {
- fprintf(stderr, "%s: BVCI mismatch (expected %u, got %u)\n",
- __func__, match_bvci, msgb_bvci(msg));
- return NULL;
- }
-
- result.msg = msg;
-
- result.parse_ctx.to_bss = nsei != SGSN_NSEI && nsei != SGSN2_NSEI;
- result.parse_ctx.peer_nsei = nsei;
-
- if (!msgb_bssgph(msg)) {
- fprintf(stderr, "%s: Expected BSSGP\n", __func__);
- return NULL;
- }
-
- rc = gprs_gb_parse_bssgp(msgb_bssgph(msg), msgb_bssgp_len(msg),
- &result.parse_ctx);
-
- if (!rc) {
- fprintf(stderr, "%s: Failed to parse message\n", __func__);
- return NULL;
- }
-
- if (match_pdu_type != MATCH_ANY &&
- match_pdu_type != result.parse_ctx.pdu_type) {
- fprintf(stderr, "%s: PDU type mismatch (expected %u, got %u)\n",
- __func__, match_pdu_type, result.parse_ctx.pdu_type);
- return NULL;
- }
-
- return &result;
-}
-
-static struct expect_result *expect_llc_msg(
- int match_nsei, int match_bvci, int match_sapi, int match_type)
-{
- static struct expect_result *result;
-
- result = expect_bssgp_msg(match_nsei, match_bvci, MATCH_ANY);
- if (!result)
- return NULL;
-
- if (!result->parse_ctx.llc) {
- fprintf(stderr, "%s: Expected LLC message\n", __func__);
- return NULL;
- }
-
- if (match_sapi != MATCH_ANY &&
- match_sapi != result->parse_ctx.llc_hdr_parsed.sapi) {
- fprintf(stderr, "%s: LLC SAPI mismatch (expected %u, got %u)\n",
- __func__, match_sapi, result->parse_ctx.llc_hdr_parsed.sapi);
- return NULL;
- }
-
- if (match_type != MATCH_ANY &&
- match_type != result->parse_ctx.llc_hdr_parsed.cmd) {
- fprintf(stderr,
- "%s: LLC command/type mismatch (expected %u, got %u)\n",
- __func__, match_type, result->parse_ctx.llc_hdr_parsed.cmd);
- return NULL;
- }
-
- return result;
-}
-
-static struct expect_result *expect_gmm_msg(int match_nsei, int match_bvci,
- int match_type)
-{
- static struct expect_result *result;
-
- result = expect_llc_msg(match_nsei, match_bvci, GPRS_SAPI_GMM, GPRS_LLC_UI);
- if (!result)
- return NULL;
-
- if (!result->parse_ctx.g48_hdr) {
- fprintf(stderr, "%s: Expected GSM 04.08 message\n", __func__);
- return NULL;
- }
-
- if (match_type != MATCH_ANY &&
- match_type != result->parse_ctx.g48_hdr->msg_type) {
- fprintf(stderr,
- "%s: GSM 04.08 message type mismatch (expected %u, got %u)\n",
- __func__, match_type, result->parse_ctx.g48_hdr->msg_type);
- return NULL;
- }
-
- return result;
-}
-
-static void dump_rate_ctr_group(FILE *stream, const char *prefix,
- struct rate_ctr_group *ctrg)
-{
- unsigned int i;
-
- for (i = 0; i < ctrg->desc->num_ctr; i++) {
- struct rate_ctr *ctr = &ctrg->ctr[i];
- if (ctr->current && !strchr(ctrg->desc->ctr_desc[i].name, '.'))
- fprintf(stream, " %s%s: %llu%s",
- prefix, ctrg->desc->ctr_desc[i].description,
- (long long)ctr->current,
- "\n");
- };
-}
-
-/* Signal handler for signals from NS layer */
-static int test_signal(unsigned int subsys, unsigned int signal,
- void *handler_data, void *signal_data)
-{
- struct ns_signal_data *nssd = signal_data;
- int rc;
-
- if (subsys != SS_L_NS)
- return 0;
-
- switch (signal) {
- case S_NS_RESET:
- printf("==> got signal NS_RESET, NS-VC 0x%04x/%s\n",
- nssd->nsvc->nsvci,
- gprs_ns_ll_str(nssd->nsvc));
- break;
-
- case S_NS_ALIVE_EXP:
- printf("==> got signal NS_ALIVE_EXP, NS-VC 0x%04x/%s\n",
- nssd->nsvc->nsvci,
- gprs_ns_ll_str(nssd->nsvc));
- break;
-
- case S_NS_BLOCK:
- printf("==> got signal NS_BLOCK, NS-VC 0x%04x/%s\n",
- nssd->nsvc->nsvci,
- gprs_ns_ll_str(nssd->nsvc));
- break;
-
- case S_NS_UNBLOCK:
- printf("==> got signal NS_UNBLOCK, NS-VC 0x%04x/%s\n",
- nssd->nsvc->nsvci,
- gprs_ns_ll_str(nssd->nsvc));
- break;
-
- case S_NS_REPLACED:
- printf("==> got signal NS_REPLACED: 0x%04x/%s",
- nssd->nsvc->nsvci,
- gprs_ns_ll_str(nssd->nsvc));
- printf(" -> 0x%04x/%s\n",
- nssd->old_nsvc->nsvci,
- gprs_ns_ll_str(nssd->old_nsvc));
- break;
-
- default:
- printf("==> got signal %d, NS-VC 0x%04x/%s\n", signal,
- nssd->nsvc->nsvci,
- gprs_ns_ll_str(nssd->nsvc));
- break;
- }
- printf("\n");
- rc = gbprox_signal(subsys, signal, handler_data, signal_data);
- return rc;
-}
-
-static int gprs_process_message(struct gprs_ns_inst *nsi, const char *text, struct sockaddr_in *peer, const unsigned char* data, size_t data_len)
-{
- struct msgb *msg;
- int ret;
- if (data_len > NS_ALLOC_SIZE - NS_ALLOC_HEADROOM) {
- fprintf(stderr, "message too long: %zu\n", data_len);
- return -1;
- }
-
- msg = gprs_ns_msgb_alloc();
- OSMO_ASSERT(msg);
- memmove(msg->data, data, data_len);
- msg->l2h = msg->data;
- msgb_put(msg, data_len);
-
- printf("PROCESSING %s from 0x%08x:%d\n%s\n\n",
- text, ntohl(peer->sin_addr.s_addr), ntohs(peer->sin_port),
- osmo_hexdump(data, data_len));
-
- ret = gprs_ns_rcvmsg(nsi, msg, peer, GPRS_NS_LL_UDP);
-
- printf("result (%s) = %d\n\n", text, ret);
-
- msgb_free(msg);
-
- return ret;
-}
-
-static void gprs_dump_nsi(struct gprs_ns_inst *nsi)
-{
- struct gprs_nsvc *nsvc;
-
- printf("Current NS-VCIs:\n");
- llist_for_each_entry(nsvc, &nsi->gprs_nsvcs, list) {
- struct sockaddr_in *peer = &(nsvc->ip.bts_addr);
- printf(" VCI 0x%04x, NSEI 0x%04x, peer 0x%08x:%d%s%s\n",
- nsvc->nsvci, nsvc->nsei,
- ntohl(peer->sin_addr.s_addr), ntohs(peer->sin_port),
- nsvc->state & NSE_S_BLOCKED ? ", blocked" : "",
- nsvc->state & NSE_S_ALIVE ? "" : ", dead"
- );
- dump_rate_ctr_group(stdout, " ", nsvc->ctrg);
- }
- printf("\n");
-}
-
-static void test_gbproxy()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[4] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
- gprs_dump_nsi(nsi);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- printf("--- Initialise BSS 2 ---\n\n");
-
- setup_ns(nsi, &bss_peer[1], 0x2001, 0x2000);
- setup_bssgp(nsi, &bss_peer[1], 0x2002);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x2002);
-
- printf("--- Move BSS 1 to new port ---\n\n");
-
- setup_ns(nsi, &bss_peer[2], 0x1001, 0x1000);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Move BSS 2 to former BSS 1 port ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x2001, 0x2000);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Move BSS 1 to current BSS 2 port ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x2001, 0x2000);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Move BSS 2 to new port ---\n\n");
-
- setup_ns(nsi, &bss_peer[3], 0x2001, 0x2000);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Move BSS 2 to former BSS 1 port ---\n\n");
-
- setup_ns(nsi, &bss_peer[2], 0x2001, 0x2000);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Move BSS 1 to original BSS 1 port ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Reset BSS 1 with a new BVCI ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], 0x1012);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1012);
-
- printf("--- Reset BSS 1 with the old BVCI ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- printf("--- Reset BSS 1 with the old BVCI again ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- printf("--- Send message from BSS 1 to SGSN, BVCI 0x1012 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], 0x1012, (uint8_t *)"", 0);
-
- printf("--- Send message from SGSN to BSS 1, BVCI 0x1012 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &sgsn_peer, 0x1012, (uint8_t *)"", 0);
-
- printf("--- Send message from BSS 1 to SGSN, BVCI 0x1002 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], 0x1012, (uint8_t *)"", 0);
-
- printf("--- Send message from SGSN to BSS 1, BVCI 0x1002 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &sgsn_peer, 0x1012, (uint8_t *)"", 0);
-
- printf("--- Send message from BSS 2 to SGSN, BVCI 0x2002 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], 0x2002, (uint8_t *)"", 0);
-
- printf("--- Send message from SGSN to BSS 2, BVCI 0x2002 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &sgsn_peer, 0x2002, (uint8_t *)"", 0);
-
- printf("--- Reset BSS 1 with the old BVCI on BSS2's link ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[2], 0x1002);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- dump_global(stdout, 0);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- printf("--- Send message from BSS 1 to SGSN, BVCI 0x1002 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], 0x1012, (uint8_t *)"", 0);
-
- printf("--- Send message from SGSN to BSS 1, BVCI 0x1002 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &sgsn_peer, 0x1012, (uint8_t *)"", 0);
-
- printf("--- Send message from SGSN to BSS 1, BVCI 0x10ff (invalid) ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &sgsn_peer, 0x10ff, (uint8_t *)"", 0);
-
- /* Find peer */
- OSMO_ASSERT(gbproxy_peer_by_bvci(&gbcfg, 0xeeee) == NULL);
- OSMO_ASSERT(gbproxy_peer_by_bvci(&gbcfg, 0x1000) == NULL);
- OSMO_ASSERT(gbproxy_peer_by_bvci(&gbcfg, 0x1012) != NULL);
- OSMO_ASSERT(gbproxy_peer_by_nsei(&gbcfg, 0xeeee) == NULL);
- OSMO_ASSERT(gbproxy_peer_by_nsei(&gbcfg, 0x1012) == NULL);
- OSMO_ASSERT(gbproxy_peer_by_nsei(&gbcfg, 0x1000) != NULL);
-
-
- /* Cleanup */
- OSMO_ASSERT(gbproxy_cleanup_peers(&gbcfg, 0, 0) == 0);
- OSMO_ASSERT(gbproxy_cleanup_peers(&gbcfg, 0x1000, 0xeeee) == 0);
- OSMO_ASSERT(gbproxy_cleanup_peers(&gbcfg, 0, 0x1002) == 0);
- OSMO_ASSERT(gbproxy_cleanup_peers(&gbcfg, 0x1000, 0x1012) == 1);
- OSMO_ASSERT(gbproxy_cleanup_peers(&gbcfg, 0x1000, 0x1012) == 0);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- dump_global(stdout, 0);
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-}
-
-static void test_gbproxy_ident_changes()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
- uint16_t nsei[2] = {0x1000, 0x2000};
- uint16_t nsvci[2] = {0x1001, 0x2001};
- uint16_t bvci[4] = {0x1002, 0x2002, 0x3002, 0x4002};
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
- gprs_dump_nsi(nsi);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], nsvci[0], nsei[0]);
- gprs_dump_nsi(nsi);
-
- printf("--- Setup BVCI 1 ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], bvci[0]);
- send_bssgp_reset_ack(nsi, &sgsn_peer, bvci[0]);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Setup BVCI 2 ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], bvci[1]);
- send_bssgp_reset_ack(nsi, &sgsn_peer, bvci[1]);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 1 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[0], (uint8_t *)"", 0);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[0], (uint8_t *)"", 0);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 2 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[1], (uint8_t *)"", 0);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[1], (uint8_t *)"", 0);
-
- printf("--- Change NSEI ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], nsvci[0], nsei[1]);
- gprs_dump_nsi(nsi);
-
- printf("--- Setup BVCI 1 ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], bvci[0]);
- send_bssgp_reset_ack(nsi, &sgsn_peer, bvci[0]);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Setup BVCI 3 ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], bvci[2]);
- send_bssgp_reset_ack(nsi, &sgsn_peer, bvci[2]);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 1 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[0], (uint8_t *)"", 0);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[0], (uint8_t *)"", 0);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 2 "
- " (should fail) ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[1], (uint8_t *)"", 0);
- dump_peers(stdout, 0, 0, &gbcfg);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[1], (uint8_t *)"", 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 3 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[2], (uint8_t *)"", 0);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[2], (uint8_t *)"", 0);
-
- printf("--- Change NSVCI ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], nsvci[1], nsei[1]);
- gprs_dump_nsi(nsi);
-
- printf("--- Setup BVCI 1 ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], bvci[0]);
- send_bssgp_reset_ack(nsi, &sgsn_peer, bvci[0]);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Setup BVCI 4 ---\n\n");
-
- setup_bssgp(nsi, &bss_peer[0], bvci[3]);
- send_bssgp_reset_ack(nsi, &sgsn_peer, bvci[3]);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 1 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[0], (uint8_t *)"", 0);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[0], (uint8_t *)"", 0);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 2 "
- " (should fail) ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[1], (uint8_t *)"", 0);
- dump_peers(stdout, 0, 0, &gbcfg);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[1], (uint8_t *)"", 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 3 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[2], (uint8_t *)"", 0);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[2], (uint8_t *)"", 0);
-
- printf("--- Send message from BSS 1 to SGSN and back, BVCI 4 ---\n\n");
-
- send_ns_unitdata(nsi, NULL, &bss_peer[0], bvci[3], (uint8_t *)"", 0);
- send_ns_unitdata(nsi, NULL, &sgsn_peer, bvci[3], (uint8_t *)"", 0);
-
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-}
-
-static void test_gbproxy_ra_patching()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
- struct gprs_ra_id rai_bss =
- {.mcc = 112, .mnc = 332, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_sgsn =
- {.mcc = 123, .mnc = 456, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_unknown =
- {.mcc = 1, .mnc = 99, .lac = 99, .rac = 96};
- uint16_t cell_id = 0x7530;
- const char *err_msg = NULL;
- const uint32_t ptmsi = 0xefe2b700;
- const uint32_t local_tlli = 0xefe2b700;
- const uint32_t foreign_tlli = 0xbbc54679;
- const uint32_t foreign_tlli2 = 0xbb00beef;
- const uint8_t imsi[] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18};
- const char *patch_re = "^9898|^121314";
- struct gbproxy_link_info *link_info;
- struct gbproxy_peer *peer;
- LLIST_HEAD(rcv_list);
- struct expect_result *expect_res;
-
- OSMO_ASSERT(local_tlli == gprs_tmsi2tlli(ptmsi, TLLI_LOCAL));
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
- gbcfg.core_mcc = 123;
- gbcfg.core_mnc = 456;
- gbcfg.core_apn = talloc_zero_size(NULL, 100);
- gbcfg.core_apn_size = gprs_str_to_apn(gbcfg.core_apn, 100, "foo.bar");
- gbcfg.patch_ptmsi = 0;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- if (gbproxy_set_patch_filter(&gbcfg.matches[GBPROX_MATCH_PATCHING],
- patch_re, &err_msg) != 0) {
- fprintf(stderr, "Failed to compile RE '%s': %s\n",
- patch_re, err_msg);
- exit(1);
- }
-
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
- gprs_dump_nsi(nsi);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
-
- received_messages = &rcv_list;
-
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
- gprs_dump_nsi(nsi);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- peer = gbproxy_peer_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- OSMO_ASSERT(expect_bssgp_msg(SGSN_NSEI, 0, BSSGP_PDUT_BVC_RESET));
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- OSMO_ASSERT(expect_bssgp_msg(0x1000, 0, BSSGP_PDUT_BVC_RESET_ACK));
-
- send_bssgp_suspend(nsi, &bss_peer[0], 0xccd1758b, &rai_bss);
-
- OSMO_ASSERT(expect_bssgp_msg(SGSN_NSEI, 0, BSSGP_PDUT_SUSPEND));
-
- send_bssgp_suspend_ack(nsi, &sgsn_peer, 0xccd1758b, &rai_sgsn);
-
- OSMO_ASSERT(expect_bssgp_msg(0x1000, 0, BSSGP_PDUT_SUSPEND_ACK));
-
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(2 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
- OSMO_ASSERT(1 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_SGSN].current);
-
- printf("--- Send message from BSS 1 to SGSN, BVCI 0x1002 ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 0,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- OSMO_ASSERT(4 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer, 0x1002,
- foreign_tlli, 0, NULL, 0,
- GPRS_SAPI_GMM, 0,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ID_REQ));
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 3,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ID_RESP));
-
- OSMO_ASSERT(5 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
- OSMO_ASSERT(1 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_SGSN].current);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, 1,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- OSMO_ASSERT(2 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_SGSN].current);
-
- OSMO_ASSERT(gbproxy_peer_by_rai(&gbcfg, convert_ra(&rai_bss)) != NULL);
- OSMO_ASSERT(gbproxy_peer_by_rai(&gbcfg, convert_ra(&rai_sgsn)) == NULL);
- OSMO_ASSERT(gbproxy_peer_by_rai(&gbcfg, convert_ra(&rai_unknown)) == NULL);
-
- OSMO_ASSERT(gbproxy_peer_by_lai(&gbcfg, convert_ra(&rai_bss)) != NULL);
- OSMO_ASSERT(gbproxy_peer_by_lai(&gbcfg, convert_ra(&rai_sgsn)) == NULL);
- OSMO_ASSERT(gbproxy_peer_by_lai(&gbcfg, convert_ra(&rai_unknown)) == NULL);
-
- OSMO_ASSERT(gbproxy_peer_by_lac(&gbcfg, convert_ra(&rai_bss)) != NULL);
- OSMO_ASSERT(gbproxy_peer_by_lac(&gbcfg, convert_ra(&rai_sgsn)) != NULL);
- OSMO_ASSERT(gbproxy_peer_by_lac(&gbcfg, convert_ra(&rai_unknown)) == NULL);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->tlli.current != local_tlli);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current != local_tlli);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 4,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- OSMO_ASSERT(6 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->tlli.current != local_tlli);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current != local_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- /* Replace APN (1) */
- send_llc_ul_ui(nsi, "ACT PDP CTX REQ (REPLACE APN)", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 3,
- dtap_act_pdp_ctx_req, sizeof(dtap_act_pdp_ctx_req));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GSM_ACT_PDP_REQ));
-
- OSMO_ASSERT(7 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->tlli.current != local_tlli);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current != local_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, 2,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_INFO));
-
- OSMO_ASSERT(2 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_SGSN].current);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->tlli.current == local_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_tlli);
-
- /* Replace APN (2) */
- send_llc_ul_ui(nsi, "ACT PDP CTX REQ (REPLACE APN)", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 3,
- dtap_act_pdp_ctx_req, sizeof(dtap_act_pdp_ctx_req));
-
- expect_res = expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GSM_ACT_PDP_REQ);
- OSMO_ASSERT(expect_res != NULL);
- OSMO_ASSERT(expect_res->parse_ctx.apn_ie_len == gbcfg.core_apn_size + 2);
-
- OSMO_ASSERT(8 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
-
- gbcfg.core_apn[0] = 0;
- gbcfg.core_apn_size = 0;
-
- /* Remove APN */
- send_llc_ul_ui(nsi, "ACT PDP CTX REQ (REMOVE APN)", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 3,
- dtap_act_pdp_ctx_req, sizeof(dtap_act_pdp_ctx_req));
-
- expect_res = expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GSM_ACT_PDP_REQ);
- OSMO_ASSERT(expect_res != NULL);
- OSMO_ASSERT(expect_res->parse_ctx.apn_ie_len == 0);
-
- OSMO_ASSERT(9 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach */
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 6,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- OSMO_ASSERT(10 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
- OSMO_ASSERT(2 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_SGSN].current);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, 5,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- RA update ---\n\n");
-
- send_llc_ul_ui(nsi, "RA UPD REQ", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, 0x7080,
- GPRS_SAPI_GMM, 5,
- dtap_ra_upd_req, sizeof(dtap_ra_upd_req));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_RA_UPD_REQ));
-
- OSMO_ASSERT(12 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
-
- send_llc_dl_ui(nsi, "RA UPD ACC", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, 6,
- dtap_ra_upd_acc, sizeof(dtap_ra_upd_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_RA_UPD_ACK));
-
- OSMO_ASSERT(3 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_SGSN].current);
-
- /* Remove APN */
- send_llc_ul_ui(nsi, "ACT PDP CTX REQ (REMOVE APN)", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 3,
- dtap_act_pdp_ctx_req, sizeof(dtap_act_pdp_ctx_req));
-
- expect_res = expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GSM_ACT_PDP_REQ);
- OSMO_ASSERT(expect_res != NULL);
- OSMO_ASSERT(expect_res->parse_ctx.apn_ie_len == 0);
-
- OSMO_ASSERT(13 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach (power off -> no Detach Accept) */
- send_llc_ul_ui(nsi, "DETACH REQ (PWR OFF)", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 6,
- dtap_detach_po_req, sizeof(dtap_detach_po_req));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- OSMO_ASSERT(14 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
-
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Bad cases ---\n\n");
-
- /* The RAI in the Attach Request message differs from the RAI in the
- * BSSGP message, only patch the latter */
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST (foreign RAI)", &bss_peer[0], 0x1002,
- foreign_tlli2, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 0,
- dtap_attach_req2, sizeof(dtap_attach_req2));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- OSMO_ASSERT(15 == peer->ctrg->ctr[GBPROX_PEER_CTR_RAID_PATCHED_BSS].current);
-
- printf("TLLI is already detached, shouldn't patch\n");
- send_llc_ul_ui(nsi, "ACT PDP CTX REQ", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, 3,
- dtap_act_pdp_ctx_req, sizeof(dtap_act_pdp_ctx_req));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GSM_ACT_PDP_REQ));
-
- printf("Invalid RAI, shouldn't patch\n");
- send_bssgp_suspend_ack(nsi, &sgsn_peer, 0xccd1758b, &rai_unknown);
-
- /* TODO: The following breaks with the current libosmocore, enable it
- * again (and remove the plain expect_msg), when the msgb_bssgph patch
- * is integrated */
- /* OSMO_ASSERT(expect_bssgp_msg(SGSN_NSEI, 0, BSSGP_PDUT_STATUS)); */
- OSMO_ASSERT(expect_msg());
-
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!expect_msg());
- received_messages = NULL;
-
- gbproxy_clear_patch_filter(&gbcfg.matches[GBPROX_MATCH_PATCHING]);
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-}
-
-static void test_gbproxy_ptmsi_assignment()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
- struct gprs_ra_id rai_bss =
- {.mcc = 112, .mnc = 332, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_unknown =
- {.mcc = 1, .mnc = 99, .lac = 99, .rac = 96};
- uint16_t cell_id = 0x1234;
-
- const uint32_t ptmsi = 0xefe2b700;
- const uint32_t local_tlli = 0xefe2b700;
-
- const uint32_t foreign_tlli1 = 0x8000dead;
- const uint32_t foreign_tlli2 = 0x8000beef;
-
- const uint8_t imsi1[] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18};
- const uint8_t imsi2[] = {0x11, 0x12, 0x99, 0x99, 0x99, 0x16, 0x17, 0x18};
-
- struct gbproxy_link_info *link_info, *link_info2;
- struct gbproxy_peer *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
-
- OSMO_ASSERT(local_tlli == gprs_tmsi2tlli(ptmsi, TLLI_LOCAL));
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
- gbcfg.core_mcc = 0;
- gbcfg.core_mnc = 0;
- gbcfg.core_apn = talloc_zero_size(NULL, 100);
- gbcfg.core_apn_size = gprs_str_to_apn(gbcfg.core_apn, 100, "foo.bar");
- gbcfg.patch_ptmsi = 0;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
-
- peer = gbproxy_peer_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- gprs_dump_nsi(nsi);
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Establish first LLC connection ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli1, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer, 0x1002,
- foreign_tlli1, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_tlli1, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli1, 1, imsi1, sizeof(imsi1),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli1);
- link_info2 = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_tlli1);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == ptmsi);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_tlli1);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == ptmsi);
-
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi1, sizeof(imsi1),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_imsi(peer, imsi1, ARRAY_SIZE(imsi1));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.ptmsi == ptmsi);
- OSMO_ASSERT(!gbproxy_link_info_by_imsi(peer, imsi2, ARRAY_SIZE(imsi2)));
-
- link_info2 = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->tlli.current == local_tlli);
- OSMO_ASSERT(link_info->tlli.ptmsi == ptmsi);
-
- printf("--- Establish second LLC connection with the same P-TMSI ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli2, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer, 0x1002,
- foreign_tlli2, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_tlli2, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity2_resp, sizeof(dtap_identity2_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli2, 1, imsi2, sizeof(imsi2),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli2);
- link_info2 = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_tlli2);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == ptmsi);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_tlli2);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == ptmsi);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi2, sizeof(imsi2),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_imsi(peer, imsi2, ARRAY_SIZE(imsi2));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.ptmsi == ptmsi);
- OSMO_ASSERT(!gbproxy_link_info_by_imsi(peer, imsi1, ARRAY_SIZE(imsi1)));
-
- link_info2 = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->tlli.current == local_tlli);
- OSMO_ASSERT(link_info->tlli.ptmsi == ptmsi);
-
- dump_global(stdout, 0);
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static void test_gbproxy_ptmsi_patching()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
- struct gprs_ra_id rai_bss =
- {.mcc = 112, .mnc = 332, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_sgsn =
- {.mcc = 123, .mnc = 456, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_wrong_mcc_sgsn =
- {.mcc = 999, .mnc = 456, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_unknown =
- {.mcc = 1, .mnc = 99, .lac = 99, .rac = 96};
- uint16_t cell_id = 0x1234;
-
- const uint32_t sgsn_ptmsi = 0xefe2b700;
- const uint32_t sgsn_ptmsi2 = 0xe0987654;
- const uint32_t sgsn_ptmsi3 = 0xe0543210;
- const uint32_t local_sgsn_tlli = 0xefe2b700;
- const uint32_t local_sgsn_tlli2 = 0xe0987654;
- const uint32_t local_sgsn_tlli3 = 0xe0543210;
- const uint32_t random_sgsn_tlli = 0x78dead00;
- const uint32_t unknown_sgsn_tlli = 0xeebadbad;
-
- const uint32_t bss_ptmsi = 0xc0dead01;
- const uint32_t bss_ptmsi2 = 0xc0dead02;
- const uint32_t bss_ptmsi3 = 0xc0dead03;
- const uint32_t local_bss_tlli = 0xc0dead01;
- const uint32_t local_bss_tlli2 = 0xc0dead02;
- const uint32_t local_bss_tlli3 = 0xc0dead03;
- const uint32_t foreign_bss_tlli = 0x8000dead;
-
-
- const uint8_t imsi[] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18};
- struct gbproxy_link_info *link_info;
- struct gbproxy_peer *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
- int old_ctr;
-
- OSMO_ASSERT(local_sgsn_tlli == gprs_tmsi2tlli(sgsn_ptmsi, TLLI_LOCAL));
- OSMO_ASSERT(local_sgsn_tlli2 == gprs_tmsi2tlli(sgsn_ptmsi2, TLLI_LOCAL));
- OSMO_ASSERT(local_sgsn_tlli3 == gprs_tmsi2tlli(sgsn_ptmsi3, TLLI_LOCAL));
- OSMO_ASSERT(local_bss_tlli == gprs_tmsi2tlli(bss_ptmsi, TLLI_LOCAL));
- OSMO_ASSERT(local_bss_tlli2 == gprs_tmsi2tlli(bss_ptmsi2, TLLI_LOCAL));
- OSMO_ASSERT(local_bss_tlli3 == gprs_tmsi2tlli(bss_ptmsi3, TLLI_LOCAL));
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
- gbcfg.core_mcc = 123;
- gbcfg.core_mnc = 456;
- gbcfg.core_apn = talloc_zero_size(NULL, 100);
- gbcfg.core_apn_size = gprs_str_to_apn(gbcfg.core_apn, 100, "foo.bar");
- gbcfg.patch_ptmsi = 1;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
-
- peer = gbproxy_peer_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- gprs_dump_nsi(nsi);
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN, BVCI 0x1002 ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer, 0x1002,
- random_sgsn_tlli, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- random_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
- send_llc_ul_ui(nsi, "ACT PDP CTX REQ (REPLACE APN)", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_act_pdp_ctx_req, sizeof(dtap_act_pdp_ctx_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Non-DTAP */
- send_bssgp_ul_unitdata(nsi, "XID (UL)", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- llc_u_xid_ul, sizeof(llc_u_xid_ul));
-
- send_bssgp_dl_unitdata(nsi, "XID (DL)", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- llc_u_xid_dl, sizeof(llc_u_xid_dl));
-
- send_bssgp_ul_unitdata(nsi, "LL11 DNS QUERY (UL)", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- llc_ui_ll11_dns_query_ul,
- sizeof(llc_ui_ll11_dns_query_ul));
-
- send_bssgp_dl_unitdata(nsi, "LL11 DNS RESP (DL)", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- llc_ui_ll11_dns_resp_dl,
- sizeof(llc_ui_ll11_dns_resp_dl));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Repeated RA Update Requests */
- send_llc_ul_ui(nsi, "RA UPD REQ (P-TMSI 2)", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, 0x7080,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_ra_upd_req, sizeof(dtap_ra_upd_req));
-
- send_llc_dl_ui(nsi, "RA UDP ACC (P-TMSI 2)", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_ra_upd_acc2, sizeof(dtap_ra_upd_acc2));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli2, SGSN_NSEI) != NULL);
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli2);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi2);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli2);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi2);
-
- send_llc_ul_ui(nsi, "RA UPD REQ (P-TMSI 3)", &bss_peer[0], 0x1002,
- local_bss_tlli2, &rai_bss, 0x7080,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_ra_upd_req, sizeof(dtap_ra_upd_req));
-
- send_llc_dl_ui(nsi, "RA UDP ACC (P-TMSI 3)", &sgsn_peer, 0x1002,
- local_sgsn_tlli2, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_ra_upd_acc3, sizeof(dtap_ra_upd_acc3));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli2, SGSN_NSEI) == NULL);
- OSMO_ASSERT(gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli3, SGSN_NSEI) != NULL);
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli3);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi3);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli3);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi3);
-
- send_llc_ul_ui(nsi, "RA UPD COMPLETE", &bss_peer[0], 0x1002,
- local_bss_tlli3, &rai_bss, 0x7080,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_ra_upd_complete, sizeof(dtap_ra_upd_complete));
-
- link_info = gbproxy_link_info_by_tlli(peer, local_bss_tlli3);
-
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_sgsn_tlli3, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli3, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli3);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli3);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
- /* Other messages */
- send_bssgp_llc_discarded(nsi, &bss_peer[0], 0x1002,
- local_bss_tlli3, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend(nsi, &bss_peer[0], local_bss_tlli3, &rai_bss);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend_ack(nsi, &sgsn_peer, local_sgsn_tlli3, &rai_sgsn);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- old_ctr = peer->ctrg->ctr[GBPROX_PEER_CTR_PTMSI_PATCHED_SGSN].current;
-
- send_bssgp_paging(nsi, &sgsn_peer, imsi, sizeof(imsi), &rai_bss, sgsn_ptmsi3);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(old_ctr + 1 ==
- peer->ctrg->ctr[GBPROX_PEER_CTR_PTMSI_PATCHED_SGSN].current);
-
- /* Bad case: Invalid BVCI */
- send_bssgp_llc_discarded(nsi, &bss_peer[0], 0xeee1,
- local_bss_tlli3, 1, 12);
- dump_global(stdout, 0);
-
- /* Bad case: Invalid RAI */
- send_bssgp_suspend_ack(nsi, &sgsn_peer, local_sgsn_tlli3, &rai_unknown);
-
- dump_global(stdout, 0);
-
- /* Bad case: Invalid MCC (LAC ok) */
- send_bssgp_suspend_ack(nsi, &sgsn_peer, local_sgsn_tlli3,
- &rai_wrong_mcc_sgsn);
-
- dump_global(stdout, 0);
-
- /* Bad case: Invalid TLLI from SGSN (IMSI unknown) */
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- unknown_sgsn_tlli, 1, NULL, 0,
- GPRS_SAPI_GMM, 2,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- /* Bad case: Invalid TLLI from SGSN (IMSI known) */
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- unknown_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, 3,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- /* Detach */
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_bss_tlli3, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer, 0x1002,
- local_sgsn_tlli3, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- dump_global(stdout, 0);
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static void test_gbproxy_ptmsi_patching_bad_cases()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
- struct gprs_ra_id rai_bss =
- {.mcc = 112, .mnc = 332, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_unknown =
- {.mcc = 1, .mnc = 99, .lac = 99, .rac = 96};
- uint16_t cell_id = 0x1234;
-
- const uint32_t sgsn_ptmsi = 0xefe2b700;
- const uint32_t local_sgsn_tlli = 0xefe2b700;
- const uint32_t random_sgsn_tlli = 0x78dead00;
-
- const uint32_t bss_ptmsi = 0xc0dead01;
- const uint32_t local_bss_tlli = 0xc0dead01;
- const uint32_t foreign_bss_tlli = 0x8000dead;
-
-
- const uint8_t imsi[] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18};
- struct gbproxy_link_info *link_info;
- struct gbproxy_peer *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
-
- OSMO_ASSERT(local_sgsn_tlli == gprs_tmsi2tlli(sgsn_ptmsi, TLLI_LOCAL));
- OSMO_ASSERT(local_bss_tlli == gprs_tmsi2tlli(bss_ptmsi, TLLI_LOCAL));
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
- gbcfg.core_mcc = 123;
- gbcfg.core_mnc = 456;
- gbcfg.core_apn = talloc_zero_size(NULL, 100);
- gbcfg.core_apn_size = gprs_str_to_apn(gbcfg.core_apn, 100, "foo.bar");
- gbcfg.patch_ptmsi = 1;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
-
- peer = gbproxy_peer_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- gprs_dump_nsi(nsi);
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN, BVCI 0x1002 ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer, 0x1002,
- random_sgsn_tlli, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- random_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT (duplicated)", &sgsn_peer, 0x1002,
- random_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
- /* Detach */
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- dump_global(stdout, 0);
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-
-static void test_gbproxy_imsi_acquisition()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
- struct gprs_ra_id rai_bss =
- {.mcc = 112, .mnc = 332, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_sgsn =
- {.mcc = 123, .mnc = 456, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_wrong_mcc_sgsn =
- {.mcc = 999, .mnc = 456, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_unknown =
- {.mcc = 1, .mnc = 99, .lac = 99, .rac = 96};
- uint16_t cell_id = 0x1234;
-
- const uint32_t sgsn_ptmsi = 0xefe2b700;
- const uint32_t local_sgsn_tlli = 0xefe2b700;
- const uint32_t random_sgsn_tlli = 0x78dead00;
- const uint32_t random_sgsn_tlli2 = 0x78dead02;
-
- const uint32_t bss_ptmsi = 0xc0dead01;
- const uint32_t local_bss_tlli = 0xc0dead01;
- const uint32_t foreign_bss_tlli = 0x8000dead;
- const uint32_t other_bss_tlli = 0x8000beef;
-
- const uint8_t imsi[] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18};
- struct gbproxy_link_info *link_info;
- struct gbproxy_peer *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
-
- OSMO_ASSERT(local_sgsn_tlli == gprs_tmsi2tlli(sgsn_ptmsi, TLLI_LOCAL));
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
- gbcfg.core_mcc = 123;
- gbcfg.core_mnc = 456;
- gbcfg.core_apn = talloc_zero_size(NULL, 100);
- gbcfg.core_apn_size = gprs_str_to_apn(gbcfg.core_apn, 100, "foo.bar");
- gbcfg.patch_ptmsi = 1;
- gbcfg.acquire_imsi = 1;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
-
- peer = gbproxy_peer_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- gprs_dump_nsi(nsi);
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN, BVCI 0x1002 ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer, 0x1002,
- random_sgsn_tlli, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- random_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
- /* Non-DTAP */
- send_bssgp_ul_unitdata(nsi, "XID (UL)", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- llc_u_xid_ul, sizeof(llc_u_xid_ul));
-
- send_bssgp_dl_unitdata(nsi, "XID (DL)", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- llc_u_xid_dl, sizeof(llc_u_xid_dl));
-
- send_bssgp_ul_unitdata(nsi, "LL11 DNS QUERY (UL)", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- llc_ui_ll11_dns_query_ul,
- sizeof(llc_ui_ll11_dns_query_ul));
-
- send_bssgp_dl_unitdata(nsi, "LL11 DNS RESP (DL)", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- llc_ui_ll11_dns_resp_dl,
- sizeof(llc_ui_ll11_dns_resp_dl));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Other messages */
- send_bssgp_llc_discarded(nsi, &bss_peer[0], 0x1002,
- local_bss_tlli, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_llc_discarded(nsi, &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend(nsi, &bss_peer[0], local_bss_tlli, &rai_bss);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend_ack(nsi, &sgsn_peer, local_sgsn_tlli, &rai_sgsn);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Bad case: Invalid BVCI */
- send_bssgp_llc_discarded(nsi, &bss_peer[0], 0xeee1,
- local_bss_tlli, 1, 12);
- dump_global(stdout, 0);
-
- /* Bad case: Invalid RAI */
- send_bssgp_suspend_ack(nsi, &sgsn_peer, local_sgsn_tlli, &rai_unknown);
-
- dump_global(stdout, 0);
-
- /* Bad case: Invalid MCC (LAC ok) */
- send_bssgp_suspend_ack(nsi, &sgsn_peer, local_sgsn_tlli,
- &rai_wrong_mcc_sgsn);
-
- dump_global(stdout, 0);
-
- /* Detach */
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* RA Update request */
-
- send_llc_ul_ui(nsi, "RA UPD REQ", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_unknown, 0x7080,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_ra_upd_req, sizeof(dtap_ra_upd_req));
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "RA UDP ACC", &sgsn_peer, 0x1002,
- random_sgsn_tlli2, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_ra_upd_acc, sizeof(dtap_ra_upd_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach */
-
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer, 0x1002,
- local_sgsn_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Special case: Repeated Attach Requests */
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Special case: Detach from an unknown TLLI */
-
- send_llc_ul_ui(nsi, "DETACH REQ (unknown TLLI)", &bss_peer[0], 0x1002,
- other_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Special case: Repeated RA Update Requests */
-
- send_llc_ul_ui(nsi, "RA UPD REQ", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_unknown, 0x7080,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_ra_upd_req, sizeof(dtap_ra_upd_req));
-
- send_llc_ul_ui(nsi, "RA UPD REQ", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_unknown, 0x7080,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_ra_upd_req, sizeof(dtap_ra_upd_req));
-
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- dump_global(stdout, 0);
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static void test_gbproxy_secondary_sgsn()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer[2]= {{0},};
- struct gprs_ra_id rai_bss =
- {.mcc = 112, .mnc = 332, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_sgsn =
- {.mcc = 123, .mnc = 456, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_unknown =
- {.mcc = 1, .mnc = 99, .lac = 99, .rac = 96};
- uint16_t cell_id = 0x1234;
-
- const uint32_t sgsn_ptmsi = 0xefe2b700;
- const uint32_t local_sgsn_tlli = 0xefe2b700;
- const uint32_t random_sgsn_tlli = 0x78dead00;
-
- const uint32_t bss_ptmsi = 0xc0dead01;
- const uint32_t local_bss_tlli = 0xc0dead01;
- const uint32_t foreign_bss_tlli = 0x8000dead;
-
- const uint32_t sgsn_ptmsi2 = 0xe0987654;
- const uint32_t local_sgsn_tlli2 = 0xe0987654;
- const uint32_t random_sgsn_tlli2 = 0x78dead02;
- const uint32_t bss_ptmsi2 = 0xc0dead03;
- const uint32_t local_bss_tlli2 = 0xc0dead03;
- const uint32_t foreign_bss_tlli2 = 0x8000beef;
-
- const uint32_t random_sgsn_tlli3 = 0x78dead04;
- const uint32_t bss_ptmsi3 = 0xc0dead05;
- const uint32_t local_bss_tlli3 = 0xc0dead05;
- const uint32_t foreign_bss_tlli3 = 0x8000feed;
-
- const uint8_t imsi1[] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18};
- const uint8_t imsi2[] = {0x11, 0x12, 0x99, 0x99, 0x99, 0x16, 0x17, 0x18};
- const uint8_t imsi3[] = {0x11, 0x12, 0x99, 0x99, 0x99, 0x26, 0x27, 0x28};
- struct gbproxy_link_info *link_info;
- struct gbproxy_link_info *other_info;
- struct gbproxy_peer *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
-
- const char *err_msg = NULL;
- const char *filter_re = "999999";
-
- OSMO_ASSERT(local_sgsn_tlli == gprs_tmsi2tlli(sgsn_ptmsi, TLLI_LOCAL));
- OSMO_ASSERT(local_sgsn_tlli2 == gprs_tmsi2tlli(sgsn_ptmsi2, TLLI_LOCAL));
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
- gbcfg.core_mcc = 123;
- gbcfg.core_mnc = 456;
- gbcfg.core_apn = talloc_zero_size(NULL, 100);
- gbcfg.core_apn_size = gprs_str_to_apn(gbcfg.core_apn, 100, "foo.bar");
- gbcfg.patch_ptmsi = 1;
- gbcfg.acquire_imsi = 1;
-
- gbcfg.route_to_sgsn2 = 1;
- gbcfg.nsip_sgsn2_nsei = SGSN2_NSEI;
-
- if (gbproxy_set_patch_filter(&gbcfg.matches[GBPROX_MATCH_ROUTING],
- filter_re, &err_msg) != 0) {
- fprintf(stderr, "gbprox_set_patch_filter: got error: %s\n",
- err_msg);
- OSMO_ASSERT(err_msg == NULL);
- }
-
- configure_sgsn_peer(&sgsn_peer[0]);
- configure_sgsn2_peer(&sgsn_peer[1]);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN 1 ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer[0], SGSN_NSEI);
-
- printf("--- Initialise SGSN 2 ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer[1], SGSN2_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- setup_bssgp(nsi, &bss_peer[0], 0x0);
- send_bssgp_reset_ack(nsi, &sgsn_peer[0], 0x0);
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
- send_bssgp_reset_ack(nsi, &sgsn_peer[0], 0x1002);
- send_bssgp_reset_ack(nsi, &sgsn_peer[1], 0x1002);
-
- peer = gbproxy_peer_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- gprs_dump_nsi(nsi);
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Flow control ---\n\n");
-
- send_bssgp_flow_control_bvc(nsi, &bss_peer[0], 0x1002, 1);
- send_bssgp_flow_control_bvc_ack(nsi, &sgsn_peer[0], 0x1002, 1);
- send_bssgp_flow_control_bvc_ack(nsi, &sgsn_peer[1], 0x1002, 1);
-
- printf("--- Establish GPRS connection (SGSN 1) ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer[0], 0x1002,
- random_sgsn_tlli, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer[0], 0x1002,
- random_sgsn_tlli, 1, imsi1, sizeof(imsi1),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN2_NSEI));
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN2_NSEI));
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer[0], 0x1002,
- local_sgsn_tlli, 1, imsi1, sizeof(imsi1),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN2_NSEI));
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
- /* Non-DTAP */
- send_bssgp_ul_unitdata(nsi, "XID (UL)", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- llc_u_xid_ul, sizeof(llc_u_xid_ul));
-
- send_bssgp_dl_unitdata(nsi, "XID (DL)", &sgsn_peer[0], 0x1002,
- local_sgsn_tlli, 1, imsi1, sizeof(imsi1),
- llc_u_xid_dl, sizeof(llc_u_xid_dl));
-
- send_bssgp_ul_unitdata(nsi, "LL11 DNS QUERY (UL)", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- llc_ui_ll11_dns_query_ul,
- sizeof(llc_ui_ll11_dns_query_ul));
-
- send_bssgp_dl_unitdata(nsi, "LL11 DNS RESP (DL)", &sgsn_peer[0], 0x1002,
- local_sgsn_tlli, 1, imsi1, sizeof(imsi1),
- llc_ui_ll11_dns_resp_dl,
- sizeof(llc_ui_ll11_dns_resp_dl));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Other messages */
- send_bssgp_llc_discarded(nsi, &bss_peer[0], 0x1002,
- local_bss_tlli, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_llc_discarded(nsi, &sgsn_peer[0], 0x1002,
- local_sgsn_tlli, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend(nsi, &bss_peer[0], local_bss_tlli, &rai_bss);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend_ack(nsi, &sgsn_peer[0], local_sgsn_tlli, &rai_sgsn);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Establish GPRS connection (SGSN 2) ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_bss_tlli2, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli2, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity2_resp, sizeof(dtap_identity2_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer[1], 0x1002,
- random_sgsn_tlli2, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli2, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity2_resp, sizeof(dtap_identity2_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer[1], 0x1002,
- random_sgsn_tlli2, 1, imsi2, sizeof(imsi2),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc2, sizeof(dtap_attach_acc2));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli2, SGSN_NSEI));
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli2, SGSN2_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli2);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli2);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi2);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli2);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli2);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi2);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_bss_tlli2, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli2, SGSN_NSEI));
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli2, SGSN2_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli2);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli2);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli2);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli2);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer[1], 0x1002,
- local_sgsn_tlli2, 1, imsi2, sizeof(imsi2),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli2, SGSN_NSEI));
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli2, SGSN2_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli2);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli2);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
- /* Non-DTAP */
- send_bssgp_ul_unitdata(nsi, "XID (UL)", &bss_peer[0], 0x1002,
- local_bss_tlli2, &rai_bss, cell_id,
- llc_u_xid_ul, sizeof(llc_u_xid_ul));
-
- send_bssgp_dl_unitdata(nsi, "XID (DL)", &sgsn_peer[1], 0x1002,
- local_sgsn_tlli2, 1, imsi2, sizeof(imsi2),
- llc_u_xid_dl, sizeof(llc_u_xid_dl));
-
- send_bssgp_ul_unitdata(nsi, "LL11 DNS QUERY (UL)", &bss_peer[0], 0x1002,
- local_bss_tlli2, &rai_bss, cell_id,
- llc_ui_ll11_dns_query_ul,
- sizeof(llc_ui_ll11_dns_query_ul));
-
- send_bssgp_dl_unitdata(nsi, "LL11 DNS RESP (DL)", &sgsn_peer[1], 0x1002,
- local_sgsn_tlli2, 1, imsi2, sizeof(imsi2),
- llc_ui_ll11_dns_resp_dl,
- sizeof(llc_ui_ll11_dns_resp_dl));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Other messages */
- send_bssgp_llc_discarded(nsi, &bss_peer[0], 0x1002,
- local_bss_tlli2, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_llc_discarded(nsi, &sgsn_peer[1], 0x1002,
- local_sgsn_tlli2, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend(nsi, &bss_peer[0], local_bss_tlli2, &rai_bss);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend_ack(nsi, &sgsn_peer[1], local_sgsn_tlli2, &rai_sgsn);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Establish GPRS connection (SGSN 2, P-TMSI collision) ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_bss_tlli3, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli3, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity3_resp, sizeof(dtap_identity3_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer[1], 0x1002,
- random_sgsn_tlli3, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_bss_tlli3, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity3_resp, sizeof(dtap_identity3_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT (P-TMSI 1)", &sgsn_peer[1], 0x1002,
- random_sgsn_tlli3, 1, imsi3, sizeof(imsi3),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli3, SGSN_NSEI));
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, random_sgsn_tlli3, SGSN2_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli3);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli3);
- OSMO_ASSERT(!link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->tlli.ptmsi == bss_ptmsi3);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli3);
- OSMO_ASSERT(!link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.ptmsi == sgsn_ptmsi);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_bss_tlli3, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- other_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(other_info);
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN2_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info != other_info);
- OSMO_ASSERT(link_info->tlli.assigned == local_bss_tlli3);
- OSMO_ASSERT(link_info->tlli.current == foreign_bss_tlli3);
- OSMO_ASSERT(link_info->tlli.bss_validated);
- OSMO_ASSERT(!link_info->tlli.net_validated);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.current == random_sgsn_tlli3);
- OSMO_ASSERT(link_info->sgsn_tlli.bss_validated);
- OSMO_ASSERT(!link_info->sgsn_tlli.net_validated);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer[1], 0x1002,
- local_sgsn_tlli, 1, imsi3, sizeof(imsi3),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- other_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN_NSEI);
- OSMO_ASSERT(other_info);
- link_info = gbproxy_link_info_by_sgsn_tlli(peer, local_sgsn_tlli, SGSN2_NSEI);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info != other_info);
- OSMO_ASSERT(link_info->tlli.current == local_bss_tlli3);
- OSMO_ASSERT(link_info->tlli.assigned == 0);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_sgsn_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
-
- printf("--- Shutdown GPRS connection (SGSN 1) ---\n\n");
-
- /* Detach */
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_bss_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer[0], 0x1002,
- local_sgsn_tlli, 1, imsi1, sizeof(imsi1),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Shutdown GPRS connection (SGSN 2) ---\n\n");
-
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_bss_tlli2, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer[1], 0x1002,
- local_sgsn_tlli2, 1, imsi2, sizeof(imsi2),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Shutdown GPRS connection (SGSN 2, P-TMSI 1) ---\n\n");
-
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_bss_tlli3, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer[1], 0x1002,
- local_sgsn_tlli, 1, imsi3, sizeof(imsi3),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- dump_global(stdout, 0);
-
- gbproxy_clear_patch_filter(&gbcfg.matches[GBPROX_MATCH_ROUTING]);
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static void test_gbproxy_keep_info()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
- struct gprs_ra_id rai_bss =
- {.mcc = 112, .mnc = 332, .lac = 16464, .rac = 96};
- uint16_t cell_id = 0x1234;
-
- const uint32_t ptmsi = 0xefe2b700;
- const uint32_t local_tlli = 0xefe2b700;
- const uint32_t foreign_tlli = 0xafe2b700;
-
- const uint8_t imsi[] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18};
- struct gbproxy_link_info *link_info, *link_info2;
- struct gbproxy_peer *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
-
- LLIST_HEAD(rcv_list);
-
- OSMO_ASSERT(local_tlli == gprs_tmsi2tlli(ptmsi, TLLI_LOCAL));
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
- gbcfg.patch_ptmsi = 0;
- gbcfg.acquire_imsi = 1;
- gbcfg.core_mcc = 0;
- gbcfg.core_mnc = 0;
- gbcfg.core_apn = NULL;
- gbcfg.core_apn_size = 0;
- gbcfg.route_to_sgsn2 = 0;
- gbcfg.nsip_sgsn2_nsei = 0xffff;
- gbcfg.keep_link_infos = GBPROX_KEEP_ALWAYS;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
-
- peer = gbproxy_peer_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- gprs_dump_nsi(nsi);
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Send message from BSS 1 to SGSN, BVCI 0x1002 ---\n\n");
-
- received_messages = &rcv_list;
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ID_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->imsi_len == 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(link_info->imsi_acq_pending);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->imsi_len > 0);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
- OSMO_ASSERT(gprs_tlli_type(link_info->sgsn_tlli.current) == TLLI_FOREIGN);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer, 0x1002,
- foreign_tlli, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ID_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ID_RESP));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->imsi_len > 0);
- OSMO_ASSERT(gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi)));
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_INFO));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- /* Detach (MO) */
- send_llc_ul_ui(nsi, "DETACH REQ", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "DETACH ACC", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- OSMO_ASSERT(!expect_msg());
-
- /* Re-Attach */
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req3, sizeof(dtap_attach_req3));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
- OSMO_ASSERT(gprs_tlli_type(link_info->sgsn_tlli.current) == TLLI_FOREIGN);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach (MT) */
- send_llc_dl_ui(nsi, "DETACH REQ (re-attach)", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_mt_detach_rea_req, sizeof(dtap_mt_detach_rea_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- send_llc_ul_ui(nsi, "DETACH ACC", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_mt_detach_acc, sizeof(dtap_mt_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_ACK));
- OSMO_ASSERT(!expect_msg());
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- /* Re-Attach */
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req3, sizeof(dtap_attach_req3));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach (MT) */
- send_llc_dl_ui(nsi, "DETACH REQ", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_mt_detach_req, sizeof(dtap_mt_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- send_llc_ul_ui(nsi, "DETACH ACC", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_mt_detach_acc, sizeof(dtap_mt_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_ACK));
- OSMO_ASSERT(!expect_msg());
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- /* Re-Attach with IMSI */
- send_llc_ul_ui(nsi, "ATTACH REQUEST (IMSI)", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req4, sizeof(dtap_attach_req4));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
- OSMO_ASSERT(link_info->sgsn_tlli.current == foreign_tlli);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach (MT) */
- send_llc_dl_ui(nsi, "DETACH REQ", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_mt_detach_req, sizeof(dtap_mt_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- send_llc_ul_ui(nsi, "DETACH ACC", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_mt_detach_acc, sizeof(dtap_mt_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_ACK));
- OSMO_ASSERT(!expect_msg());
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- /* Re-Attach */
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req3, sizeof(dtap_attach_req3));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* RA update procedure (reject -> Detach) */
- send_llc_ul_ui(nsi, "RA UPD REQ", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, 0x7080,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_ra_upd_req, sizeof(dtap_ra_upd_req));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_RA_UPD_REQ));
-
- send_llc_dl_ui(nsi, "RA UDP REJ", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_ra_upd_rej, sizeof(dtap_ra_upd_rej));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_RA_UPD_REJ));
- OSMO_ASSERT(!expect_msg());
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- /* Bad case: Re-Attach with wrong (initial) P-TMSI */
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ID_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info != link_info2);
- OSMO_ASSERT(link_info->imsi_len == 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(link_info->imsi_acq_pending);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len > 0);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach (MT) */
- send_llc_dl_ui(nsi, "DETACH REQ", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_mt_detach_req, sizeof(dtap_mt_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- send_llc_ul_ui(nsi, "DETACH ACC", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_mt_detach_acc, sizeof(dtap_mt_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- OSMO_ASSERT(!expect_msg());
-
- /* Bad case: Re-Attach with local TLLI */
- send_llc_ul_ui(nsi, "ATTACH REQUEST (local TLLI)", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req3, sizeof(dtap_attach_req3));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
- OSMO_ASSERT(link_info->sgsn_tlli.current == local_tlli);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach (MT) */
- send_llc_dl_ui(nsi, "DETACH REQ (re-attach)", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_mt_detach_rea_req, sizeof(dtap_mt_detach_rea_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- send_llc_ul_ui(nsi, "DETACH ACC", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_mt_detach_acc, sizeof(dtap_mt_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_ACK));
- OSMO_ASSERT(!expect_msg());
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- /* Bad case: Unexpected Re-Attach with IMSI after completed attachment
- * procedure */
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req3, sizeof(dtap_attach_req3));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_INFO));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST (unexpected, IMSI)",
- &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req4, sizeof(dtap_attach_req4));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
- OSMO_ASSERT(link_info->sgsn_tlli.current == foreign_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach (MT) */
- send_llc_dl_ui(nsi, "DETACH REQ", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_mt_detach_req, sizeof(dtap_mt_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- send_llc_ul_ui(nsi, "DETACH ACC", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_mt_detach_acc, sizeof(dtap_mt_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_ACK));
- OSMO_ASSERT(!expect_msg());
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- /* Bad case: Unexpected Re-Attach with P-TMSI after completed attachment
- * procedure */
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req3, sizeof(dtap_attach_req3));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "GMM INFO", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_gmm_information, sizeof(dtap_gmm_information));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_INFO));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST (unexpected)", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req3, sizeof(dtap_attach_req3));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
- OSMO_ASSERT(link_info->sgsn_tlli.current == foreign_tlli);
- OSMO_ASSERT(link_info->sgsn_tlli.assigned == 0);
-
- send_llc_dl_ui(nsi, "ATTACH ACCEPT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_acc, sizeof(dtap_attach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "ATTACH COMPLETE", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_complete, sizeof(dtap_attach_complete));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_COMPL));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Detach (MT) */
- send_llc_dl_ui(nsi, "DETACH REQ", &sgsn_peer, 0x1002,
- local_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_mt_detach_req, sizeof(dtap_mt_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, local_tlli);
- OSMO_ASSERT(link_info);
-
- send_llc_ul_ui(nsi, "DETACH ACC", &bss_peer[0], 0x1002,
- local_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_mt_detach_acc, sizeof(dtap_mt_detach_acc));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_ACK));
- OSMO_ASSERT(!expect_msg());
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, local_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
-
- /* Attach rejected */
-
- gbproxy_delete_link_infos(peer);
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ID_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->imsi_len == 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(link_info->imsi_acq_pending);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info2 = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info == link_info2);
- OSMO_ASSERT(link_info->imsi_len != 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(!link_info->imsi_acq_pending);
-
- send_llc_dl_ui(nsi, "ATTACH REJECT", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_attach_rej7, sizeof(dtap_attach_rej7));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ATTACH_REJ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, foreign_tlli));
-
- OSMO_ASSERT(!expect_msg());
-
- /* Attach (incomplete) and Detach (MO) */
-
- gbproxy_delete_link_infos(peer);
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ID_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->imsi_len == 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(link_info->imsi_acq_pending);
-
- send_llc_ul_ui(nsi, "DETACH REQ (MO)", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_req, sizeof(dtap_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!expect_msg());
-
- /* Attach (incomplete) and Detach (MT) */
-
- gbproxy_delete_link_infos(peer);
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_ID_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->imsi_len == 0);
- OSMO_ASSERT(!link_info->is_deregistered);
- OSMO_ASSERT(link_info->imsi_acq_pending);
-
- send_llc_dl_ui(nsi, "DETACH REQ (MT)", &sgsn_peer, 0x1002,
- foreign_tlli, 1, imsi, sizeof(imsi),
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_mt_detach_req, sizeof(dtap_mt_detach_req));
-
- OSMO_ASSERT(expect_gmm_msg(0x1000, 0x1002, GSM48_MT_GMM_DETACH_REQ));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- link_info = gbproxy_link_info_by_tlli(peer, foreign_tlli);
- OSMO_ASSERT(link_info);
-
- send_llc_ul_ui(nsi, "DETACH ACC", &bss_peer[0], 0x1002,
- foreign_tlli, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_mt_detach_acc, sizeof(dtap_mt_detach_acc));
-
- /* TODO: The stored messaged should be cleaned when receiving a Detach
- * Ack. Remove the first OSMO_ASSERT when this is fixed. */
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_ATTACH_REQ));
- OSMO_ASSERT(expect_gmm_msg(SGSN_NSEI, 0x1002, GSM48_MT_GMM_DETACH_ACK));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- OSMO_ASSERT(!gbproxy_link_info_by_tlli(peer, foreign_tlli));
- link_info = gbproxy_link_info_by_imsi(peer, imsi, sizeof(imsi));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->is_deregistered);
-
- OSMO_ASSERT(!expect_msg());
- received_messages = NULL;
-
- dump_global(stdout, 0);
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-struct gbproxy_link_info *register_tlli(
- struct gbproxy_peer *peer, uint32_t tlli,
- const uint8_t *imsi, size_t imsi_len, time_t now)
-{
- struct gbproxy_link_info *link_info;
- int imsi_matches = -1;
- int tlli_already_known = 0;
- struct gbproxy_config *cfg = peer->cfg;
-
- /* Check, whether the IMSI matches */
- if (gprs_is_mi_imsi(imsi, imsi_len)) {
- imsi_matches = gbproxy_check_imsi(
- &cfg->matches[GBPROX_MATCH_PATCHING], imsi, imsi_len);
- if (imsi_matches < 0)
- return NULL;
- }
-
- link_info = gbproxy_link_info_by_tlli(peer, tlli);
-
- if (!link_info) {
- link_info = gbproxy_link_info_by_imsi(peer, imsi, imsi_len);
-
- if (link_info) {
- /* TLLI has changed somehow, adjust it */
- LOGP(DGPRS, LOGL_INFO,
- "The TLLI has changed from %08x to %08x\n",
- link_info->tlli.current, tlli);
- link_info->tlli.current = tlli;
- }
- }
-
- if (!link_info) {
- link_info = gbproxy_link_info_alloc(peer);
- link_info->tlli.current = tlli;
- } else {
- gbproxy_detach_link_info(peer, link_info);
- tlli_already_known = 1;
- }
-
- OSMO_ASSERT(link_info != NULL);
-
- if (!tlli_already_known)
- LOGP(DGPRS, LOGL_INFO, "Adding TLLI %08x to list\n", tlli);
-
- gbproxy_attach_link_info(peer, now, link_info);
- gbproxy_update_link_info(link_info, imsi, imsi_len);
-
- if (imsi_matches >= 0)
- link_info->is_matching[GBPROX_MATCH_PATCHING] = imsi_matches;
-
- return link_info;
-}
-
-static void test_gbproxy_tlli_expire(void)
-{
- struct gbproxy_config cfg = {0};
- struct gbproxy_peer *peer;
- const char *err_msg = NULL;
- const uint8_t imsi1[] = { GSM_MI_TYPE_IMSI, 0x23, 0x24, 0x25, 0x26 };
- const uint8_t imsi2[] = { GSM_MI_TYPE_IMSI, 0x26, 0x27, 0x28, 0x29 };
- const uint8_t imsi3[] = { GSM_MI_TYPE_IMSI | 0x10, 0x32, 0x54, 0x76, 0xf8 };
- const uint32_t tlli1 = 1234 | 0xc0000000;
- const uint32_t tlli2 = 5678 | 0xc0000000;
- const uint32_t tlli3 = 3456 | 0xc0000000;
- const char *filter_re = ".*";
- time_t now = 1407479214;
-
- printf("Test TLLI info expiry\n\n");
-
- gbproxy_init_config(&cfg);
-
- if (gbproxy_set_patch_filter(&cfg.matches[GBPROX_MATCH_PATCHING],
- filter_re, &err_msg) != 0) {
- fprintf(stderr, "gbprox_set_patch_filter: got error: %s\n",
- err_msg);
- OSMO_ASSERT(err_msg == NULL);
- }
-
- {
- struct gbproxy_link_info *link_info;
-
- printf("Test TLLI replacement:\n");
-
- cfg.tlli_max_len = 0;
- cfg.tlli_max_age = 0;
- peer = gbproxy_peer_alloc(&cfg, 20);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 0);
-
- printf(" Add TLLI 1, IMSI 1\n");
- link_info = register_tlli(peer, tlli1,
- imsi1, ARRAY_SIZE(imsi1), now);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli1);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- /* replace the old entry */
- printf(" Add TLLI 2, IMSI 1 (should replace TLLI 1)\n");
- link_info = register_tlli(peer, tlli2,
- imsi1, ARRAY_SIZE(imsi1), now);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli2);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- dump_peers(stdout, 2, now, &cfg);
-
- /* verify that 5678 has survived */
- link_info = gbproxy_link_info_by_imsi(peer, imsi1, ARRAY_SIZE(imsi1));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli2);
- link_info = gbproxy_link_info_by_imsi(peer, imsi2, ARRAY_SIZE(imsi2));
- OSMO_ASSERT(!link_info);
-
- printf("\n");
-
- gbproxy_peer_free(peer);
- }
-
- {
- struct gbproxy_link_info *link_info;
-
- printf("Test IMSI replacement:\n");
-
- cfg.tlli_max_len = 0;
- cfg.tlli_max_age = 0;
- peer = gbproxy_peer_alloc(&cfg, 20);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 0);
-
- printf(" Add TLLI 1, IMSI 1\n");
- link_info = register_tlli(peer, tlli1,
- imsi1, ARRAY_SIZE(imsi1), now);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli1);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- /* try to replace the old entry */
- printf(" Add TLLI 1, IMSI 2 (should replace IMSI 1)\n");
- link_info = register_tlli(peer, tlli1,
- imsi2, ARRAY_SIZE(imsi2), now);
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli1);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- dump_peers(stdout, 2, now, &cfg);
-
- /* verify that 5678 has survived */
- link_info = gbproxy_link_info_by_imsi(peer, imsi1, ARRAY_SIZE(imsi1));
- OSMO_ASSERT(!link_info);
- link_info = gbproxy_link_info_by_imsi(peer, imsi2, ARRAY_SIZE(imsi2));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli1);
-
- printf("\n");
-
- gbproxy_peer_free(peer);
- }
-
- {
- struct gbproxy_link_info *link_info;
- int num_removed;
-
- printf("Test TLLI expiry, max_len == 1:\n");
-
- cfg.tlli_max_len = 1;
- cfg.tlli_max_age = 0;
- peer = gbproxy_peer_alloc(&cfg, 20);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 0);
-
- printf(" Add TLLI 1, IMSI 1\n");
- register_tlli(peer, tlli1, imsi1, ARRAY_SIZE(imsi1), now);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- /* replace the old entry */
- printf(" Add TLLI 2, IMSI 2 (should replace IMSI 1)\n");
- register_tlli(peer, tlli2, imsi2, ARRAY_SIZE(imsi2), now);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 2);
-
- num_removed = gbproxy_remove_stale_link_infos(peer, now + 2);
- OSMO_ASSERT(num_removed == 1);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- dump_peers(stdout, 2, now, &cfg);
-
- /* verify that 5678 has survived */
- link_info = gbproxy_link_info_by_imsi(peer, imsi1, ARRAY_SIZE(imsi1));
- OSMO_ASSERT(!link_info);
- link_info = gbproxy_link_info_by_imsi(peer, imsi2, ARRAY_SIZE(imsi2));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli2);
-
- printf("\n");
-
- gbproxy_peer_free(peer);
- }
-
- {
- struct gbproxy_link_info *link_info;
- int num_removed;
-
- printf("Test TLLI expiry, max_age == 1:\n");
-
- cfg.tlli_max_len = 0;
- cfg.tlli_max_age = 1;
- peer = gbproxy_peer_alloc(&cfg, 20);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 0);
-
- printf(" Add TLLI 1, IMSI 1 (should expire after timeout)\n");
- register_tlli(peer, tlli1, imsi1, ARRAY_SIZE(imsi1), now);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- printf(" Add TLLI 2, IMSI 2 (should not expire after timeout)\n");
- register_tlli(peer, tlli2, imsi2, ARRAY_SIZE(imsi2),
- now + 1);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 2);
-
- num_removed = gbproxy_remove_stale_link_infos(peer, now + 2);
- OSMO_ASSERT(num_removed == 1);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- dump_peers(stdout, 2, now + 2, &cfg);
-
- /* verify that 5678 has survived */
- link_info = gbproxy_link_info_by_imsi(peer, imsi1, ARRAY_SIZE(imsi1));
- OSMO_ASSERT(!link_info);
- link_info = gbproxy_link_info_by_imsi(peer, imsi2, ARRAY_SIZE(imsi2));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli2);
-
- printf("\n");
-
- gbproxy_peer_free(peer);
- }
-
- {
- struct gbproxy_link_info *link_info;
- int num_removed;
-
- printf("Test TLLI expiry, max_len == 2, max_age == 1:\n");
-
- cfg.tlli_max_len = 0;
- cfg.tlli_max_age = 1;
- peer = gbproxy_peer_alloc(&cfg, 20);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 0);
-
- printf(" Add TLLI 1, IMSI 1 (should expire)\n");
- register_tlli(peer, tlli1, imsi1, ARRAY_SIZE(imsi1), now);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- printf(" Add TLLI 2, IMSI 2 (should expire after timeout)\n");
- register_tlli(peer, tlli2, imsi2, ARRAY_SIZE(imsi2),
- now + 1);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 2);
-
- printf(" Add TLLI 3, IMSI 3 (should not expire after timeout)\n");
- register_tlli(peer, tlli3, imsi3, ARRAY_SIZE(imsi3),
- now + 2);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 3);
-
- dump_peers(stdout, 2, now + 2, &cfg);
-
- printf(" Remove stale TLLIs\n");
- num_removed = gbproxy_remove_stale_link_infos(peer, now + 3);
- OSMO_ASSERT(num_removed == 2);
- OSMO_ASSERT(peer->patch_state.logical_link_count == 1);
-
- dump_peers(stdout, 2, now + 2, &cfg);
-
- /* verify that tlli3 has survived */
- link_info = gbproxy_link_info_by_imsi(peer, imsi1, ARRAY_SIZE(imsi1));
- OSMO_ASSERT(!link_info);
- link_info = gbproxy_link_info_by_imsi(peer, imsi2, ARRAY_SIZE(imsi2));
- OSMO_ASSERT(!link_info);
- link_info = gbproxy_link_info_by_imsi(peer, imsi3, ARRAY_SIZE(imsi3));
- OSMO_ASSERT(link_info);
- OSMO_ASSERT(link_info->tlli.current == tlli3);
-
- printf("\n");
-
- gbproxy_peer_free(peer);
- }
- gbproxy_clear_patch_filter(&cfg.matches[GBPROX_MATCH_PATCHING]);
- gbprox_reset(&cfg);
-
- cleanup_test();
-}
-
-static void test_gbproxy_imsi_matching(void)
-{
- const char *err_msg = NULL;
- const uint8_t imsi1[] = { GSM_MI_TYPE_IMSI | 0x10, 0x32, 0x54, 0xf6 };
- const uint8_t imsi2[] = { GSM_MI_TYPE_IMSI | GSM_MI_ODD | 0x10, 0x32, 0x54, 0x76 };
- const uint8_t imsi3_bad[] = { GSM_MI_TYPE_IMSI | 0x10, 0xee, 0x54, 0xff };
- const uint8_t tmsi1[] = { GSM_MI_TYPE_TMSI | 0xf0, 0x11, 0x22, 0x33, 0x44 };
- const uint8_t tmsi2_bad[] = { GSM_MI_TYPE_TMSI | 0xf0, 0x11, 0x22 };
- const uint8_t imei1[] = { GSM_MI_TYPE_IMEI | 0x10, 0x32, 0x54, 0xf6 };
- const uint8_t imei2[] = { GSM_MI_TYPE_IMEI | GSM_MI_ODD | 0x10, 0x32, 0x54, 0x76 };
- const char *filter_re1 = ".*";
- const char *filter_re2 = "^1234";
- const char *filter_re3 = "^4321";
- const char *filter_re4_bad = "^12[";
- struct gbproxy_match match = {0,};
-
- printf("=== Test IMSI/TMSI matching ===\n\n");
-
- OSMO_ASSERT(match.enable == 0);
-
- OSMO_ASSERT(gbproxy_set_patch_filter(&match, filter_re1, &err_msg) == 0);
- OSMO_ASSERT(match.enable == 1);
-
- OSMO_ASSERT(gbproxy_set_patch_filter(&match, filter_re2, &err_msg) == 0);
- OSMO_ASSERT(match.enable == 1);
-
- err_msg = NULL;
- OSMO_ASSERT(gbproxy_set_patch_filter(&match, filter_re4_bad, &err_msg) == -1);
- OSMO_ASSERT(err_msg != NULL);
- OSMO_ASSERT(match.enable == 0);
-
- OSMO_ASSERT(gbproxy_set_patch_filter(&match, filter_re2, &err_msg) == 0);
- OSMO_ASSERT(match.enable == 1);
-
- OSMO_ASSERT(gbproxy_set_patch_filter(&match, NULL, &err_msg) == 0);
- OSMO_ASSERT(match.enable == 0);
-
- OSMO_ASSERT(gbproxy_set_patch_filter(&match, filter_re2, &err_msg) == 0);
- OSMO_ASSERT(match.enable == 1);
-
- gbproxy_clear_patch_filter(&match);
- OSMO_ASSERT(match.enable == 0);
-
- OSMO_ASSERT(gbproxy_set_patch_filter(&match, filter_re2, &err_msg) == 0);
- OSMO_ASSERT(match.enable == 1);
-
- OSMO_ASSERT(gbproxy_check_imsi(&match, imsi1, ARRAY_SIZE(imsi1)) == 1);
- OSMO_ASSERT(gbproxy_check_imsi(&match, imsi2, ARRAY_SIZE(imsi2)) == 1);
- /* imsi3_bad contains 0xE and 0xF digits, but the conversion function
- * doesn't complain, so gbproxy_check_imsi() doesn't return -1 in this
- * case. */
- OSMO_ASSERT(gbproxy_check_imsi(&match, imsi3_bad, ARRAY_SIZE(imsi3_bad)) == 0);
- OSMO_ASSERT(gbproxy_check_imsi(&match, tmsi1, ARRAY_SIZE(tmsi1)) == -1);
- OSMO_ASSERT(gbproxy_check_imsi(&match, tmsi2_bad, ARRAY_SIZE(tmsi2_bad)) == -1);
- OSMO_ASSERT(gbproxy_check_imsi(&match, imei1, ARRAY_SIZE(imei1)) == -1);
- OSMO_ASSERT(gbproxy_check_imsi(&match, imei2, ARRAY_SIZE(imei2)) == -1);
-
- OSMO_ASSERT(gbproxy_set_patch_filter(&match, filter_re3, &err_msg) == 0);
- OSMO_ASSERT(match.enable == 1);
-
- OSMO_ASSERT(gbproxy_check_imsi(&match, imsi1, ARRAY_SIZE(imsi1)) == 0);
- OSMO_ASSERT(gbproxy_check_imsi(&match, imsi2, ARRAY_SIZE(imsi2)) == 0);
- OSMO_ASSERT(gbproxy_check_imsi(&match, imsi3_bad, ARRAY_SIZE(imsi3_bad)) == 0);
- OSMO_ASSERT(gbproxy_check_imsi(&match, tmsi1, ARRAY_SIZE(tmsi1)) == -1);
- OSMO_ASSERT(gbproxy_check_imsi(&match, tmsi2_bad, ARRAY_SIZE(tmsi2_bad)) == -1);
- OSMO_ASSERT(gbproxy_check_imsi(&match, imei1, ARRAY_SIZE(imei1)) == -1);
- OSMO_ASSERT(gbproxy_check_imsi(&match, imei2, ARRAY_SIZE(imei2)) == -1);
-
- /* TODO: Check correct length but wrong type with is_mi_tmsi */
-
- gbproxy_clear_patch_filter(&match);
- OSMO_ASSERT(match.enable == 0);
-
- cleanup_test();
-}
-
-static void test_gbproxy_stored_messages()
-{
- struct gprs_ns_inst *nsi = gprs_ns_instantiate(gprs_ns_callback, NULL);
- struct sockaddr_in bss_peer[1] = {{0},};
- struct sockaddr_in sgsn_peer= {0};
- struct gprs_ra_id rai_bss =
- {.mcc = 112, .mnc = 332, .lac = 16464, .rac = 96};
- struct gprs_ra_id rai_unknown =
- {.mcc = 1, .mnc = 99, .lac = 99, .rac = 96};
- uint16_t cell_id = 0x1234;
-
- const uint32_t ptmsi = 0xefe2b700;
- const uint32_t local_tlli = 0xefe2b700;
-
- const uint32_t foreign_tlli1 = 0x8000dead;
-
- struct gbproxy_peer *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
-
- OSMO_ASSERT(local_tlli == gprs_tmsi2tlli(ptmsi, TLLI_LOCAL));
-
- bssgp_nsi = nsi;
- gbcfg.nsi = bssgp_nsi;
- gbcfg.nsip_sgsn_nsei = SGSN_NSEI;
- gbcfg.core_mcc = 0;
- gbcfg.core_mnc = 0;
- gbcfg.core_apn = talloc_zero_size(NULL, 100);
- gbcfg.core_apn_size = gprs_str_to_apn(gbcfg.core_apn, 100, "foo.bar");
- gbcfg.patch_ptmsi = 0;
- gbcfg.acquire_imsi = 1;
- gbcfg.keep_link_infos = 0;
-
- configure_sgsn_peer(&sgsn_peer);
- configure_bss_peers(bss_peer, ARRAY_SIZE(bss_peer));
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, &sgsn_peer, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, &bss_peer[0], 0x1001, 0x1000);
- setup_bssgp(nsi, &bss_peer[0], 0x1002);
-
- peer = gbproxy_peer_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, &sgsn_peer, 0x1002);
-
- gprs_dump_nsi(nsi);
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Establish first LLC connection ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", &bss_peer[0], 0x1002,
- foreign_tlli1, &rai_unknown, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_attach_req, sizeof(dtap_attach_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_dl_ui(nsi, "IDENT REQUEST", &sgsn_peer, 0x1002,
- foreign_tlli1, 0, NULL, 0,
- GPRS_SAPI_GMM, sgsn_nu++,
- dtap_identity_req, sizeof(dtap_identity_req));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "DETACH ACCEPT", &bss_peer[0], 0x1002,
- foreign_tlli1, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_detach_acc, sizeof(dtap_detach_acc));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_llc_ul_ui(nsi, "IDENT RESPONSE", &bss_peer[0], 0x1002,
- foreign_tlli1, &rai_bss, cell_id,
- GPRS_SAPI_GMM, bss_nu++,
- dtap_identity_resp, sizeof(dtap_identity_resp));
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- dump_global(stdout, 0);
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static struct log_info_cat gprs_categories[] = {
- [DGPRS] = {
- .name = "DGPRS",
- .description = "GPRS Packet Service",
- .enabled = 1, .loglevel = LOGL_DEBUG,
- },
- [DNS] = {
- .name = "DNS",
- .description = "GPRS Network Service (NS)",
- .enabled = 1, .loglevel = LOGL_INFO,
- },
- [DBSSGP] = {
- .name = "DBSSGP",
- .description = "GPRS BSS Gateway Protocol (BSSGP)",
- .enabled = 1, .loglevel = LOGL_DEBUG,
- },
-};
-
-static struct log_info info = {
- .cat = gprs_categories,
- .num_cat = ARRAY_SIZE(gprs_categories),
-};
-
-int main(int argc, char **argv)
-{
- msgb_talloc_ctx_init(NULL, 0);
-
- osmo_init_logging(&info);
- log_set_use_color(osmo_stderr_target, 0);
- log_set_print_filename(osmo_stderr_target, 0);
- osmo_signal_register_handler(SS_L_NS, &test_signal, &gbcfg);
-
- log_set_print_filename(osmo_stderr_target, 0);
- log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
- log_set_all_filter(osmo_stderr_target, 1);
-
- rate_ctr_init(NULL);
-
- setlinebuf(stdout);
-
- printf("===== GbProxy test START\n");
- gbproxy_init_config(&gbcfg);
- test_gbproxy();
- test_gbproxy_ident_changes();
- test_gbproxy_imsi_matching();
- test_gbproxy_ptmsi_assignment();
- test_gbproxy_ra_patching();
- test_gbproxy_ptmsi_patching();
- test_gbproxy_ptmsi_patching_bad_cases();
- test_gbproxy_imsi_acquisition();
- test_gbproxy_secondary_sgsn();
- test_gbproxy_keep_info();
- test_gbproxy_tlli_expire();
- test_gbproxy_stored_messages();
- printf("===== GbProxy test END\n\n");
-
- exit(EXIT_SUCCESS);
-}
diff --git a/tests/gbproxy/gbproxy_test.ok b/tests/gbproxy/gbproxy_test.ok
deleted file mode 100644
index 737aec0ba..000000000
--- a/tests/gbproxy/gbproxy_test.ok
+++ /dev/null
@@ -1,7244 +0,0 @@
-===== GbProxy test START
-=== test_gbproxy ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
-Current NS-VCIs:
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
---- Initialise BSS 2 ---
-
-Setup NS-VC: remote 0x01020304:2222, NSVCI 0x2001(8193), NSEI 0x2000(8192)
-
-PROCESSING RESET from 0x01020304:2222
-02 00 81 01 01 82 20 01 04 82 20 00
-
-==> got signal NS_RESET, NS-VC 0x2001/1.2.3.4:2222
-
-MESSAGE to BSS at 0x01020304:2222, msg length 9
-03 01 82 20 01 04 82 20 00
-
-MESSAGE to BSS at 0x01020304:2222, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:2222
-0a
-
-MESSAGE to BSS at 0x01020304:2222, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:2222
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:2222
-
-MESSAGE to BSS at 0x01020304:2222, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:2222
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:2222, BVCI 0x2002(8194)
-
-PROCESSING BVC_RESET from 0x01020304:2222
-00 00 00 00 22 04 82 20 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 20 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 20 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:2222
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 20 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 20 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:2222, msg length 9
-00 00 00 00 23 04 82 20 02
-
-result (BVC_RESET_ACK) = 9
-
---- Move BSS 1 to new port ---
-
-Setup NS-VC: remote 0x01020304:3333, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:3333
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:3333
-
-MESSAGE to BSS at 0x01020304:3333, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:3333
-0a
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:3333
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:3333
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:3333
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:2222
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:3333
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Move BSS 2 to former BSS 1 port ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x2001(8193), NSEI 0x2000(8192)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 20 01 04 82 20 00
-
-==> got signal NS_RESET, NS-VC 0x2001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 20 01 04 82 20 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:1111
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:3333
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Move BSS 1 to current BSS 2 port ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x2001(8193), NSEI 0x2000(8192)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 20 01 04 82 20 00
-
-==> got signal NS_RESET, NS-VC 0x2001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 20 01 04 82 20 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:1111
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:3333
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Move BSS 2 to new port ---
-
-Setup NS-VC: remote 0x01020304:4444, NSVCI 0x2001(8193), NSEI 0x2000(8192)
-
-PROCESSING RESET from 0x01020304:4444
-02 00 81 01 01 82 20 01 04 82 20 00
-
-==> got signal NS_RESET, NS-VC 0x2001/1.2.3.4:4444
-
-MESSAGE to BSS at 0x01020304:4444, msg length 9
-03 01 82 20 01 04 82 20 00
-
-MESSAGE to BSS at 0x01020304:4444, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:4444
-0a
-
-MESSAGE to BSS at 0x01020304:4444, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:4444
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:4444
-
-MESSAGE to BSS at 0x01020304:4444, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:4444
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:4444
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:3333
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Move BSS 2 to former BSS 1 port ---
-
-Setup NS-VC: remote 0x01020304:3333, NSVCI 0x2001(8193), NSEI 0x2000(8192)
-
-PROCESSING RESET from 0x01020304:3333
-02 00 81 01 01 82 20 01 04 82 20 00
-
-==> got signal NS_REPLACED: 0x2001/1.2.3.4:4444 -> 0x1001/1.2.3.4:3333
-
-==> got signal NS_RESET, NS-VC 0x2001/1.2.3.4:3333
-
-MESSAGE to BSS at 0x01020304:3333, msg length 9
-03 01 82 20 01 04 82 20 00
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:3333
-0a
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:3333
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:3333
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:3333
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x00000000:0
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Move BSS 1 to original BSS 1 port ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Reset BSS 1 with a new BVCI ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1012(4114)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 12 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 12 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 12 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 4096, BVCI 4114, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 12
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 12
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 12
-
-result (BVC_RESET_ACK) = 9
-
---- Reset BSS 1 with the old BVCI ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 4096, BVCI 4114, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
---- Reset BSS 1 with the old BVCI again ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 4096, BVCI 4114, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
---- Send message from BSS 1 to SGSN, BVCI 0x1012 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 10 12
-
-CALLBACK, event 0, msg length 0, bvci 0x1012
-00 00 10 12
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1012, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 10 12
-
-result (UNITDATA) = 4
-
---- Send message from SGSN to BSS 1, BVCI 0x1012 ---
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 10 12
-
-CALLBACK, event 0, msg length 0, bvci 0x1012
-00 00 10 12
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1012, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 10 12
-
-result (UNITDATA) = 4
-
---- Send message from BSS 1 to SGSN, BVCI 0x1002 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 10 12
-
-CALLBACK, event 0, msg length 0, bvci 0x1012
-00 00 10 12
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1012, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 10 12
-
-result (UNITDATA) = 4
-
---- Send message from SGSN to BSS 1, BVCI 0x1002 ---
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 10 12
-
-CALLBACK, event 0, msg length 0, bvci 0x1012
-00 00 10 12
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1012, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 10 12
-
-result (UNITDATA) = 4
-
---- Send message from BSS 2 to SGSN, BVCI 0x2002 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 20 02
-
-CALLBACK, event 0, msg length 0, bvci 0x2002
-00 00 20 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x2002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 20 02
-
-result (UNITDATA) = 4
-
---- Send message from SGSN to BSS 2, BVCI 0x2002 ---
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 20 02
-
-CALLBACK, event 0, msg length 0, bvci 0x2002
-00 00 20 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x2002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:3333, msg length 4
-00 00 20 02
-
-result (UNITDATA) = 4
-
---- Reset BSS 1 with the old BVCI on BSS2's link ---
-
-Setup BSSGP: remote 0x01020304:3333, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:3333
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 4096, BVCI 4114, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
-Gbproxy global:
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:3333, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
---- Send message from BSS 1 to SGSN, BVCI 0x1002 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 10 12
-
-CALLBACK, event 0, msg length 0, bvci 0x1012
-00 00 10 12
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1012, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 10 12
-
-result (UNITDATA) = 4
-
---- Send message from SGSN to BSS 1, BVCI 0x1002 ---
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 10 12
-
-CALLBACK, event 0, msg length 0, bvci 0x1012
-00 00 10 12
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1012, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 10 12
-
-result (UNITDATA) = 4
-
---- Send message from SGSN to BSS 1, BVCI 0x10ff (invalid) ---
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 10 ff
-
-CALLBACK, event 0, msg length 0, bvci 0x10ff
-00 00 10 ff
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 10 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 14
-00 00 00 00 41 07 81 05 04 82 10 ff 15 80
-
-result (UNITDATA) = 14
-
-Peers:
- NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
-Gbproxy global:
- Invalid BVC Identifier : 1
-=== test_gbproxy_ident_changes ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
-Current NS-VCIs:
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
---- Setup BVCI 1 ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Setup BVCI 2 ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x2002(8194)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 20 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 20 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 20 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 20 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 20 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 20 02
-
-result (BVC_RESET_ACK) = 9
-
-Peers:
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN and back, BVCI 1 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 10 02
-
-CALLBACK, event 0, msg length 0, bvci 0x1002
-00 00 10 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 10 02
-
-result (UNITDATA) = 4
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 10 02
-
-CALLBACK, event 0, msg length 0, bvci 0x1002
-00 00 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 10 02
-
-result (UNITDATA) = 4
-
---- Send message from BSS 1 to SGSN and back, BVCI 2 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 20 02
-
-CALLBACK, event 0, msg length 0, bvci 0x2002
-00 00 20 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x2002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 20 02
-
-result (UNITDATA) = 4
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 20 02
-
-CALLBACK, event 0, msg length 0, bvci 0x2002
-00 00 20 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x2002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 20 02
-
-result (UNITDATA) = 4
-
---- Change NSEI ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x2000(8192)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 20 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 20 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x2000, peer 0x01020304:1111
- NS-VC changed NSEI count : 1
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
---- Setup BVCI 1 ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Peers:
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
---- Setup BVCI 3 ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x3002(12290)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 30 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 30 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 30 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 30 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 30 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 30 02
-
-result (BVC_RESET_ACK) = 9
-
-Peers:
- NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN and back, BVCI 1 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 10 02
-
-CALLBACK, event 0, msg length 0, bvci 0x1002
-00 00 10 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 10 02
-
-result (UNITDATA) = 4
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 10 02
-
-CALLBACK, event 0, msg length 0, bvci 0x1002
-00 00 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 10 02
-
-result (UNITDATA) = 4
-
---- Send message from BSS 1 to SGSN and back, BVCI 2 (should fail) ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 20 02
-
-CALLBACK, event 0, msg length 0, bvci 0x2002
-00 00 20 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x2002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 20 02
-
-result (UNITDATA) = 4
-
-Peers:
- NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 20 02
-
-CALLBACK, event 0, msg length 0, bvci 0x2002
-00 00 20 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x2002, msg length 0 (gprs_ns_sendmsg)
-result (UNITDATA) = -22
-
-Peers:
- NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- NS Transmission error : 1
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN and back, BVCI 3 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 30 02
-
-CALLBACK, event 0, msg length 0, bvci 0x3002
-00 00 30 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x3002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 30 02
-
-result (UNITDATA) = 4
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 30 02
-
-CALLBACK, event 0, msg length 0, bvci 0x3002
-00 00 30 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x3002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 30 02
-
-result (UNITDATA) = 4
-
---- Change NSVCI ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x2001(8193), NSEI 0x2000(8192)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 20 01 04 82 20 00
-
-==> got signal NS_REPLACED: 0x2001/0.0.0.0:0 -> 0x1001/1.2.3.4:1111
-
-==> got signal NS_RESET, NS-VC 0x2001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 20 01 04 82 20 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:1111
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x2000, peer 0x00000000:0
- NS-VC changed NSEI count : 1
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
---- Setup BVCI 1 ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Peers:
- NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- NS Transmission error : 1
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
---- Setup BVCI 4 ---
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x4002(16386)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 40 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 40 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 40 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 40 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 40 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 40 02
-
-result (BVC_RESET_ACK) = 9
-
-Peers:
- NSEI 8192, BVCI 16386, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- NS Transmission error : 1
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN and back, BVCI 1 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 10 02
-
-CALLBACK, event 0, msg length 0, bvci 0x1002
-00 00 10 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 10 02
-
-result (UNITDATA) = 4
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 10 02
-
-CALLBACK, event 0, msg length 0, bvci 0x1002
-00 00 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 10 02
-
-result (UNITDATA) = 4
-
---- Send message from BSS 1 to SGSN and back, BVCI 2 (should fail) ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 20 02
-
-CALLBACK, event 0, msg length 0, bvci 0x2002
-00 00 20 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x2002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 20 02
-
-result (UNITDATA) = 4
-
-Peers:
- NSEI 8192, BVCI 16386, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 2
- NS Transmission error : 1
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 20 02
-
-CALLBACK, event 0, msg length 0, bvci 0x2002
-00 00 20 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x2002, msg length 0 (gprs_ns_sendmsg)
-result (UNITDATA) = -22
-
-Peers:
- NSEI 8192, BVCI 16386, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 2
- NS Transmission error : 2
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN and back, BVCI 3 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 30 02
-
-CALLBACK, event 0, msg length 0, bvci 0x3002
-00 00 30 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x3002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 30 02
-
-result (UNITDATA) = 4
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 30 02
-
-CALLBACK, event 0, msg length 0, bvci 0x3002
-00 00 30 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x3002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 30 02
-
-result (UNITDATA) = 4
-
---- Send message from BSS 1 to SGSN and back, BVCI 4 ---
-
-PROCESSING UNITDATA from 0x01020304:1111
-00 00 40 02
-
-CALLBACK, event 0, msg length 0, bvci 0x4002
-00 00 40 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x4002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 4
-00 00 40 02
-
-result (UNITDATA) = 4
-
-PROCESSING UNITDATA from 0x05060708:32000
-00 00 40 02
-
-CALLBACK, event 0, msg length 0, bvci 0x4002
-00 00 40 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x4002, msg length 0 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 40 02
-
-result (UNITDATA) = 4
-
-Gbproxy global:
-Peers:
- NSEI 8192, BVCI 16386, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
- NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 2
- NS Transmission error : 2
- TLLI-Cache: 0
- NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
- NSEI mismatch : 1
- TLLI-Cache: 0
-=== Test IMSI/TMSI matching ===
-
-=== test_gbproxy_ptmsi_assignment ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Gbproxy global:
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Establish first LLC connection ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 8000dead, IMSI (none), AGE 0
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 8000dead, IMSI (none), AGE 0
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 44
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-result (IDENT RESPONSE) = 44
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 8000dead, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- Attach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/efe2b700 -> 8000dead/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/efe2b700 -> 8000dead/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
---- Establish second LLC connection with the same P-TMSI ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 0d 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 46 42 6e
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 0d 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 46 42 6e
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 0d 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 46 42 6e
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef -> 8000beef, IMSI (none), AGE 0
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef -> 8000beef, IMSI (none), AGE 0
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 11 08 16 08 11 12 99 99 99 16 17 18 bf d2 01
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 11 08 16 08 11 12 99 99 99 16 17 18 bf d2 01
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 44
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 11 08 16 08 11 12 99 99 99 16 17 18 bf d2 01
-
-result (IDENT RESPONSE) = 44
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef -> 8000beef, IMSI 12199999961718, AGE 0
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 3a 6d d4
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 3a 6d d4
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 3a 6d d4
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000beef/efe2b700 -> 8000beef/efe2b700, IMSI 12199999961718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 15 08 03 86 ac 47
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 15 08 03 86 ac 47
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 15 08 03 86 ac 47
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000beef/efe2b700 -> 8000beef/efe2b700, IMSI 12199999961718, AGE 0
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12199999961718, AGE 0
-Gbproxy global:
-=== test_gbproxy_ra_patching ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
-Current NS-VCIs:
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 1
- TLLI-Cache: 0
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-PROCESSING BVC_SUSPEND from 0x01020304:1111
-00 00 00 00 0b 1f 84 cc d1 75 8b 1b 86 11 22 33 40 50 60
-
-CALLBACK, event 0, msg length 15, bvci 0x0000
-00 00 00 00 0b 1f 84 cc d1 75 8b 1b 86 11 22 33 40 50 60
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 15 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 19
-00 00 00 00 0b 1f 84 cc d1 75 8b 1b 86 21 63 54 40 50 60
-
-result (BVC_SUSPEND) = 19
-
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 cc d1 75 8b 1b 86 21 63 54 40 50 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 cc d1 75 8b 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 22
-00 00 00 00 0c 1f 84 cc d1 75 8b 1b 86 11 22 33 40 50 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 22
-
-Gbproxy global:
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 2
- RAID patched (SGSN): 1
- TLLI from SGSN unknown : 1
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN, BVCI 0x1002 ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 11 22 33 40 50 60 75 30 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 11 22 33 40 50 60 75 30 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 21 63 54 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 8e cd 32
-
-result (ATTACH REQUEST) = 79
-
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-result (IDENT REQUEST) = 27
-
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 11 22 33 40 50 60 75 30 00 80 0e 00 11 01 c0 0d 08 16 08 11 12 13 14 15 16 17 18 b7 1b 9a
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 11 22 33 40 50 60 75 30 00 80 0e 00 11 01 c0 0d 08 16 08 11 12 13 14 15 16 17 18 b7 1b 9a
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 44
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 11 01 c0 0d 08 16 08 11 12 13 14 15 16 17 18 b7 1b 9a
-
-result (IDENT RESPONSE) = 44
-
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 11 22 33 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 be 38 c0
-
-result (ATTACH ACCEPT) = 92
-
-PROCESSING ATTACH COMPLETE 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 08 01 c0 11 08 03 ea 67 11
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-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 08 01 c0 11 08 03 ea 67 11
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 08 01 c0 11 08 03 ea 67 11
-
-result (ATTACH COMPLETE) = 35
-
-PROCESSING ACT PDP CTX REQ (REPLACE APN) 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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-CALLBACK, event 0, msg length 76, bvci 0x1002
-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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 81 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 85
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 3a 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 08 03 66 6f 6f 03 62 61 72 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 24 9d 75
-
-result (ACT PDP CTX REQ (REPLACE APN)) = 85
-
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 70
-
-PROCESSING ACT PDP CTX REQ (REPLACE APN) 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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-CALLBACK, event 0, msg length 76, bvci 0x1002
-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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 81 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 85
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 3a 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 08 03 66 6f 6f 03 62 61 72 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 24 9d 75
-
-result (ACT PDP CTX REQ (REPLACE APN)) = 85
-
-PROCESSING ACT PDP CTX REQ (REMOVE APN) 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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-CALLBACK, event 0, msg length 76, bvci 0x1002
-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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 71 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 75
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 30 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 85 fa 60
-
-result (ACT PDP CTX REQ (REMOVE APN)) = 75
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 9
- RAID patched (SGSN): 2
- APN patched : 3
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- PDP Activation Request count : 3
- TLLI from SGSN unknown : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0, IMSI matches
-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
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-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
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 48
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 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
-
-result (DETACH REQ) = 48
-
-PROCESSING DETACH ACC from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 15 08 06 00 f7 35 f0
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 15 08 06 00 f7 35 f0
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 15 08 06 00 f7 35 f0
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 2
- APN patched : 3
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- Detach Request count : 1
- Detach Accept count : 1
- PDP Activation Request count : 3
- TLLI from SGSN unknown : 1
- TLLI-Cache: 0
---- RA update ---
-
-PROCESSING RA UPD REQ from 0x01020304:1111
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 96 3e 97
-
-CALLBACK, event 0, msg length 85, bvci 0x1002
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 96 3e 97
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 85 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 89
-00 00 10 02 01 bb c5 46 79 00 00 04 08 88 21 63 54 40 50 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 21 63 54 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 1d f0 41
-
-result (RA UPD REQ) = 89
-
-PROCESSING RA UPD ACC from 0x05060708:32000
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 19 08 09 00 49 21 63 54 40 50 60 19 54 ab b3 18 05 f4 ef e2 b7 00 17 16 d7 59 65
-
-CALLBACK, event 0, msg length 87, bvci 0x1002
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 19 08 09 00 49 21 63 54 40 50 60 19 54 ab b3 18 05 f4 ef e2 b7 00 17 16 d7 59 65
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 87 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 91
-00 00 10 02 00 bb c5 46 79 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 19 08 09 00 49 11 22 33 40 50 60 19 54 ab b3 18 05 f4 ef e2 b7 00 17 16 3a 03 54
-
-result (RA UPD ACC) = 91
-
-PROCESSING ACT PDP CTX REQ (REMOVE APN) 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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-CALLBACK, event 0, msg length 76, bvci 0x1002
-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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 71 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 75
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 30 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 85 fa 60
-
-result (ACT PDP CTX REQ (REMOVE APN)) = 75
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 13
- RAID patched (SGSN): 3
- APN patched : 4
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- Detach Request count : 1
- Detach Accept count : 1
- PDP Activation Request count : 4
- TLLI from SGSN unknown : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI bbc54679/efe2b700 -> bbc54679/efe2b700, IMSI 12131415161718, AGE 0, IMSI matches
-PROCESSING DETACH REQ (PWR OFF) 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 09 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 84 0c eb
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-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 09 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 84 0c eb
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 48
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 15 01 c0 19 08 05 09 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 84 0c eb
-
-result (DETACH REQ (PWR OFF)) = 48
-
-Gbproxy global:
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 14
- RAID patched (SGSN): 3
- APN patched : 4
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- Detach Request count : 2
- Detach Accept count : 1
- PDP Activation Request count : 4
- TLLI from SGSN unknown : 1
- TLLI-Cache: 0
---- Bad cases ---
-
-PROCESSING ATTACH REQUEST (foreign RAI) from 0x01020304:1111
-00 00 10 02 01 bb 00 be ef 00 00 04 08 88 11 22 33 40 50 60 75 30 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb 00 be ef 99 99 99 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 2d c7 df
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 bb 00 be ef 00 00 04 08 88 11 22 33 40 50 60 75 30 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb 00 be ef 99 99 99 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 2d c7 df
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 bb 00 be ef 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb 00 be ef 99 99 99 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 2d c7 df
-
-result (ATTACH REQUEST (foreign RAI)) = 79
-
-TLLI is already detached, shouldn't patch
-PROCESSING ACT PDP CTX 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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-CALLBACK, event 0, msg length 76, bvci 0x1002
-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 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 76 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 80
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 75 30 00 80 0e 00 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-result (ACT PDP CTX REQ) = 80
-
-Invalid RAI, shouldn't patch
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 cc d1 75 8b 1b 86 00 f1 99 00 63 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 cc d1 75 8b 1b 86 00 f1 99 00 63 60 1d 81 01
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 28
-00 00 00 00 41 07 81 21 15 92 0c 1f 84 cc d1 75 8b 1b 86 00 f1 99 00 63 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 28
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- Patch error: no peer : 1
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 16
- RAID patched (SGSN): 3
- APN patched : 4
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- Detach Request count : 2
- Detach Accept count : 1
- PDP Activation Request count : 5
- TLLI from SGSN unknown : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI efe2b700 -> efe2b700, IMSI (none), AGE 0
- TLLI bb00beef -> bb00beef, IMSI (none), AGE 0
-=== test_gbproxy_ptmsi_patching ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Gbproxy global:
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 1
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN, BVCI 0x1002 ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 78 de ad 00 00 00 04 08 88 21 63 54 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 2
- TLLI patched (BSS ): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI (none), AGE 0
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 2
- TLLI patched (BSS ): 1
- TLLI patched (SGSN): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI (none), AGE 0
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 44
-00 00 10 02 01 78 de ad 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-result (IDENT RESPONSE) = 44
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 11 22 33 40 50 60 19 cd d7 08 17 16 18 05 f4 c0 de ad 01 0c 0a 29
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 2
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 4
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 3
- TLLI patched (SGSN): 2
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 4
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 3
- TLLI patched (SGSN): 3
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ACT PDP CTX REQ (REPLACE APN) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-CALLBACK, event 0, msg length 76, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 35 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 03 02 61 62 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 5a ff 02
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 81 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 85
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 3a 01 c0 0d 0a 41 05 03 0c 00 00 1f 10 00 00 00 00 00 00 00 00 02 01 21 28 08 03 66 6f 6f 03 62 61 72 27 14 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 24 9d 75
-
-result (ACT PDP CTX REQ (REPLACE APN)) = 85
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 5
- RAID patched (SGSN): 1
- APN patched : 1
- TLLI patched (BSS ): 4
- TLLI patched (SGSN): 3
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING XID (UL) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-CALLBACK, event 0, msg length 38, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 38 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 42
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-result (XID (UL)) = 42
-
-PROCESSING XID (DL) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-CALLBACK, event 0, msg length 70, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 70 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 74
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-result (XID (DL)) = 74
-
-PROCESSING LL11 DNS QUERY (UL) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-CALLBACK, event 0, msg length 89, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 89 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 93
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-result (LL11 DNS QUERY (UL)) = 93
-
-PROCESSING LL11 DNS RESP (DL) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-CALLBACK, event 0, msg length 267, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 267 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 271
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-result (LL11 DNS RESP (DL)) = 271
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 7
- RAID patched (SGSN): 1
- APN patched : 1
- TLLI patched (BSS ): 6
- TLLI patched (SGSN): 5
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING RA UPD REQ (P-TMSI 2) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 11 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 e2 6d 78
-
-CALLBACK, event 0, msg length 85, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 11 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 e2 6d 78
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 85 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 89
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 70 80 00 80 0e 00 3e 01 c0 11 08 08 10 21 63 54 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 69 a3 ae
-
-result (RA UPD REQ (P-TMSI 2)) = 89
-
-PROCESSING RA UDP ACC (P-TMSI 2) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 0d 08 09 00 49 21 63 54 40 50 60 19 54 ab b3 18 05 f4 e0 98 76 54 17 16 9f e8 ea
-
-CALLBACK, event 0, msg length 87, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 0d 08 09 00 49 21 63 54 40 50 60 19 54 ab b3 18 05 f4 e0 98 76 54 17 16 9f e8 ea
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 87 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 91
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 0d 08 09 00 49 11 22 33 40 50 60 19 54 ab b3 18 05 f4 c0 de ad 02 17 16 bb 4d a0
-
-result (RA UDP ACC (P-TMSI 2)) = 91
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 9
- RAID patched (SGSN): 2
- APN patched : 1
- TLLI patched (BSS ): 7
- TLLI patched (SGSN): 6
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01/c0dead02 -> efe2b700/e0987654, IMSI 12131415161718, AGE 0
-PROCESSING RA UPD REQ (P-TMSI 3) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 02 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 96 3e 97
-
-CALLBACK, event 0, msg length 85, bvci 0x1002
-00 00 10 02 01 c0 de ad 02 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 96 3e 97
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 85 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 89
-00 00 10 02 01 e0 98 76 54 00 00 04 08 88 21 63 54 40 50 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 21 63 54 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 1d f0 41
-
-result (RA UPD REQ (P-TMSI 3)) = 89
-
-PROCESSING RA UDP ACC (P-TMSI 3) from 0x05060708:32000
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 11 08 09 00 49 21 63 54 40 50 60 19 54 ab b3 18 05 f4 e0 54 32 10 17 16 1b a3 a8
-
-CALLBACK, event 0, msg length 87, bvci 0x1002
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 11 08 09 00 49 21 63 54 40 50 60 19 54 ab b3 18 05 f4 e0 54 32 10 17 16 1b a3 a8
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 87 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 91
-00 00 10 02 00 c0 de ad 02 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 11 08 09 00 49 11 22 33 40 50 60 19 54 ab b3 18 05 f4 c0 de ad 03 17 16 6e 58 26
-
-result (RA UDP ACC (P-TMSI 3)) = 91
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 11
- RAID patched (SGSN): 3
- APN patched : 1
- TLLI patched (BSS ): 8
- TLLI patched (SGSN): 7
- P-TMSI patched (SGSN): 3
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 2
- RoutingArea Update Accept count : 2
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01/c0dead03 -> efe2b700/e0543210, IMSI 12131415161718, AGE 0
-PROCESSING RA UPD COMPLETE from 0x01020304:1111
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 08 01 c0 19 08 0a d5 5f 5e
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 08 01 c0 19 08 0a d5 5f 5e
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 e0 54 32 10 00 00 04 08 88 21 63 54 40 50 60 70 80 00 80 0e 00 08 01 c0 19 08 0a d5 5f 5e
-
-result (RA UPD COMPLETE) = 35
-
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 e0 54 32 10 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 e0 54 32 10 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 c0 de ad 03 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 12
- RAID patched (SGSN): 3
- APN patched : 1
- TLLI patched (BSS ): 9
- TLLI patched (SGSN): 8
- P-TMSI patched (SGSN): 3
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 2
- RoutingArea Update Accept count : 2
- RoutingArea Update Compltd count: 1
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead03 -> e0543210, IMSI 12131415161718, AGE 0
-PROCESSING LLC_DISCARDED from 0x01020304:1111
-00 00 00 00 2c 1f 84 c0 de ad 03 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 c0 de ad 03 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 19 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 23
-00 00 00 00 2c 1f 84 e0 54 32 10 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 23
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 12
- RAID patched (SGSN): 3
- APN patched : 1
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 8
- P-TMSI patched (SGSN): 3
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 2
- RoutingArea Update Accept count : 2
- RoutingArea Update Compltd count: 1
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead03 -> e0543210, IMSI 12131415161718, AGE 0
-PROCESSING BVC_SUSPEND from 0x01020304:1111
-00 00 00 00 0b 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60
-
-CALLBACK, event 0, msg length 15, bvci 0x0000
-00 00 00 00 0b 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 15 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 19
-00 00 00 00 0b 1f 84 e0 54 32 10 1b 86 21 63 54 40 50 60
-
-result (BVC_SUSPEND) = 19
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 13
- RAID patched (SGSN): 3
- APN patched : 1
- TLLI patched (BSS ): 11
- TLLI patched (SGSN): 8
- P-TMSI patched (SGSN): 3
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 2
- RoutingArea Update Accept count : 2
- RoutingArea Update Compltd count: 1
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead03 -> e0543210, IMSI 12131415161718, AGE 0
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 e0 54 32 10 1b 86 21 63 54 40 50 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 e0 54 32 10 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 22
-00 00 00 00 0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 22
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 13
- RAID patched (SGSN): 4
- APN patched : 1
- TLLI patched (BSS ): 11
- TLLI patched (SGSN): 9
- P-TMSI patched (SGSN): 3
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 2
- RoutingArea Update Accept count : 2
- RoutingArea Update Compltd count: 1
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead03 -> e0543210, IMSI 12131415161718, AGE 0
-PROCESSING PAGING_PS from 0x05060708:32000
-00 00 00 00 06 0d 88 11 12 13 14 15 16 17 18 0a 82 07 04 1b 86 11 22 33 40 50 60 18 83 00 00 00 20 84 e0 54 32 10
-
-CALLBACK, event 0, msg length 34, bvci 0x0000
-00 00 00 00 06 0d 88 11 12 13 14 15 16 17 18 0a 82 07 04 1b 86 11 22 33 40 50 60 18 83 00 00 00 20 84 e0 54 32 10
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 34 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 38
-00 00 00 00 06 0d 88 11 12 13 14 15 16 17 18 0a 82 07 04 1b 86 11 22 33 40 50 60 18 83 00 00 00 20 84 c0 de ad 03
-
-result (PAGING_PS) = 38
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 13
- RAID patched (SGSN): 5
- APN patched : 1
- TLLI patched (BSS ): 11
- TLLI patched (SGSN): 9
- P-TMSI patched (SGSN): 4
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 2
- RoutingArea Update Accept count : 2
- RoutingArea Update Compltd count: 1
- PDP Activation Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead03 -> e0543210, IMSI 12131415161718, AGE 0
-PROCESSING LLC_DISCARDED from 0x01020304:1111
-00 00 00 00 2c 1f 84 c0 de ad 03 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 c0 de ad 03 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 19 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 23
-00 00 00 00 2c 1f 84 e0 54 32 10 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 23
-
-Gbproxy global:
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 e0 54 32 10 1b 86 00 f1 99 00 63 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 e0 54 32 10 1b 86 00 f1 99 00 63 60 1d 81 01
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 28
-00 00 00 00 41 07 81 21 15 92 0c 1f 84 e0 54 32 10 1b 86 00 f1 99 00 63 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 28
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- Patch error: no peer : 1
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 e0 54 32 10 1b 86 99 69 54 40 50 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 e0 54 32 10 1b 86 99 69 54 40 50 60 1d 81 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 22
-00 00 00 00 0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 22
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- Patch error: no peer : 1
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ee ba db ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 00 83 00 00 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-CALLBACK, event 0, msg length 58, bvci 0x1002
-00 00 10 02 00 ee ba db ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 00 83 00 00 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 58 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 62
-00 00 10 02 00 ee ba db ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 00 83 00 00 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 62
-
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ee ba db ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 0d 08 21 68 71 6b
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ee ba db ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 0d 08 21 68 71 6b
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 ee ba db ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 0d 08 21 68 71 6b
-
-result (GMM INFO) = 70
-
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 1d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb aa cc a3
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 1d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb aa cc a3
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 48
-00 00 10 02 01 e0 54 32 10 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 15 01 c0 1d 08 05 01 18 05 f4 e0 54 32 10 19 03 b9 97 cb ea 6d af
-
-result (DETACH REQ) = 48
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 14
- RAID patched (SGSN): 6
- APN patched : 1
- TLLI patched (BSS ): 13
- TLLI patched (SGSN): 10
- P-TMSI patched (BSS ): 1
- P-TMSI patched (SGSN): 4
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 2
- RoutingArea Update Accept count : 2
- RoutingArea Update Compltd count: 1
- Detach Request count : 1
- PDP Activation Request count : 1
- TLLI from SGSN unknown : 2
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead03 -> e0543210, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x05060708:32000
-00 00 10 02 00 e0 54 32 10 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 19 08 06 00 04 ff 52
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 e0 54 32 10 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 19 08 06 00 04 ff 52
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 c0 de ad 03 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 19 08 06 00 04 ff 52
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 14
- RAID patched (SGSN): 6
- APN patched : 1
- TLLI patched (BSS ): 13
- TLLI patched (SGSN): 11
- P-TMSI patched (BSS ): 1
- P-TMSI patched (SGSN): 4
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 2
- RoutingArea Update Accept count : 2
- RoutingArea Update Compltd count: 1
- Detach Request count : 1
- Detach Accept count : 1
- PDP Activation Request count : 1
- TLLI from SGSN unknown : 2
- TLLI-Cache: 0
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- Patch error: no peer : 1
-=== test_gbproxy_ptmsi_patching_bad_cases ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Gbproxy global:
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 1
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN, BVCI 0x1002 ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 78 de ad 00 00 00 04 08 88 21 63 54 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 2
- TLLI patched (BSS ): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI (none), AGE 0
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 2
- TLLI patched (BSS ): 1
- TLLI patched (SGSN): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI (none), AGE 0
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 44
-00 00 10 02 01 78 de ad 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-result (IDENT RESPONSE) = 44
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 11 22 33 40 50 60 19 cd d7 08 17 16 18 05 f4 c0 de ad 01 0c 0a 29
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 2
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT (duplicated) from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 09 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 1d 9e 24
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 09 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 1d 9e 24
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 09 08 02 01 49 04 11 22 33 40 50 60 19 cd d7 08 17 16 18 05 f4 c0 de ad 01 42 f6 fc
-
-result (ATTACH ACCEPT (duplicated)) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 3
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 2
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 08 01 c0 09 08 03 39 d7 bc
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 4
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 3
- TLLI patched (SGSN): 3
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 2
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 0d 08 21 68 71 6b
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 0d 08 21 68 71 6b
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 0d 08 21 68 71 6b
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 4
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 3
- TLLI patched (SGSN): 4
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 2
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 0d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 37 67 c6
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 0d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 37 67 c6
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 48
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 15 01 c0 0d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 37 67 c6
-
-result (DETACH REQ) = 48
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 5
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 4
- TLLI patched (SGSN): 4
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 2
- Attach Completed count : 1
- Detach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 11 08 06 00 cf 8a 58
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 11 08 06 00 cf 8a 58
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 11 08 06 00 cf 8a 58
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 5
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 4
- TLLI patched (SGSN): 5
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 2
- Attach Completed count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI-Cache: 0
-Gbproxy global:
-=== test_gbproxy_imsi_acquisition ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Gbproxy global:
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 1
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN, BVCI 0x1002 ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 78 de ad 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 21 63 54 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 8e cd 32
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- TLLI patched (BSS ): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI 12131415161718, AGE 0
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- TLLI patched (BSS ): 1
- TLLI patched (SGSN): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI 12131415161718, AGE 0
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 44
-00 00 10 02 01 78 de ad 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-result (IDENT RESPONSE) = 44
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 4
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 11 22 33 40 50 60 19 cd d7 08 17 16 18 05 f4 c0 de ad 01 0c 0a 29
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 4
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 2
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 5
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 3
- TLLI patched (SGSN): 2
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 5
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 3
- TLLI patched (SGSN): 3
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING XID (UL) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-CALLBACK, event 0, msg length 38, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 38 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 42
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-result (XID (UL)) = 42
-
-PROCESSING XID (DL) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-CALLBACK, event 0, msg length 70, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 70 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 74
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-result (XID (DL)) = 74
-
-PROCESSING LL11 DNS QUERY (UL) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-CALLBACK, event 0, msg length 89, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 89 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 93
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-result (LL11 DNS QUERY (UL)) = 93
-
-PROCESSING LL11 DNS RESP (DL) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-CALLBACK, event 0, msg length 267, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 267 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 271
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-result (LL11 DNS RESP (DL)) = 271
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 7
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 5
- TLLI patched (SGSN): 5
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING LLC_DISCARDED from 0x01020304:1111
-00 00 00 00 2c 1f 84 c0 de ad 01 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 c0 de ad 01 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 19 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 23
-00 00 00 00 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 23
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 7
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 6
- TLLI patched (SGSN): 5
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING LLC_DISCARDED from 0x05060708:32000
-00 00 00 00 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 25 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 29
-00 00 00 00 41 07 81 27 15 93 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 29
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 7
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 6
- TLLI patched (SGSN): 6
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING BVC_SUSPEND from 0x01020304:1111
-00 00 00 00 0b 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60
-
-CALLBACK, event 0, msg length 15, bvci 0x0000
-00 00 00 00 0b 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 15 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 19
-00 00 00 00 0b 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60
-
-result (BVC_SUSPEND) = 19
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 8
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 7
- TLLI patched (SGSN): 6
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 22
-00 00 00 00 0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 22
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 8
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 7
- TLLI patched (SGSN): 7
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING LLC_DISCARDED from 0x01020304:1111
-00 00 00 00 2c 1f 84 c0 de ad 01 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 c0 de ad 01 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 19 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 23
-00 00 00 00 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 23
-
-Gbproxy global:
- BSSGP protocol error (SGSN): 1
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 ef e2 b7 00 1b 86 00 f1 99 00 63 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 ef e2 b7 00 1b 86 00 f1 99 00 63 60 1d 81 01
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 28
-00 00 00 00 41 07 81 21 15 92 0c 1f 84 ef e2 b7 00 1b 86 00 f1 99 00 63 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 28
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- BSSGP protocol error (SGSN): 1
- Patch error: no peer : 1
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 ef e2 b7 00 1b 86 99 69 54 40 50 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 ef e2 b7 00 1b 86 99 69 54 40 50 60 1d 81 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 22
-00 00 00 00 0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 22
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- BSSGP protocol error (SGSN): 1
- Patch error: no peer : 1
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 11 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 6d b1 de
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 11 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 6d b1 de
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 48
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 15 01 c0 11 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 6d b1 de
-
-result (DETACH REQ) = 48
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 9
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 9
- TLLI patched (SGSN): 8
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- Detach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 0d 08 06 00 aa ab ee
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 0d 08 06 00 aa ab ee
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 0d 08 06 00 aa ab ee
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 9
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 9
- TLLI patched (SGSN): 9
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI-Cache: 0
-PROCESSING RA UPD REQ from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 96 3e 97
-
-CALLBACK, event 0, msg length 85, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 96 3e 97
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (RA UPD REQ) = 0
-
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 19 08 16 08 11 12 13 14 15 16 17 18 35 23 fc
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 19 08 16 08 11 12 13 14 15 16 17 18 35 23 fc
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 85 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 89
-00 00 10 02 01 78 de ad 02 00 00 04 08 88 21 63 54 00 63 60 70 80 00 80 0e 00 3e 01 c0 15 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 96 3e 97
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 9
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead02, IMSI 12131415161718, AGE 0
-PROCESSING RA UDP ACC from 0x05060708:32000
-00 00 10 02 00 78 de ad 02 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 11 08 09 00 49 21 63 54 40 50 60 19 54 ab b3 18 05 f4 ef e2 b7 00 17 16 36 98 77
-
-CALLBACK, event 0, msg length 87, bvci 0x1002
-00 00 10 02 00 78 de ad 02 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 11 08 09 00 49 21 63 54 40 50 60 19 54 ab b3 18 05 f4 ef e2 b7 00 17 16 36 98 77
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 87 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 91
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9d 41 c0 11 08 09 00 49 11 22 33 40 50 60 19 54 ab b3 18 05 f4 c0 de ad 03 17 16 6e 58 26
-
-result (RA UDP ACC) = 91
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 10
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead03 -> 78dead02/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 1d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb aa cc a3
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 1d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb aa cc a3
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 06 00 11 f5 c0
-
-result (DETACH REQ) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 10
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- Detach Request count : 2
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead03 -> 78dead02/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 15 08 06 00 f7 35 f0
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 15 08 06 00 f7 35 f0
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 c0 de ad 03 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 15 08 06 00 f7 35 f0
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 11
- P-TMSI patched (SGSN): 2
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- Detach Request count : 2
- Detach Accept count : 2
- TLLI-Cache: 0
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 21 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 44 b6 bb
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 21 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 44 b6 bb
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 25 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 1d aa 57
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 25 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 1d aa 57
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 15 01 8f 47 9e
-
-result (ATTACH REQUEST) = 0
-
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 29 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb d9 1d ef
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 29 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb d9 1d ef
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 09 08 06 00 da 80 ca
-
-result (DETACH REQ) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 11
- P-TMSI patched (SGSN): 2
- Attach Request count : 3
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- Detach Request count : 3
- Detach Accept count : 2
- TLLI-Cache: 0
-PROCESSING DETACH REQ (unknown TLLI) from 0x01020304:1111
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 2d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 0d 30 0d
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 2d 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 0d 30 0d
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 06 00 11 f5 c0
-
-result (DETACH REQ (unknown TLLI)) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 11
- P-TMSI patched (SGSN): 2
- Attach Request count : 3
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 1
- RoutingArea Update Accept count : 1
- Detach Request count : 4
- Detach Accept count : 2
- TLLI-Cache: 0
-PROCESSING RA UPD REQ from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 70 80 00 80 0e 00 3e 01 c0 31 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 d8 cf d8
-
-CALLBACK, event 0, msg length 85, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 70 80 00 80 0e 00 3e 01 c0 31 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 d8 cf d8
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (RA UPD REQ) = 0
-
-PROCESSING RA UPD REQ from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 70 80 00 80 0e 00 3e 01 c0 35 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 ac 9c 37
-
-CALLBACK, event 0, msg length 85, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 70 80 00 80 0e 00 3e 01 c0 35 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 ac 9c 37
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 15 01 8f 47 9e
-
-result (RA UPD REQ) = 0
-
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 39 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 44 b6 8a
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 39 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 44 b6 8a
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 09 08 06 00 da 80 ca
-
-result (DETACH REQ) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 11
- P-TMSI patched (SGSN): 2
- Attach Request count : 3
- Attach Accept count : 1
- Attach Completed count : 1
- RoutingArea Update Request count: 3
- RoutingArea Update Accept count : 1
- Detach Request count : 5
- Detach Accept count : 2
- TLLI-Cache: 0
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- BSSGP protocol error (SGSN): 1
- Patch error: no peer : 1
-=== test_gbproxy_secondary_sgsn ===
---- Initialise SGSN 1 ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
---- Initialise SGSN 2 ---
-
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 12
-02 00 81 01 01 82 01 03 04 82 01 02
-
-PROCESSING RESET_ACK from 0x15161718:32001
-03 01 82 01 03 04 82 01 02
-
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x15161718:32001
-0b
-
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x15161718:32001
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0103/21.22.23.24:32001
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x15161718:32001
-0a
-
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 1
-0b
-
-result (ALIVE) = 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x0000(0)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 00 00
-
-result (BVC_RESET) = 9
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 00 00
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 00 00
-
-result (BVC_RESET_ACK) = -2
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-PROCESSING BVC_RESET_ACK from 0x15161718:32001
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 1
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0103, NSEI 0x0102, peer 0x15161718:32001
- NS-VC Block count : 1
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Gbproxy global:
- Invalid BVC Identifier : 1
- Patch error: no peer : 1
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 1
- TLLI-Cache: 0
---- Flow control ---
-
-PROCESSING FLOW_CONTROL_BVC from 0x01020304:1111
-00 00 10 02 26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-CALLBACK, event 0, msg length 24, bvci 0x1002
-00 00 10 02 26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 28
-00 00 10 02 26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 28
-00 00 10 02 26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-result (FLOW_CONTROL_BVC) = 28
-
-PROCESSING FLOW_CONTROL_BVC_ACK from 0x05060708:32000
-00 00 10 02 27 1e 81 01
-
-CALLBACK, event 0, msg length 4, bvci 0x1002
-00 00 10 02 27 1e 81 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 4 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 8
-00 00 10 02 27 1e 81 01
-
-result (FLOW_CONTROL_BVC_ACK) = 8
-
-PROCESSING FLOW_CONTROL_BVC_ACK from 0x15161718:32001
-00 00 10 02 27 1e 81 01
-
-CALLBACK, event 0, msg length 4, bvci 0x1002
-00 00 10 02 27 1e 81 01
-
-result (FLOW_CONTROL_BVC_ACK) = 0
-
---- Establish GPRS connection (SGSN 1) ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress, SGSN NSEI 65535
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 78 de ad 00 00 00 04 08 88 21 63 54 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 2
- TLLI patched (BSS ): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 2
- TLLI patched (BSS ): 1
- TLLI patched (SGSN): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 44
-00 00 10 02 01 78 de ad 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-result (IDENT RESPONSE) = 44
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 1
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 78dead00, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 78 de ad 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 11 22 33 40 50 60 19 cd d7 08 17 16 18 05 f4 c0 de ad 01 0c 0a 29
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 3
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 2
- TLLI patched (SGSN): 2
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 4
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 3
- TLLI patched (SGSN): 2
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead/c0dead01 -> 78dead00/efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 4
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 3
- TLLI patched (SGSN): 3
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING XID (UL) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-CALLBACK, event 0, msg length 38, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 38 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 42
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-result (XID (UL)) = 42
-
-PROCESSING XID (DL) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-CALLBACK, event 0, msg length 70, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 70 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 74
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-result (XID (DL)) = 74
-
-PROCESSING LL11 DNS QUERY (UL) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-CALLBACK, event 0, msg length 89, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 89 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 93
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-result (LL11 DNS QUERY (UL)) = 93
-
-PROCESSING LL11 DNS RESP (DL) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-CALLBACK, event 0, msg length 267, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 267 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 271
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-result (LL11 DNS RESP (DL)) = 271
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 6
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 5
- TLLI patched (SGSN): 5
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING LLC_DISCARDED from 0x01020304:1111
-00 00 00 00 2c 1f 84 c0 de ad 01 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 c0 de ad 01 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 19 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 23
-00 00 00 00 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 23
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 6
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 6
- TLLI patched (SGSN): 5
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING LLC_DISCARDED from 0x05060708:32000
-00 00 00 00 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 25 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 29
-00 00 00 00 41 07 81 27 15 93 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 29
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 6
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 6
- TLLI patched (SGSN): 6
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING BVC_SUSPEND from 0x01020304:1111
-00 00 00 00 0b 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60
-
-CALLBACK, event 0, msg length 15, bvci 0x0000
-00 00 00 00 0b 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 15 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 19
-00 00 00 00 0b 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60
-
-result (BVC_SUSPEND) = 19
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 7
- RAID patched (SGSN): 1
- TLLI patched (BSS ): 7
- TLLI patched (SGSN): 6
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING BVC_SUSPEND_ACK from 0x05060708:32000
-00 00 00 00 0c 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 22
-00 00 00 00 0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 22
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 7
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 7
- TLLI patched (SGSN): 7
- P-TMSI patched (SGSN): 1
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
---- Establish GPRS connection (SGSN 2) ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 11 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 bf 00 5c
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 11 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 bf 00 5c
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 7
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 7
- TLLI patched (SGSN): 7
- P-TMSI patched (SGSN): 1
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef -> 78dead02, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress, SGSN NSEI 65535
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 15 08 16 08 11 12 99 99 99 16 17 18 b2 dd 58
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 15 08 16 08 11 12 99 99 99 16 17 18 b2 dd 58
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 79
-00 00 10 02 01 78 de ad 02 00 00 04 08 88 21 63 54 00 63 60 12 34 00 80 0e 00 34 01 c0 11 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 bf 00 5c
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 8
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 8
- TLLI patched (SGSN): 7
- P-TMSI patched (SGSN): 1
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef -> 78dead02, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING IDENT REQUEST from 0x15161718:32001
-00 00 10 02 00 78 de ad 02 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 78 de ad 02 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 8
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 8
- TLLI patched (SGSN): 8
- P-TMSI patched (SGSN): 1
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef -> 78dead02, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 19 08 16 08 11 12 99 99 99 16 17 18 a5 cc b3
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 be ef 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 19 08 16 08 11 12 99 99 99 16 17 18 a5 cc b3
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 44
-00 00 10 02 01 78 de ad 02 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 11 01 c0 19 08 16 08 11 12 99 99 99 16 17 18 a5 cc b3
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 9
- RAID patched (SGSN): 2
- TLLI patched (BSS ): 9
- TLLI patched (SGSN): 8
- P-TMSI patched (SGSN): 1
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef -> 78dead02, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING ATTACH ACCEPT from 0x15161718:32001
-00 00 10 02 00 78 de ad 02 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 e0 98 76 54 cb 1c 5b
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 78 de ad 02 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 e0 98 76 54 cb 1c 5b
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 be ef 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 11 22 33 40 50 60 19 cd d7 08 17 16 18 05 f4 c0 de ad 03 32 40 fa
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 9
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 9
- TLLI patched (SGSN): 9
- P-TMSI patched (SGSN): 2
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef/c0dead03 -> 78dead02/e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 1d 08 03 5e 3a ea
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 1d 08 03 5e 3a ea
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 35
-00 00 10 02 01 e0 98 76 54 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 08 01 c0 1d 08 03 5e 3a ea
-
-result (ATTACH COMPLETE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 9
- P-TMSI patched (SGSN): 2
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI 8000beef/c0dead03 -> 78dead02/e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING GMM INFO from 0x15161718:32001
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 c0 de ad 03 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 10
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 10
- TLLI patched (SGSN): 10
- P-TMSI patched (SGSN): 2
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING XID (UL) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-CALLBACK, event 0, msg length 38, bvci 0x1002
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 38 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 42
-00 00 10 02 01 e0 98 76 54 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 0f 41 fb 01 00 0e 00 64 11 05 16 01 90 66 b3 28
-
-result (XID (UL)) = 0
-
-PROCESSING XID (DL) from 0x15161718:32001
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-CALLBACK, event 0, msg length 70, bvci 0x1002
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 70 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 74
-00 00 10 02 00 c0 de ad 03 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-result (XID (DL)) = 74
-
-PROCESSING LL11 DNS QUERY (UL) from 0x01020304:1111
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-CALLBACK, event 0, msg length 89, bvci 0x1002
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 89 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 93
-00 00 10 02 01 e0 98 76 54 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 42 0b c0 01 65 00 00 00 45 00 00 38 95 72 00 00 45 11 20 85 0a c0 07 e4 ac 10 01 0a ad ab 00 35 00 24 0e 1c 3b e0 01 00 00 01 00 00 00 00 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 47 8f 07
-
-result (LL11 DNS QUERY (UL)) = 0
-
-PROCESSING LL11 DNS RESP (DL) from 0x15161718:32001
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-CALLBACK, event 0, msg length 267, bvci 0x1002
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 267 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 271
-00 00 10 02 00 c0 de ad 03 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 00 d0 4b c0 01 65 00 00 00 45 00 00 c6 00 00 40 00 3e 11 7c 69 ac 10 01 0a 0a c0 07 e4 00 35 ad ab 00 b2 74 4e 3b e0 81 80 00 01 00 01 00 05 00 00 01 6d 05 68 65 69 73 65 02 64 65 00 00 01 00 01 c0 0c 00 01 00 01 00 00 0e 10 00 04 c1 63 90 58 c0 0e 00 02 00 01 00 00 0e 10 00 16 03 6e 73 32 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 03 6e 65 74 00 c0 0e 00 02 00 01 00 00 0e 10 00 10 02 6e 73 01 73 08 70 6c 75 73 6c 69 6e 65 c0 14 c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 0e c0 0e 00 02 00 01 00 00 0e 10 00 05 02 6e 73 c0 5f c0 0e 00 02 00 01 00 00 0e 10 00 12 02 6e 73 0c 70 6f 70 2d 68 61 6e 6e 6f 76 65 72 c0 14 aa df 31
-
-result (LL11 DNS RESP (DL)) = 271
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 12
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 12
- TLLI patched (SGSN): 12
- P-TMSI patched (SGSN): 2
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING LLC_DISCARDED from 0x01020304:1111
-00 00 00 00 2c 1f 84 c0 de ad 03 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 c0 de ad 03 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x0000, msg length 19 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 23
-00 00 00 00 2c 1f 84 e0 98 76 54 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 12
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 13
- TLLI patched (SGSN): 12
- P-TMSI patched (SGSN): 2
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING LLC_DISCARDED from 0x15161718:32001
-00 00 00 00 2c 1f 84 e0 98 76 54 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-CALLBACK, event 0, msg length 19, bvci 0x0000
-00 00 00 00 2c 1f 84 e0 98 76 54 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x0000, msg length 25 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 29
-00 00 00 00 41 07 81 27 15 93 2c 1f 84 e0 98 76 54 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-result (LLC_DISCARDED) = 29
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 12
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 13
- TLLI patched (SGSN): 13
- P-TMSI patched (SGSN): 2
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING BVC_SUSPEND from 0x01020304:1111
-00 00 00 00 0b 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60
-
-CALLBACK, event 0, msg length 15, bvci 0x0000
-00 00 00 00 0b 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x0000, msg length 15 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 19
-00 00 00 00 0b 1f 84 e0 98 76 54 1b 86 21 63 54 40 50 60
-
-result (BVC_SUSPEND) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 13
- RAID patched (SGSN): 3
- TLLI patched (BSS ): 14
- TLLI patched (SGSN): 13
- P-TMSI patched (SGSN): 2
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING BVC_SUSPEND_ACK from 0x15161718:32001
-00 00 00 00 0c 1f 84 e0 98 76 54 1b 86 21 63 54 40 50 60 1d 81 01
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 0c 1f 84 e0 98 76 54 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 22
-00 00 00 00 0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-result (BVC_SUSPEND_ACK) = 22
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 13
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 14
- TLLI patched (SGSN): 14
- P-TMSI patched (SGSN): 2
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
---- Establish GPRS connection (SGSN 2, P-TMSI collision) ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 fe ed 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 21 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 44 b6 bb
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 fe ed 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 21 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 44 b6 bb
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 fe ed 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 13
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 14
- TLLI patched (SGSN): 14
- P-TMSI patched (SGSN): 2
- Attach Request count : 3
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI 8000feed -> 78dead04, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress, SGSN NSEI 65535
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 fe ed 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 25 08 16 08 11 12 99 99 99 26 27 28 58 c7 cb
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 fe ed 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 25 08 16 08 11 12 99 99 99 26 27 28 58 c7 cb
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 79
-00 00 10 02 01 78 de ad 04 00 00 04 08 88 21 63 54 00 63 60 12 34 00 80 0e 00 34 01 c0 21 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 44 b6 bb
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 14
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 15
- TLLI patched (SGSN): 14
- P-TMSI patched (SGSN): 2
- Attach Request count : 3
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI 8000feed -> 78dead04, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING IDENT REQUEST from 0x15161718:32001
-00 00 10 02 00 78 de ad 04 00 50 20 16 82 02 58 0e 89 41 c0 19 08 15 01 a2 f2 a4
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 78 de ad 04 00 50 20 16 82 02 58 0e 89 41 c0 19 08 15 01 a2 f2 a4
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 fe ed 00 50 20 16 82 02 58 0e 89 41 c0 19 08 15 01 a2 f2 a4
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 14
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 15
- TLLI patched (SGSN): 15
- P-TMSI patched (SGSN): 2
- Attach Request count : 3
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI 8000feed -> 78dead04, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 fe ed 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 29 08 16 08 11 12 99 99 99 26 27 28 4f d6 20
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 fe ed 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 29 08 16 08 11 12 99 99 99 26 27 28 4f d6 20
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 44
-00 00 10 02 01 78 de ad 04 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 11 01 c0 29 08 16 08 11 12 99 99 99 26 27 28 4f d6 20
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 15
- RAID patched (SGSN): 4
- TLLI patched (BSS ): 16
- TLLI patched (SGSN): 15
- P-TMSI patched (SGSN): 2
- Attach Request count : 3
- Attach Accept count : 2
- Attach Completed count : 2
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI 8000feed -> 78dead04, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING ATTACH ACCEPT (P-TMSI 1) from 0x15161718:32001
-00 00 10 02 00 78 de ad 04 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 9e 41 c0 1d 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 74 91 01
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 78 de ad 04 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 9e 41 c0 1d 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 74 91 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 80 00 fe ed 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 9e 41 c0 1d 08 02 01 49 04 11 22 33 40 50 60 19 cd d7 08 17 16 18 05 f4 c0 de ad 05 3e 78 6e
-
-result (ATTACH ACCEPT (P-TMSI 1)) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 15
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 16
- TLLI patched (SGSN): 16
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 2
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI 8000feed/c0dead05 -> 78dead04/efe2b700, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 c0 de ad 05 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 2d 08 03 43 50 ea
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 c0 de ad 05 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 2d 08 03 43 50 ea
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 08 01 c0 2d 08 03 43 50 ea
-
-result (ATTACH COMPLETE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 16
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 17
- TLLI patched (SGSN): 16
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI 8000feed/c0dead05 -> 78dead04/efe2b700, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
-PROCESSING GMM INFO from 0x15161718:32001
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 88 41 c0 21 08 21 ca 60 90
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 88 41 c0 21 08 21 ca 60 90
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 c0 de ad 05 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 88 41 c0 21 08 21 ca 60 90
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 16
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 17
- TLLI patched (SGSN): 17
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI c0dead05 -> efe2b700, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
---- Shutdown GPRS connection (SGSN 1) ---
-
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 31 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 57 e6 15
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 c0 de ad 01 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 31 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 57 e6 15
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 48
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 15 01 c0 31 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 57 e6 15
-
-result (DETACH REQ) = 48
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 17
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 18
- TLLI patched (SGSN): 17
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 1
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI c0dead01 -> efe2b700, IMSI 12131415161718, AGE 0, SGSN NSEI 256
- TLLI c0dead05 -> efe2b700, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
-PROCESSING DETACH ACC from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 25 08 06 00 4d 09 cd
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 25 08 06 00 4d 09 cd
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 c0 de ad 01 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 25 08 06 00 4d 09 cd
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 17
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 18
- TLLI patched (SGSN): 18
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI c0dead05 -> efe2b700, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
---- Shutdown GPRS connection (SGSN 2) ---
-
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 35 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 83 cb f7
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 c0 de ad 03 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 35 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 83 cb f7
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 48
-00 00 10 02 01 e0 98 76 54 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 15 01 c0 35 08 05 01 18 05 f4 e0 98 76 54 19 03 b9 97 cb b4 31 31
-
-result (DETACH REQ) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 18
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 19
- TLLI patched (SGSN): 18
- P-TMSI patched (BSS ): 1
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 2
- Detach Accept count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI c0dead03 -> e0987654, IMSI 12199999961718, AGE 0, IMSI matches, SGSN NSEI 258
- TLLI c0dead05 -> efe2b700, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
-PROCESSING DETACH ACC from 0x15161718:32001
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 89 41 c0 29 08 06 00 be c3 6f
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 e0 98 76 54 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 89 41 c0 29 08 06 00 be c3 6f
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 c0 de ad 03 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 16 17 18 00 81 00 0e 89 41 c0 29 08 06 00 be c3 6f
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 18
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 19
- TLLI patched (SGSN): 19
- P-TMSI patched (BSS ): 1
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 2
- Detach Accept count : 2
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead05 -> efe2b700, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
---- Shutdown GPRS connection (SGSN 2, P-TMSI 1) ---
-
-PROCESSING DETACH REQ from 0x01020304:1111
-00 00 10 02 01 c0 de ad 05 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 39 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 44 b6 8a
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 c0 de ad 05 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 39 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 44 b6 8a
-
-NS UNITDATA MESSAGE to SGSN 2, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 48
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 21 63 54 40 50 60 12 34 00 80 0e 00 15 01 c0 39 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 44 b6 8a
-
-result (DETACH REQ) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 19
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 20
- TLLI patched (SGSN): 19
- P-TMSI patched (BSS ): 1
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 3
- Detach Accept count : 2
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0dead05 -> efe2b700, IMSI 12199999962728, AGE 0, IMSI matches, SGSN NSEI 258
-PROCESSING DETACH ACC from 0x15161718:32001
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 89 41 c0 2d 08 06 00 86 7c c7
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 89 41 c0 2d 08 06 00 86 7c c7
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 c0 de ad 05 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 99 99 99 26 27 28 00 81 00 0e 89 41 c0 2d 08 06 00 86 7c c7
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 19
- RAID patched (SGSN): 5
- TLLI patched (BSS ): 20
- TLLI patched (SGSN): 20
- P-TMSI patched (BSS ): 1
- P-TMSI patched (SGSN): 3
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 3
- Detach Accept count : 3
- TLLI-Cache: 0
-Gbproxy global:
- Invalid BVC Identifier : 1
- BSSGP protocol error (SGSN): 2
- Patch error: no peer : 1
-=== test_gbproxy_keep_info ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Gbproxy global:
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Send message from BSS 1 to SGSN, BVCI 0x1002 ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 05 08 16 08 11 12 13 14 15 16 17 18 ad 05 28
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 40 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 44
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-result (IDENT RESPONSE) = 44
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 05 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 53 62 f1
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- Attach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 0d 08 03 55 1c ea
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 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 12 34 00 80 0e 00 15 01 c0 11 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 6d b1 de
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 11 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 6d b1 de
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 44 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 48
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 11 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 6d b1 de
-
-result (DETACH REQ) = 48
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- Detach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 0d 08 06 00 aa ab ee
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 0d 08 06 00 aa ab ee
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 0d 08 06 00 aa ab ee
-
-result (DETACH ACC) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- Attach Accept count : 1
- Attach Completed count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 15 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e6 71 c7
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 15 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e6 71 c7
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 15 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e6 71 c7
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 1
- Attach Completed count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 3a 6d d4
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 3a 6d d4
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 11 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 3a 6d d4
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 19 08 03 32 f1 bc
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 19 08 03 32 f1 bc
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 19 08 03 32 f1 bc
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ (re-attach) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 15 08 05 01 25 0a 67 0e 96
-
-CALLBACK, event 0, msg length 69, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 15 08 05 01 25 0a 67 0e 96
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 69 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 73
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 15 08 05 01 25 0a 67 0e 96
-
-result (DETACH REQ (re-attach)) = 73
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 1d 08 06 3d 1c 8b
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 1d 08 06 3d 1c 8b
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 1d 08 06 3d 1c 8b
-
-result (DETACH ACC) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 2
- Attach Accept count : 2
- Attach Completed count : 2
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 21 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 44 db cc
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 21 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 44 db cc
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 21 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 44 db cc
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 3
- Attach Accept count : 2
- Attach Completed count : 2
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 19 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 27 3c 84
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 19 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 27 3c 84
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 19 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 27 3c 84
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 2
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 25 08 03 9b c6 47
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 25 08 03 9b c6 47
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 25 08 03 9b c6 47
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 1d 08 05 02 25 0a dd 56 6c
-
-CALLBACK, event 0, msg length 69, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 1d 08 05 02 25 0a dd 56 6c
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 69 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 73
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 1d 08 05 02 25 0a dd 56 6c
-
-result (DETACH REQ) = 73
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 29 08 06 4c bd dd
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 29 08 06 4c bd dd
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 29 08 06 4c bd dd
-
-result (DETACH ACC) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 3
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST (IMSI) from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 37 01 c0 2d 08 01 02 f5 e0 21 08 02 08 11 12 13 14 15 16 17 18 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 a5 85 76
-
-CALLBACK, event 0, msg length 78, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 37 01 c0 2d 08 01 02 f5 e0 21 08 02 08 11 12 13 14 15 16 17 18 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 a5 85 76
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 78 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 82
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 37 01 c0 2d 08 01 02 f5 e0 21 08 02 08 11 12 13 14 15 16 17 18 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 a5 85 76
-
-result (ATTACH REQUEST (IMSI)) = 82
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 4
- Attach Accept count : 3
- Attach Completed count : 3
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 21 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 cf 80 6e
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 21 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 cf 80 6e
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 21 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 cf 80 6e
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 4
- Attach Accept count : 4
- Attach Completed count : 3
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 31 08 03 fc 2b 11
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 31 08 03 fc 2b 11
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 31 08 03 fc 2b 11
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 4
- Attach Accept count : 4
- Attach Completed count : 4
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 25 08 05 02 25 0a 8e ee 85
-
-CALLBACK, event 0, msg length 69, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 25 08 05 02 25 0a 8e ee 85
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 69 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 73
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 25 08 05 02 25 0a 8e ee 85
-
-result (DETACH REQ) = 73
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 4
- Attach Accept count : 4
- Attach Completed count : 4
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 35 08 06 f3 c6 26
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 35 08 06 f3 c6 26
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 35 08 06 f3 c6 26
-
-result (DETACH ACC) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 4
- Attach Accept count : 4
- Attach Completed count : 4
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 39 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e4 85 12
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 39 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e4 85 12
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 39 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e4 85 12
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 5
- Attach Accept count : 4
- Attach Completed count : 4
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 29 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 d2 d1 3e
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 29 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 d2 d1 3e
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 29 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 d2 d1 3e
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 5
- Attach Accept count : 5
- Attach Completed count : 4
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 3d 08 03 48 76 ea
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 3d 08 03 48 76 ea
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 3d 08 03 48 76 ea
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 5
- Attach Accept count : 5
- Attach Completed count : 5
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING RA UPD REQ from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 41 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 30 73 32
-
-CALLBACK, event 0, msg length 85, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 41 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 30 73 32
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 85 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 89
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 70 80 00 80 0e 00 3e 01 c0 41 08 08 10 11 22 33 40 50 60 1d 19 13 42 33 57 2b f7 c8 48 02 13 48 50 c8 48 02 14 48 50 c8 48 02 17 49 10 c8 48 02 00 19 8b b2 92 17 16 27 07 04 31 02 e5 e0 32 02 20 00 30 73 32
-
-result (RA UPD REQ) = 89
-
-PROCESSING RA UDP REJ from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8a 41 c0 2d 08 0b 0a 00 41 30 a7
-
-CALLBACK, event 0, msg length 68, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8a 41 c0 2d 08 0b 0a 00 41 30 a7
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 68 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 72
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8a 41 c0 2d 08 0b 0a 00 41 30 a7
-
-result (RA UDP REJ) = 72
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 5
- Attach Accept count : 5
- Attach Completed count : 5
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 45 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 50 cc c3
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 45 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 50 cc c3
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 6
- Attach Accept count : 5
- Attach Completed count : 5
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 2
- TLLI-Cache: 2
- TLLI afe2b700 -> afe2b700, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 49 08 16 08 11 12 13 14 15 16 17 18 86 ca 3f
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 49 08 16 08 11 12 13 14 15 16 17 18 86 ca 3f
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 45 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 50 cc c3
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 6
- Attach Accept count : 5
- Attach Completed count : 5
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 31 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 f5 22 ce
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 31 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 f5 22 ce
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 31 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 f5 22 ce
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 6
- Attach Accept count : 6
- Attach Completed count : 5
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 4d 08 03 79 84 ea
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 4d 08 03 79 84 ea
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 4d 08 03 79 84 ea
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 6
- Attach Accept count : 6
- Attach Completed count : 6
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 35 08 05 02 25 0a 9b fa 57
-
-CALLBACK, event 0, msg length 69, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 35 08 05 02 25 0a 9b fa 57
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 69 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 73
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 35 08 05 02 25 0a 9b fa 57
-
-result (DETACH REQ) = 73
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 6
- Attach Accept count : 6
- Attach Completed count : 6
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 51 08 06 a5 d9 70
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 51 08 06 a5 d9 70
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 51 08 06 a5 d9 70
-
-result (DETACH ACC) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 6
- Attach Accept count : 6
- Attach Completed count : 6
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST (local TLLI) from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 55 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 f9 cc e9
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 55 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 f9 cc e9
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 55 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 f9 cc e9
-
-result (ATTACH REQUEST (local TLLI)) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 7
- Attach Accept count : 6
- Attach Completed count : 6
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 39 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 e8 73 9e
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 39 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 e8 73 9e
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 39 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 e8 73 9e
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 7
- Attach Accept count : 7
- Attach Completed count : 6
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 59 08 03 1e 69 bc
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 59 08 03 1e 69 bc
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 59 08 03 1e 69 bc
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 7
- Attach Accept count : 7
- Attach Completed count : 7
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ (re-attach) from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 3d 08 05 01 25 0a 21 a2 ad
-
-CALLBACK, event 0, msg length 69, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 3d 08 05 01 25 0a 21 a2 ad
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 69 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 73
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 3d 08 05 01 25 0a 21 a2 ad
-
-result (DETACH REQ (re-attach)) = 73
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 7
- Attach Accept count : 7
- Attach Completed count : 7
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 5d 08 06 11 84 8b
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 5d 08 06 11 84 8b
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 5d 08 06 11 84 8b
-
-result (DETACH ACC) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 7
- Attach Accept count : 7
- Attach Completed count : 7
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 61 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 5b 66 e2
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 61 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 5b 66 e2
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 61 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 5b 66 e2
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 8
- Attach Accept count : 7
- Attach Completed count : 7
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 41 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 9e 50 40
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 41 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 9e 50 40
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 41 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 9e 50 40
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 8
- Attach Accept count : 8
- Attach Completed count : 7
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 65 08 03 b7 5e 47
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 65 08 03 b7 5e 47
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 65 08 03 b7 5e 47
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 8
- Attach Accept count : 8
- Attach Completed count : 8
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 45 08 21 9c 7f c6
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 45 08 21 9c 7f c6
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 45 08 21 9c 7f c6
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 8
- Attach Accept count : 8
- Attach Completed count : 8
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH REQUEST (unexpected, IMSI) from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 37 01 c0 69 08 01 02 f5 e0 21 08 02 08 11 12 13 14 15 16 17 18 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e1 11 8e
-
-CALLBACK, event 0, msg length 78, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 37 01 c0 69 08 01 02 f5 e0 21 08 02 08 11 12 13 14 15 16 17 18 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e1 11 8e
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 78 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 82
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 37 01 c0 69 08 01 02 f5 e0 21 08 02 08 11 12 13 14 15 16 17 18 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 e1 11 8e
-
-result (ATTACH REQUEST (unexpected, IMSI)) = 82
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 9
- Attach Accept count : 8
- Attach Completed count : 8
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 49 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 83 01 10
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 49 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 83 01 10
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 49 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 83 01 10
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 9
- Attach Accept count : 9
- Attach Completed count : 8
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 6d 08 03 6f c8 ea
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 6d 08 03 6f c8 ea
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 6d 08 03 6f c8 ea
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 9
- Attach Accept count : 9
- Attach Completed count : 9
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 4d 08 05 02 25 0a 51 0e 1b
-
-CALLBACK, event 0, msg length 69, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 4d 08 05 02 25 0a 51 0e 1b
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 69 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 73
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 4d 08 05 02 25 0a 51 0e 1b
-
-result (DETACH REQ) = 73
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 9
- Attach Accept count : 9
- Attach Completed count : 9
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 71 08 06 b3 95 70
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 71 08 06 b3 95 70
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 71 08 06 b3 95 70
-
-result (DETACH ACC) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 9
- Attach Accept count : 9
- Attach Completed count : 9
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 75 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 ab 17 53
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 75 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 ab 17 53
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 75 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 ab 17 53
-
-result (ATTACH REQUEST) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 10
- Attach Accept count : 9
- Attach Completed count : 9
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 51 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 a4 f2 e0
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 51 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 a4 f2 e0
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 51 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 a4 f2 e0
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 10
- Attach Accept count : 10
- Attach Completed count : 9
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 79 08 03 08 25 bc
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 79 08 03 08 25 bc
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 79 08 03 08 25 bc
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 10
- Attach Accept count : 10
- Attach Completed count : 10
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING GMM INFO from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 55 08 21 97 59 c6
-
-CALLBACK, event 0, msg length 66, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 55 08 21 97 59 c6
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 66 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 70
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 88 41 c0 55 08 21 97 59 c6
-
-result (GMM INFO) = 70
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 10
- Attach Accept count : 10
- Attach Completed count : 10
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH REQUEST (unexpected) from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 7d 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 a2 24 d0
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 7d 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 a2 24 d0
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 7d 08 01 02 f5 e0 21 08 02 05 f4 ef e2 b7 00 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 a2 24 d0
-
-result (ATTACH REQUEST (unexpected)) = 79
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 11
- Attach Accept count : 10
- Attach Completed count : 10
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH ACCEPT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 59 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 b9 a3 b0
-
-CALLBACK, event 0, msg length 88, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 59 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 b9 a3 b0
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 88 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 92
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 9e 41 c0 59 08 02 01 49 04 21 63 54 40 50 60 19 cd d7 08 17 16 18 05 f4 ef e2 b7 00 b9 a3 b0
-
-result (ATTACH ACCEPT) = 92
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 11
- Attach Accept count : 11
- Attach Completed count : 10
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH COMPLETE from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 81 08 03 b9 71 10
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 81 08 03 b9 71 10
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 81 08 03 b9 71 10
-
-result (ATTACH COMPLETE) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 11
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700/efe2b700 -> afe2b700/efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH REQ from 0x05060708:32000
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 5d 08 05 02 25 0a 44 1a c9
-
-CALLBACK, event 0, msg length 69, bvci 0x1002
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 5d 08 05 02 25 0a 44 1a c9
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 69 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 73
-00 00 10 02 00 ef e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 5d 08 05 02 25 0a 44 1a c9
-
-result (DETACH REQ) = 73
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 11
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI efe2b700 -> efe2b700, IMSI 12131415161718, AGE 0
-PROCESSING DETACH ACC from 0x01020304:1111
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 85 08 06 b6 9c 27
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 85 08 06 b6 9c 27
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 ef e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 85 08 06 b6 9c 27
-
-result (DETACH ACC) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 11
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 89 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 21 24 df
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 89 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 21 24 df
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 12
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 8d 08 16 08 11 12 13 14 15 16 17 18 74 ac 38
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 8d 08 16 08 11 12 13 14 15 16 17 18 74 ac 38
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 89 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 21 24 df
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 12
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0
-PROCESSING ATTACH REJECT from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 61 08 04 07 79 ba a5
-
-CALLBACK, event 0, msg length 67, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 61 08 04 07 79 ba a5
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 67 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 71
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 89 41 c0 61 08 04 07 79 ba a5
-
-result (ATTACH REJECT) = 71
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 12
- Attach Reject count : 1
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 91 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 81 7a 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 91 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 81 7a 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 13
- Attach Reject count : 1
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 1
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress
-PROCESSING DETACH REQ (MO) from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 95 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 9c dc fc
-
-CALLBACK, event 0, msg length 44, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 15 01 c0 95 08 05 01 18 05 f4 ef e2 b7 00 19 03 b9 97 cb 9c dc fc
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 06 00 29 4a 68
-
-result (DETACH REQ (MO)) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 13
- Attach Reject count : 1
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 2
- Detach Accept count : 1
- TLLI-Cache: 0
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 99 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 88 49 82
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 99 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 88 49 82
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 14
- Attach Reject count : 1
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 2
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress
-PROCESSING DETACH REQ (MT) from 0x05060708:32000
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 65 08 05 02 25 0a 17 a2 20
-
-CALLBACK, event 0, msg length 69, bvci 0x1002
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 65 08 05 02 25 0a 17 a2 20
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 69 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 73
-00 00 10 02 00 af e2 b7 00 00 50 20 16 82 02 58 13 99 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 0a 82 08 02 0d 88 11 12 13 14 15 16 17 18 00 81 00 0e 8b 41 c0 65 08 05 02 25 0a 17 a2 20
-
-result (DETACH REQ (MT)) = 73
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 14
- Attach Reject count : 1
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 2
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI afe2b700 -> afe2b700, IMSI 12131415161718, AGE 0, STORED 1, IMSI acquisition in progress
-PROCESSING DETACH ACC from 0x01020304:1111
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 9d 08 06 65 2c 8a
-
-CALLBACK, event 0, msg length 31, bvci 0x1002
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 9d 08 06 65 2c 8a
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 34 01 c0 99 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 88 49 82
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 31 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 35
-00 00 10 02 01 af e2 b7 00 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 08 01 c0 9d 08 06 65 2c 8a
-
-result (DETACH ACC) = 35
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 14
- Attach Reject count : 1
- Attach Accept count : 11
- Attach Completed count : 11
- RoutingArea Update Request count: 1
- RoutingArea Update Reject count : 1
- Detach Request count : 2
- Detach Accept count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 00000000, IMSI 12131415161718, AGE 0, DE-REGISTERED
-Gbproxy global:
-Test TLLI info expiry
-
-Test TLLI replacement:
- Add TLLI 1, IMSI 1
- Add TLLI 2, IMSI 1 (should replace TLLI 1)
- Peers:
- NSEI 0, BVCI 20, not blocked, RAI 0-0-0-0
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c000162e, IMSI 03242526, AGE 0, IMSI matches
-
-Test IMSI replacement:
- Add TLLI 1, IMSI 1
- Add TLLI 1, IMSI 2 (should replace IMSI 1)
- Peers:
- NSEI 0, BVCI 20, not blocked, RAI 0-0-0-0
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c00004d2, IMSI 06272829, AGE 0, IMSI matches
-
-Test TLLI expiry, max_len == 1:
- Add TLLI 1, IMSI 1
- Add TLLI 2, IMSI 2 (should replace IMSI 1)
- Peers:
- NSEI 0, BVCI 20, not blocked, RAI 0-0-0-0
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c000162e, IMSI 06272829, AGE 0, IMSI matches
-
-Test TLLI expiry, max_age == 1:
- Add TLLI 1, IMSI 1 (should expire after timeout)
- Add TLLI 2, IMSI 2 (should not expire after timeout)
- Peers:
- NSEI 0, BVCI 20, not blocked, RAI 0-0-0-0
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c000162e, IMSI 06272829, AGE 1, IMSI matches
-
-Test TLLI expiry, max_len == 2, max_age == 1:
- Add TLLI 1, IMSI 1 (should expire)
- Add TLLI 2, IMSI 2 (should expire after timeout)
- Add TLLI 3, IMSI 3 (should not expire after timeout)
- Peers:
- NSEI 0, BVCI 20, not blocked, RAI 0-0-0-0
- TLLI cache size : 3
- TLLI-Cache: 3
- TLLI c0000d80, IMSI 12345678, AGE 0, IMSI matches
- TLLI c000162e, IMSI 06272829, AGE 1, IMSI matches
- TLLI c00004d2, IMSI 03242526, AGE 2, IMSI matches
- Remove stale TLLIs
- Peers:
- NSEI 0, BVCI 20, not blocked, RAI 0-0-0-0
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI c0000d80, IMSI 12345678, AGE 0, IMSI matches
-
-=== test_gbproxy_stored_messages ===
---- Initialise SGSN ---
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 12
-02 00 81 01 01 82 01 01 04 82 01 00
-
-PROCESSING RESET_ACK from 0x05060708:32000
-03 01 82 01 01 04 82 01 00
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0a
-
-result (RESET_ACK) = 1
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 1
-
-PROCESSING UNBLOCK_ACK from 0x05060708:32000
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x0101/5.6.7.8:32000
-
-result (UNBLOCK_ACK) = 0
-
-PROCESSING ALIVE from 0x05060708:32000
-0a
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-0b
-
-result (ALIVE) = 1
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: remote 0x01020304:1111, NSVCI 0x1001(4097), NSEI 0x1000(4096)
-
-PROCESSING RESET from 0x01020304:1111
-02 00 81 01 01 82 10 01 04 82 10 00
-
-==> got signal NS_RESET, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-03 01 82 10 01 04 82 10 00
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0a
-
-result (RESET) = 9
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 1
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-result (UNBLOCK) = 1
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Setup BSSGP: remote 0x01020304:1111, BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from 0x01020304:1111
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-CALLBACK, event 0, msg length 18, bvci 0x0000
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x0000, msg length 18 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 22
-00 00 00 00 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-result (BVC_RESET) = 22
-
-PROCESSING BVC_RESET_ACK from 0x05060708:32000
-00 00 00 00 23 04 82 10 02
-
-CALLBACK, event 0, msg length 5, bvci 0x0000
-00 00 00 00 23 04 82 10 02
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x0000, msg length 5 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 9
-00 00 00 00 23 04 82 10 02
-
-result (BVC_RESET_ACK) = 9
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- NS-VC Block count : 1
-
-Gbproxy global:
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
---- Establish first LLC connection ---
-
-PROCESSING ATTACH REQUEST from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-CALLBACK, event 0, msg length 75, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 24 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 28
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-result (ATTACH REQUEST) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 8000dead, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress
-PROCESSING IDENT REQUEST from 0x05060708:32000
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-CALLBACK, event 0, msg length 23, bvci 0x1002
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS UNITDATA MESSAGE to BSS, BVCI 0x1002, msg length 23 (gprs_ns_sendmsg)
-MESSAGE to BSS at 0x01020304:1111, msg length 27
-00 00 10 02 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-result (IDENT REQUEST) = 27
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 8000dead, IMSI (none), AGE 0, STORED 1, IMSI acquisition in progress
-PROCESSING DETACH ACCEPT from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 09 01 c0 05 08 06 00 f8 92 41
-
-CALLBACK, event 0, msg length 32, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 09 01 c0 05 08 06 00 f8 92 41
-
-result (DETACH ACCEPT) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI cache size : 1
- TLLI-Cache: 1
- TLLI 8000dead -> 8000dead, IMSI (none), AGE 0, STORED 2, IMSI acquisition in progress
-PROCESSING IDENT RESPONSE from 0x01020304:1111
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-CALLBACK, event 0, msg length 40, bvci 0x1002
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 11 22 33 40 50 60 12 34 00 80 0e 00 11 01 c0 09 08 16 08 11 12 13 14 15 16 17 18 ba 14 c3
-
-NS UNITDATA MESSAGE to SGSN, BVCI 0x1002, msg length 75 (gprs_ns_sendmsg)
-MESSAGE to SGSN at 0x05060708:32000, msg length 79
-00 00 10 02 01 80 00 de ad 00 00 04 08 88 00 f1 99 00 63 60 12 34 00 80 0e 00 34 01 c0 01 08 01 02 f5 e0 21 08 02 05 f4 fb c5 46 79 11 22 33 40 50 60 19 18 b3 43 2b 25 96 62 00 60 80 9a c2 c6 62 00 60 80 ba c8 c6 62 00 60 80 00 16 6d 01
-
-result (IDENT RESPONSE) = 0
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI-Cache: 0
-Gbproxy global:
-===== GbProxy test END
-
diff --git a/tests/gprs/Makefile.am b/tests/gprs/Makefile.am
deleted file mode 100644
index 902313f2a..000000000
--- a/tests/gprs/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
-AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS)
-
-EXTRA_DIST = gprs_test.ok
-
-noinst_PROGRAMS = gprs_test
-
-gprs_test_SOURCES = gprs_test.c $(top_srcdir)/src/gprs/gprs_utils.c
-
-gprs_test_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
diff --git a/tests/gprs/gprs_test.c b/tests/gprs/gprs_test.c
deleted file mode 100644
index ff7740494..000000000
--- a/tests/gprs/gprs_test.c
+++ /dev/null
@@ -1,236 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <inttypes.h>
-
-#include <openbsc/gprs_llc.h>
-#include <openbsc/gprs_utils.h>
-
-#include <openbsc/debug.h>
-
-#include <osmocom/core/application.h>
-#include <osmocom/gsm/gsup.h>
-
-#define ASSERT_FALSE(x) if (x) { printf("Should have returned false.\n"); abort(); }
-#define ASSERT_TRUE(x) if (!x) { printf("Should have returned true.\n"); abort(); }
-
-/**
- * GSM 04.64 8.4.2 Receipt of unacknowledged information
- */
-static int nu_is_retransmission(uint16_t nu, uint16_t vur)
-{
- int ret = gprs_llc_is_retransmit(nu, vur);
- printf("N(U) = %d, V(UR) = %d => %s\n", nu, vur,
- ret == 1 ? "retransmit" : "new");
- return ret;
-}
-
-static void test_8_4_2()
-{
- printf("Testing gprs_llc_is_retransmit.\n");
-
- ASSERT_FALSE(nu_is_retransmission(0, 0));
- ASSERT_TRUE (nu_is_retransmission(0, 1));
-
- /* expect 1... check for retransmissions */
- ASSERT_TRUE (nu_is_retransmission(0, 1));
- ASSERT_TRUE (nu_is_retransmission(511, 1));
- ASSERT_TRUE (nu_is_retransmission(483, 1));
- ASSERT_TRUE (nu_is_retransmission(482, 1));
- ASSERT_FALSE(nu_is_retransmission(481, 1));
-
- /* expect 511... check for retransmissions */
- ASSERT_FALSE(nu_is_retransmission(0, 240)); // ahead
- ASSERT_FALSE(nu_is_retransmission(0, 511)); // ahead
- ASSERT_FALSE(nu_is_retransmission(1, 511)); // ahead
- ASSERT_FALSE(nu_is_retransmission(511, 511)); // same
- ASSERT_TRUE (nu_is_retransmission(510, 511)); // behind
- ASSERT_TRUE (nu_is_retransmission(481, 511)); // behind
- ASSERT_FALSE(nu_is_retransmission(479, 511)); // wrapped
-}
-
-static void apn_round_trip(const uint8_t *input, size_t len, const char *wanted_output)
-{
- char output[len ? len : 1];
- uint8_t encoded[len + 50];
- char *out_str;
- int enc_len;
-
- /* decode and verify we have what we want */
- out_str = gprs_apn_to_str(output, input, len);
- OSMO_ASSERT(out_str);
- OSMO_ASSERT(out_str == &output[0]);
- OSMO_ASSERT(strlen(out_str) == strlen(wanted_output));
- OSMO_ASSERT(strcmp(out_str, wanted_output) == 0);
-
- /* encode and verify it */
- if (len != 0) {
- enc_len = gprs_str_to_apn(encoded, ARRAY_SIZE(encoded), wanted_output);
- OSMO_ASSERT(enc_len == len);
- OSMO_ASSERT(memcmp(encoded, input, enc_len) == 0);
- } else {
- enc_len = gprs_str_to_apn(encoded, 0, wanted_output);
- OSMO_ASSERT(enc_len == -1);
- }
-}
-
-static void test_gsm_03_03_apn(void)
-{
-
- {
- /* test invalid writes */
- const uint8_t ref[10] = { 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF };
- uint8_t output[10];
- int enc_len;
-
- memcpy(output, ref, ARRAY_SIZE(output));
- enc_len = gprs_str_to_apn(output, 0, "");
- OSMO_ASSERT(enc_len == -1);
- OSMO_ASSERT(memcmp(ref, output, ARRAY_SIZE(ref)) == 0);
-
- memcpy(output, ref, ARRAY_SIZE(output));
- enc_len = gprs_str_to_apn(output, 0, "foo");
- OSMO_ASSERT(enc_len == -1);
- OSMO_ASSERT(memcmp(ref, output, ARRAY_SIZE(ref)) == 0);
-
- memcpy(output, ref, ARRAY_SIZE(output));
- enc_len = gprs_str_to_apn(output, 1, "foo");
- OSMO_ASSERT(enc_len == -1);
- OSMO_ASSERT(memcmp(ref + 1, output + 1, ARRAY_SIZE(ref) - 1) == 0);
-
- memcpy(output, ref, ARRAY_SIZE(output));
- enc_len = gprs_str_to_apn(output, 2, "foo");
- OSMO_ASSERT(enc_len == -1);
- OSMO_ASSERT(memcmp(ref + 2, output + 2, ARRAY_SIZE(ref) - 2) == 0);
-
- memcpy(output, ref, ARRAY_SIZE(output));
- enc_len = gprs_str_to_apn(output, 3, "foo");
- OSMO_ASSERT(enc_len == -1);
- OSMO_ASSERT(memcmp(ref + 3, output + 3, ARRAY_SIZE(ref) - 3) == 0);
- }
-
- {
- /* single empty label */
- uint8_t input[] = { 0x0 };
- const char *output = "";
- apn_round_trip(input, ARRAY_SIZE(input), output);
- }
-
- {
- /* no label */
- uint8_t input[] = { };
- const char *output = "";
- apn_round_trip(input, ARRAY_SIZE(input), output);
- }
-
- {
- /* single label with A */
- uint8_t input[] = { 0x1, 65 };
- const char *output = "A";
- apn_round_trip(input, ARRAY_SIZE(input), output);
- OSMO_ASSERT(gprs_apn_to_str(NULL, input, ARRAY_SIZE(input) - 1) == NULL);
- }
-
- {
- uint8_t input[] = { 0x3, 65, 66, 67, 0x2, 90, 122 };
- const char *output = "ABC.Zz";
- char tmp[strlen(output) + 1];
- apn_round_trip(input, ARRAY_SIZE(input), output);
- OSMO_ASSERT(gprs_apn_to_str(tmp, input, ARRAY_SIZE(input) - 1) == NULL);
- OSMO_ASSERT(gprs_apn_to_str(tmp, input, ARRAY_SIZE(input) - 2) == NULL);
- OSMO_ASSERT(gprs_apn_to_str(tmp, input, ARRAY_SIZE(input) - 4) == NULL);
- OSMO_ASSERT(gprs_apn_to_str(tmp, input, ARRAY_SIZE(input) - 5) == NULL);
- OSMO_ASSERT(gprs_apn_to_str(tmp, input, ARRAY_SIZE(input) - 6) == NULL);
- }
-}
-
-static void test_gprs_timer_enc_dec(void)
-{
- int i, u, secs, tmr;
- const int upper_secs_test_limit = 12000;
- int dec_secs, last_dec_secs = -1;
-
- printf("Test GPRS timer decoding/encoding\n");
-
- /* Check gprs_tmr_to_secs with all 256 encoded values */
- for (u = 0; u <= GPRS_TMR_DEACTIVATED; u += 32) {
- fprintf(stderr, "Testing decoding with timer value unit %u\n",
- u / 32);
- for (i = 0; i < 32; i++) {
- switch (u) {
- case GPRS_TMR_2SECONDS:
- OSMO_ASSERT(gprs_tmr_to_secs(u + i) == 2 * i);
- break;
-
- default:
- case GPRS_TMR_MINUTE:
- OSMO_ASSERT(gprs_tmr_to_secs(u + i) == 60 * i);
- break;
-
- case GPRS_TMR_6MINUTE:
- OSMO_ASSERT(gprs_tmr_to_secs(u + i) == 360 * i);
- break;
-
- case GPRS_TMR_DEACTIVATED:
- OSMO_ASSERT(gprs_tmr_to_secs(u + i) == -1);
- break;
- }
-
- OSMO_ASSERT(gprs_tmr_to_secs(u + i) < upper_secs_test_limit);
- }
- }
-
- /* Check gprs_secs_to_tmr_floor for secs that can exactly be
- * represented as GPRS timer values */
- for (i = 0; i < GPRS_TMR_DEACTIVATED; i++) {
- int j;
- secs = gprs_tmr_to_secs(i);
- tmr = gprs_secs_to_tmr_floor(secs);
- OSMO_ASSERT(secs == gprs_tmr_to_secs(tmr));
-
- /* Check that the highest resolution is used */
- for (j = 0; j < tmr; j++)
- OSMO_ASSERT(secs != gprs_tmr_to_secs(j));
- }
- OSMO_ASSERT(GPRS_TMR_DEACTIVATED == gprs_secs_to_tmr_floor(-1));
-
- /* Check properties of gprs_secs_to_tmr_floor */
- for (secs = 0; secs <= upper_secs_test_limit; secs++) {
- int tmr = gprs_secs_to_tmr_floor(secs);
- int delta_secs = gprs_tmr_to_secs((tmr & ~0x1f) | 1);
- dec_secs = gprs_tmr_to_secs(tmr);
-
- /* Check floor */
- OSMO_ASSERT(dec_secs <= secs);
- /* Check monotonicity */
- OSMO_ASSERT(dec_secs >= last_dec_secs);
- /* Check max distance (<= resolution) */
- OSMO_ASSERT(dec_secs - last_dec_secs <= delta_secs);
-
- last_dec_secs = dec_secs;
- }
-}
-
-const struct log_info_cat default_categories[] = {
- [DGPRS] = {
- .name = "DGPRS",
- .description = "GPRS Packet Service",
- .enabled = 0, .loglevel = LOGL_DEBUG,
- },
-};
-
-static struct log_info info = {
- .cat = default_categories,
- .num_cat = ARRAY_SIZE(default_categories),
-};
-
-int main(int argc, char **argv)
-{
- osmo_init_logging(&info);
-
- test_8_4_2();
- test_gsm_03_03_apn();
- test_gprs_timer_enc_dec();
-
- printf("Done.\n");
- return EXIT_SUCCESS;
-}
diff --git a/tests/gprs/gprs_test.ok b/tests/gprs/gprs_test.ok
deleted file mode 100644
index da7888c6a..000000000
--- a/tests/gprs/gprs_test.ok
+++ /dev/null
@@ -1,17 +0,0 @@
-Testing gprs_llc_is_retransmit.
-N(U) = 0, V(UR) = 0 => new
-N(U) = 0, V(UR) = 1 => retransmit
-N(U) = 0, V(UR) = 1 => retransmit
-N(U) = 511, V(UR) = 1 => retransmit
-N(U) = 483, V(UR) = 1 => retransmit
-N(U) = 482, V(UR) = 1 => retransmit
-N(U) = 481, V(UR) = 1 => new
-N(U) = 0, V(UR) = 240 => new
-N(U) = 0, V(UR) = 511 => new
-N(U) = 1, V(UR) = 511 => new
-N(U) = 511, V(UR) = 511 => new
-N(U) = 510, V(UR) = 511 => retransmit
-N(U) = 481, V(UR) = 511 => retransmit
-N(U) = 479, V(UR) = 511 => new
-Test GPRS timer decoding/encoding
-Done.
diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c
index 1b326ee54..4251c5b95 100644
--- a/tests/gsm0408/gsm0408_test.c
+++ b/tests/gsm0408/gsm0408_test.c
@@ -25,8 +25,6 @@
#include <arpa/inet.h>
#include <openbsc/common_bsc.h>
-#include <openbsc/gsm_04_08.h>
-#include <openbsc/gsm_04_11.h>
#include <openbsc/gsm_subscriber.h>
#include <openbsc/gsm_data_shared.h>
#include <openbsc/debug.h>
@@ -36,6 +34,7 @@
#include <osmocom/core/application.h>
#include <osmocom/gsm/sysinfo.h>
+#include <osmocom/gsm/gsm48.h>
#define COMPARE(result, op, value) \
if (!((result) op (value))) {\
@@ -648,6 +647,7 @@ static void test_si_range_helpers()
VERIFY(f0, ==, 1);
}
+#ifdef BEFORE_MSCSPLIT
static void test_gsm411_rp_ref_wrap(void)
{
struct gsm_subscriber_connection conn;
@@ -670,6 +670,7 @@ static void test_gsm411_rp_ref_wrap(void)
printf("Allocated reference: %d\n", res);
OSMO_ASSERT(res == 1);
}
+#endif
int main(int argc, char **argv)
{
@@ -683,7 +684,9 @@ int main(int argc, char **argv)
test_arfcn_filter();
test_print_encoding();
test_range_encoding();
+#ifdef BEFORE_MSCSPLIT
test_gsm411_rp_ref_wrap();
+#endif
test_si2q_segfault();
test_si2q_e();
diff --git a/tests/gtphub/Makefile.am b/tests/gtphub/Makefile.am
deleted file mode 100644
index 5c834b782..000000000
--- a/tests/gtphub/Makefile.am
+++ /dev/null
@@ -1,42 +0,0 @@
-AM_CPPFLAGS = \
- $(all_includes) \
- -I$(top_srcdir)/include \
- $(NULL)
-
-AM_CFLAGS = \
- -Wall \
- -ggdb3 \
- $(LIBOSMOCORE_CFLAGS) \
- $(LIBOSMOABIS_CFLAGS) \
- $(LIBGTP_CFLAGS) \
- $(NULL)
-
-EXTRA_DIST = \
- gtphub_test.ok \
- $(NULL)
-
-if HAVE_LIBGTP
-if HAVE_LIBCARES
-noinst_PROGRAMS = \
- gtphub_test \
- $(NULL)
-endif
-endif
-
-gtphub_test_SOURCES = \
- gtphub_test.c \
- $(NULL)
-
-gtphub_test_LDFLAGS = \
- -Wl,--wrap=gtphub_resolve_ggsn_addr \
- -Wl,--wrap=gtphub_ares_init \
- -Wl,--wrap=gtphub_write \
- $(NULL)
-
-gtphub_test_LDADD = \
- $(top_builddir)/src/gprs/gtphub.o \
- $(top_builddir)/src/gprs/gprs_utils.o \
- $(LIBOSMOCORE_LIBS) \
- $(LIBGTP_LIBS) \
- -lrt \
- $(NULL)
diff --git a/tests/gtphub/gtphub_test.c b/tests/gtphub/gtphub_test.c
deleted file mode 100644
index e7c27d2cb..000000000
--- a/tests/gtphub/gtphub_test.c
+++ /dev/null
@@ -1,1786 +0,0 @@
-/* Test the GTP hub */
-
-/* (C) 2015 by sysmocom s.f.m.c. GmbH
- * All Rights Reserved
- *
- * Author: Neels Hofmeyr <nhofmeyr@sysmcom.de>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#include <stdio.h>
-#include <string.h>
-#include <limits.h>
-#include <unistd.h>
-
-#include <osmocom/core/utils.h>
-#include <osmocom/core/application.h>
-
-#include <openbsc/debug.h>
-
-#include <openbsc/gtphub.h>
-#include <gtp.h>
-#include <gtpie.h>
-
-#define ZERO_STRUCT(struct_pointer) memset(struct_pointer, '\0', \
- sizeof(*(struct_pointer)))
-
-#define LVL2_ASSERT(exp) LVL2_ASSERT_R(exp, return 0)
-#define LVL2_ASSERT_R(exp, ret) \
- if (!(exp)) { \
- fprintf(stderr, "LVL2 Assert failed %s %s:%d\n", #exp, \
- __FILE__, __LINE__); \
- osmo_generate_backtrace(); \
- ret; \
- }
-
-/* Convenience makro, note: only within this C file. */
-#define LOG(label) \
- { fprintf(stderr, "\n" label "\n"); \
- printf(label "\n"); }
-
-void gtphub_init(struct gtphub *hub);
-void gtphub_free(struct gtphub *hub);
-
-void *osmo_gtphub_ctx;
-
-static void nr_mapping_free(struct expiring_item *e)
-{
- struct nr_mapping *m = container_of(e, struct nr_mapping,
- expiry_entry);
- nr_mapping_del(m);
- talloc_free(m);
-}
-
-static struct nr_mapping *nr_mapping_alloc(void)
-{
- struct nr_mapping *m;
- m = talloc(osmo_gtphub_ctx, struct nr_mapping);
- nr_mapping_init(m);
- m->expiry_entry.del_cb = nr_mapping_free;
- return m;
-}
-
-static struct nr_mapping *nr_map_have(struct nr_map *map, void *origin,
- nr_t orig, time_t now)
-{
- struct nr_mapping *mapping;
-
- mapping = nr_map_get(map, origin, orig);
- if (!mapping) {
- mapping = nr_mapping_alloc();
- mapping->origin = origin;
- mapping->orig = orig;
- nr_map_add(map, mapping, now);
- }
-
- return mapping;
-}
-
-static nr_t nr_map_verify(const struct nr_map *map, void *origin, nr_t orig,
- nr_t expect_repl)
-{
- struct nr_mapping *m;
- m = nr_map_get(map, origin, orig);
-
- if (!m) {
- printf("mapping not found for %p %d\n", origin, orig);
- return 0;
- }
-
- if (m->repl != expect_repl) {
- printf("mapping found, but nr mismatches: expect %d, got %d\n",
- (int)expect_repl, (int)m->repl);
- return 0;
- }
-
- return 1;
-}
-
-static int nr_map_verify_inv(const struct nr_map *map, nr_t repl,
- void *expect_origin, nr_t expect_orig)
-{
- struct nr_mapping *m;
- m = nr_map_get_inv(map, repl);
- if (!m) {
- printf("mapping not found for %d\n", (int)repl);
- return 0;
- }
-
- if (m->origin != expect_origin) {
- printf("mapping found, but origin mismatches:"
- " expect %p, got %p\n",
- expect_origin, m->origin);
- return 0;
- }
-
- if (m->orig != expect_orig) {
- printf("mapping found, but nr mismatches: expect %d, got %d\n",
- (int)expect_orig, (int)m->orig);
- return 0;
- }
-
- return 1;
-}
-
-
-static void test_nr_map_basic(void)
-{
- struct nr_pool _pool;
- struct nr_pool *pool = &_pool;
- struct nr_map _map;
- struct nr_map *map = &_map;
-
- nr_pool_init(pool, 1, 1000);
- nr_map_init(map, pool, NULL);
-
- OSMO_ASSERT(llist_empty(&map->mappings));
-
-#define TEST_N_HALF 100
-#define TEST_N (2*TEST_N_HALF)
-#define TEST_I 123
- uint32_t i, check_i;
- uint32_t m[TEST_N];
- struct nr_mapping *mapping;
-
- /* create half of TEST_N mappings from one origin */
- void *origin1 = (void*)0x1234;
- for (i = 0; i < TEST_N_HALF; i++) {
- nr_t orig = TEST_I + i;
- mapping = nr_map_have(map, origin1, orig, 0);
- m[i] = mapping->repl;
- OSMO_ASSERT(m[i] != 0);
- OSMO_ASSERT(llist_count(&map->mappings) == (i+1));
- for (check_i = 0; check_i < i; check_i++)
- OSMO_ASSERT(m[check_i] != m[i]);
- }
- OSMO_ASSERT(llist_count(&map->mappings) == TEST_N_HALF);
-
- /* create another TEST_N mappings with the same original numbers, but
- * from a different origin */
- void *origin2 = (void*)0x5678;
- for (i = 0; i < TEST_N_HALF; i++) {
- int i2 = TEST_N_HALF + i;
- nr_t orig = TEST_I + i;
- mapping = nr_map_have(map, origin2, orig, 0);
- m[i2] = mapping->repl;
- OSMO_ASSERT(m[i2] != 0);
- OSMO_ASSERT(llist_count(&map->mappings) == (i2+1));
- for (check_i = 0; check_i < i2; check_i++)
- OSMO_ASSERT(m[check_i] != m[i2]);
- }
- OSMO_ASSERT(llist_count(&map->mappings) == TEST_N);
-
- /* verify mappings */
- for (i = 0; i < TEST_N_HALF; i++) {
- nr_t orig = TEST_I + i;
- {
- OSMO_ASSERT(nr_map_verify(map, origin1, orig, m[i]));
- OSMO_ASSERT(nr_map_verify_inv(map, m[i], origin1,
- orig));
- }
- {
- int i2 = TEST_N_HALF + i;
- OSMO_ASSERT(nr_map_verify(map, origin2, orig, m[i2]));
- OSMO_ASSERT(nr_map_verify_inv(map, m[i2], origin2,
- orig));
- }
- }
-
- /* remove all mappings */
- for (i = 0; i < TEST_N_HALF; i++) {
- OSMO_ASSERT(llist_count(&map->mappings) == (TEST_N - 2*i));
-
- nr_t orig = TEST_I + i;
- nr_mapping_del(nr_map_get(map, origin1, orig));
- nr_mapping_del(nr_map_get(map, origin2, orig));
- }
- OSMO_ASSERT(llist_empty(&map->mappings));
-#undef TEST_N
-#undef TEST_I
-}
-
-static int nr_map_is(struct nr_map *map, const char *str)
-{
- static char buf[4096];
- char *pos = buf;
- size_t len = sizeof(buf);
- struct nr_mapping *m;
- llist_for_each_entry(m, &map->mappings, entry) {
- size_t wrote = snprintf(pos, len, "(%u->%u@%d), ",
- m->orig,
- m->repl,
- (int)m->expiry_entry.expiry);
- OSMO_ASSERT(wrote < len);
- pos += wrote;
- len -= wrote;
- }
- *pos = '\0';
-
- if (strncmp(buf, str, sizeof(buf)) != 0) {
- printf("FAILURE: nr_map_is() mismatches expected value:\n"
- "expected: \"%s\"\n"
- "is: \"%s\"\n",
- str, buf);
- return 0;
- }
- return 1;
-}
-
-static int test_nr_map_wrap_with(nr_t nr_min, nr_t nr_max, nr_t repl_last,
- nr_t orig_start, int orig_n,
- const char *expect)
-{
- struct nr_pool _pool;
- struct nr_pool *pool = &_pool;
- struct nr_map _map;
- struct nr_map *map = &_map;
-
- nr_pool_init(pool, nr_min, nr_max);
- nr_map_init(map, pool, NULL);
-
- pool->last_nr = repl_last;
-
- void *origin = (void*)0x1234;
-
- int i;
- for (i = 0; i < orig_n; i++)
- LVL2_ASSERT(nr_map_have(map, origin, orig_start + i, 0));
-
- LVL2_ASSERT(nr_map_is(map, expect));
-
- nr_map_clear(map);
- return 1;
-}
-
-static void test_nr_map_wrap(void)
-{
- OSMO_ASSERT(test_nr_map_wrap_with(
- 0, UINT_MAX, UINT_MAX - 2,
- 1, 5,
- "(1->4294967294@0), "
- "(2->4294967295@0), "
- "(3->0@0), "
- "(4->1@0), "
- "(5->2@0), "
- ));
- OSMO_ASSERT(test_nr_map_wrap_with(
- 5, 10, 8,
- 1, 5,
- "(1->9@0), (2->10@0), (3->5@0), (4->6@0), (5->7@0), "
- ));
-}
-
-static void test_expiry(void)
-{
- struct expiry expiry;
- struct nr_pool pool;
- struct nr_map map;
- int i;
-
- expiry_init(&expiry, 30);
- nr_pool_init(&pool, 1, 1000);
- nr_map_init(&map, &pool, &expiry);
- OSMO_ASSERT(nr_map_is(&map, ""));
-
- /* tick on empty map */
- OSMO_ASSERT(expiry_tick(&expiry, 10000) == 0);
- OSMO_ASSERT(nr_map_is(&map, ""));
-
-#define MAP1 \
- "(10->1@10040), " \
- ""
-
-#define MAP2 \
- "(20->2@10050), " \
- "(21->3@10051), " \
- "(22->4@10052), " \
- "(23->5@10053), " \
- "(24->6@10054), " \
- "(25->7@10055), " \
- "(26->8@10056), " \
- "(27->9@10057), " \
- ""
-
-#define MAP3 \
- "(420->10@10072), " \
- "(421->11@10072), " \
- "(422->12@10072), " \
- "(423->13@10072), " \
- "(424->14@10072), " \
- "(425->15@10072), " \
- "(426->16@10072), " \
- "(427->17@10072), " \
- ""
-
- /* add mapping at time 10010. */
- nr_map_have(&map, 0, 10, 10010);
- OSMO_ASSERT(nr_map_is(&map, MAP1));
-
- /* tick on unexpired item. */
- OSMO_ASSERT(expiry_tick(&expiry, 10010) == 0);
- OSMO_ASSERT(expiry_tick(&expiry, 10011) == 0);
- OSMO_ASSERT(nr_map_is(&map, MAP1));
-
- /* Spread mappings at 10020, 10021, ... 10027. */
- for (i = 0; i < 8; i++)
- nr_map_have(&map, 0, 20 + i, 10020 + i);
- OSMO_ASSERT(nr_map_is(&map, MAP1 MAP2));
-
- /* tick on unexpired items. */
- OSMO_ASSERT(expiry_tick(&expiry, 10030) == 0);
- OSMO_ASSERT(expiry_tick(&expiry, 10039) == 0);
- OSMO_ASSERT(nr_map_is(&map, MAP1 MAP2));
-
- /* expire the first item (from 10010). */
- OSMO_ASSERT(expiry_tick(&expiry, 10010 + 30) == 1);
- OSMO_ASSERT(nr_map_is(&map, MAP2));
-
- /* again nothing to expire */
- OSMO_ASSERT(expiry_tick(&expiry, 10041) == 0);
- OSMO_ASSERT(nr_map_is(&map, MAP2));
-
- /* Mappings all at the same time. */
- for (i = 0; i < 8; i++)
- nr_map_have(&map, 0, 420 + i, 10042);
- OSMO_ASSERT(nr_map_is(&map, MAP2 MAP3));
-
- /* Eight to expire, were added further above to be chronologically
- * correct, at 10020..10027. */
- OSMO_ASSERT(expiry_tick(&expiry, 10027 + 30) == 8);
- OSMO_ASSERT(nr_map_is(&map, MAP3));
-
- /* again nothing to expire */
- OSMO_ASSERT(expiry_tick(&expiry, 10027 + 30) == 0);
- OSMO_ASSERT(nr_map_is(&map, MAP3));
-
- /* Eight to expire, from 10042. Now at 10042 + 30: */
- OSMO_ASSERT(expiry_tick(&expiry, 10042 + 30) == 8);
- OSMO_ASSERT(nr_map_is(&map, ""));
-
-#undef MAP1
-#undef MAP2
-#undef MAP3
-}
-
-char resolve_ggsn_got_imsi[GSM23003_IMSI_MAX_DIGITS+1];
-char resolve_ggsn_got_ni[GSM_APN_LENGTH];
-
-struct osmo_sockaddr resolved_ggsn_addr;
-static int resolve_to_ggsn(const char *addr, uint16_t port)
-{
- LVL2_ASSERT(osmo_sockaddr_init_udp(&resolved_ggsn_addr,
- addr, port)
- == 0);
- return 1;
-}
-
-struct osmo_sockaddr resolved_sgsn_addr;
-static int resolve_to_sgsn(const char *addr, uint16_t port)
-{
- LVL2_ASSERT(osmo_sockaddr_init_udp(&resolved_sgsn_addr,
- addr, port)
- == 0);
- return 1;
-}
-
-struct osmo_sockaddr sgsn_sender;
-static int send_from_sgsn(const char *addr, uint16_t port)
-{
- LVL2_ASSERT(osmo_sockaddr_init_udp(&sgsn_sender,
- addr, port)
- == 0);
- return 1;
-}
-
-struct osmo_sockaddr ggsn_sender;
-static int send_from_ggsn(const char *addr, uint16_t port)
-{
- LVL2_ASSERT(osmo_sockaddr_init_udp(&ggsn_sender,
- addr, port)
- == 0);
- return 1;
-}
-
-
-/* override, requires '-Wl,--wrap=gtphub_resolve_ggsn_addr' */
-struct gtphub_peer_port *__real_gtphub_resolve_ggsn_addr(struct gtphub *hub,
- const char *imsi_str,
- const char *apn_ni_str);
-
-struct gtphub_peer_port *__wrap_gtphub_resolve_ggsn_addr(struct gtphub *hub,
- const char *imsi_str,
- const char *apn_ni_str)
-{
- struct gsn_addr resolved_gsna;
- uint16_t resolved_port;
-
- OSMO_ASSERT(gsn_addr_from_sockaddr(&resolved_gsna, &resolved_port,
- &resolved_ggsn_addr) == 0);
-
- struct gtphub_peer_port *pp;
- pp = gtphub_port_have(hub, &hub->to_gsns[GTPH_SIDE_GGSN][GTPH_PLANE_CTRL],
- &resolved_gsna, resolved_port);
- printf("- __wrap_gtphub_resolve_ggsn_addr():\n"
- " returning GGSN addr from imsi %s ni %s: %s\n",
- imsi_str, apn_ni_str, gtphub_port_str(pp));
-
- if (!imsi_str)
- imsi_str = "(null)";
- osmo_strlcpy(resolve_ggsn_got_imsi, imsi_str,
- sizeof(resolve_ggsn_got_imsi));
-
- if (!apn_ni_str)
- apn_ni_str = "(null)";
- osmo_strlcpy(resolve_ggsn_got_ni, apn_ni_str,
- sizeof(resolve_ggsn_got_ni));
-
- return pp;
-}
-
-#define was_resolved_for(IMSI,NI) _was_resolved_for(IMSI, NI, __FILE__, __LINE__)
-static int _was_resolved_for(const char *imsi, const char *ni, const char
- *file, int line)
-{
- int cmp0 = strncmp(imsi, resolve_ggsn_got_imsi,
- sizeof(resolve_ggsn_got_imsi));
-
- if (cmp0 != 0) {
- printf("\n%s:%d: was_resolved_for(): MISMATCH for IMSI\n"
- " expecting: '%s'\n"
- " got: '%s'\n\n",
- file,
- line,
- imsi, resolve_ggsn_got_imsi);
- }
-
- int cmp1 = strncmp(ni, resolve_ggsn_got_ni,
- sizeof(resolve_ggsn_got_ni));
- if (cmp1 != 0) {
- printf("\n%s:%d: was_resolved_for(): MISMATCH for NI\n"
- " expecting: '%s'\n"
- " got: '%s'\n\n",
- file,
- line,
- ni, resolve_ggsn_got_ni);
- }
-
- return (cmp0 == 0) && (cmp1 == 0);
-}
-
-/* override, requires '-Wl,--wrap=gtphub_ares_init' */
-int __real_gtphub_ares_init(struct gtphub *hub);
-
-int __wrap_gtphub_ares_init(struct gtphub *hub)
-{
- /* Do nothing. */
- return 0;
-}
-
-/* override, requires '-Wl,--wrap=gtphub_write' */
-int __real_gtphub_write(const struct osmo_fd *to,
- const struct osmo_sockaddr *to_addr,
- const uint8_t *buf, size_t buf_len);
-
-int __wrap_gtphub_write(const struct osmo_fd *to,
- const struct osmo_sockaddr *to_addr,
- const uint8_t *buf, size_t buf_len)
-{
- printf("Out-of-band gtphub_write(%d):\n"
- "to %s\n"
- "%s\n",
- (int)buf_len,
- osmo_sockaddr_to_str(to_addr),
- osmo_hexdump(buf, buf_len));
- return 0;
-}
-
-#define buf_len 1024
-static uint8_t buf[buf_len];
-static uint8_t *reply_buf;
-
-static unsigned int msg(const char *hex)
-{
- unsigned int l = osmo_hexparse(hex, buf, buf_len);
- OSMO_ASSERT(l > 0);
- return l;
-}
-
-/* Compare static buf to given string constant. The amount of bytes is obtained
- * from parsing the GTP header in buf. hex must match an osmo_hexdump() of the
- * desired message. Return 1 if size and content match. */
-#define reply_is(MSG) _reply_is(MSG, __FILE__, __LINE__)
-static int _reply_is(const char *hex, const char *file, int line)
-{
- struct gtp1_header_long *h = (void*)reply_buf;
- int len = ntoh16(h->length) + 8;
- const char *dump = osmo_hexdump_nospc(reply_buf, len);
- int cmp = strcmp(dump, hex);
-
- if (cmp != 0) {
- printf("\n%s:%d: reply_is(): MISMATCH\n"
- " expecting:\n'%s'\n"
- " got:\n'%s'\n\n",
- file,
- line,
- hex, dump);
- int i;
- int l = strlen(hex);
- int m = strlen(dump);
- if (m < l)
- l = m;
- for (i = 0; i < l; i++) {
- if (hex[i] != dump[i]) {
- printf("First mismatch at position %d:\n"
- " %s\n %s\n", i, hex + i, dump + i);
- break;
- }
- }
- }
- return cmp == 0;
-}
-
-#define same_addr(GOT, EXPECTED) _same_addr((GOT),(EXPECTED), __FILE__, __LINE__)
-static int _same_addr(const struct osmo_sockaddr *got,
- const struct osmo_sockaddr *expected,
- const char *file, int line)
-{
- int cmp = osmo_sockaddr_cmp(got, expected);
- if (!cmp)
- return 1;
- char buf[256];
- printf("\n%s:%d: addr_is(): MISMATCH\n"
- " expecting: '%s'\n"
- " got: '%s'\n\n",
- file, line,
- osmo_sockaddr_to_str(expected),
- osmo_sockaddr_to_strb(got, buf, sizeof(buf)));
- return 0;
-}
-
-
-time_t now;
-static struct gtphub _hub;
-static struct gtphub *hub = &_hub;
-
-static int setup_test_hub()
-{
- /* Not really needed, but to make 100% sure... */
- ZERO_STRUCT(hub);
-
- gtphub_init(hub);
-
- /* Tell this mock gtphub its local address for this test. */
- LVL2_ASSERT(gsn_addr_from_str(&hub->to_gsns[GTPH_SIDE_SGSN][GTPH_PLANE_CTRL].local_addr,
- "127.0.1.1") == 0);
- LVL2_ASSERT(gsn_addr_from_str(&hub->to_gsns[GTPH_SIDE_SGSN][GTPH_PLANE_USER].local_addr,
- "127.0.1.2") == 0);
- LVL2_ASSERT(gsn_addr_from_str(&hub->to_gsns[GTPH_SIDE_GGSN][GTPH_PLANE_CTRL].local_addr,
- "127.0.2.1") == 0);
- LVL2_ASSERT(gsn_addr_from_str(&hub->to_gsns[GTPH_SIDE_GGSN][GTPH_PLANE_USER].local_addr,
- "127.0.2.2") == 0);
-
- hub->restart_counter = 0x23;
- now = 345;
- LVL2_ASSERT(send_from_sgsn("192.168.42.23", 423));
- LVL2_ASSERT(resolve_to_ggsn("192.168.43.34", 2123));
- LVL2_ASSERT(send_from_ggsn("192.168.43.34", 434));
- LVL2_ASSERT(resolve_to_sgsn("192.168.42.23", 2123));
-
-#define GGSNS_CTRL_FD 1
-#define GGSNS_USER_FD 2
-#define SGSNS_CTRL_FD 3
-#define SGSNS_USER_FD 4
- hub->to_gsns[GTPH_SIDE_GGSN][GTPH_PLANE_CTRL].ofd.priv_nr = GGSNS_CTRL_FD;
- hub->to_gsns[GTPH_SIDE_GGSN][GTPH_PLANE_USER].ofd.priv_nr = GGSNS_USER_FD;
- hub->to_gsns[GTPH_SIDE_SGSN][GTPH_PLANE_CTRL].ofd.priv_nr = SGSNS_CTRL_FD;
- hub->to_gsns[GTPH_SIDE_SGSN][GTPH_PLANE_USER].ofd.priv_nr = SGSNS_USER_FD;
-
- return 1;
-}
-
-static int clear_test_hub()
-{
- /* expire all */
- gtphub_gc(hub, now + (60 * GTPH_EXPIRE_SLOWLY_MINUTES) + 1);
-
- int plane_idx;
- plane_idx = GTPH_PLANE_CTRL;
- LVL2_ASSERT(llist_empty(&hub->to_gsns[GTPH_SIDE_GGSN][plane_idx].peers));
- LVL2_ASSERT(llist_empty(&hub->to_gsns[GTPH_SIDE_SGSN][plane_idx].peers));
- plane_idx = GTPH_PLANE_USER;
- LVL2_ASSERT(llist_empty(&hub->to_gsns[GTPH_SIDE_GGSN][plane_idx].peers));
- LVL2_ASSERT(llist_empty(&hub->to_gsns[GTPH_SIDE_SGSN][plane_idx].peers));
-
- LVL2_ASSERT(llist_empty(&hub->tunnels));
- LVL2_ASSERT(llist_empty(&hub->pending_deletes));
- LVL2_ASSERT(llist_empty(&hub->ggsn_lookups));
- LVL2_ASSERT(llist_empty(&hub->resolved_ggsns));
-
- gtphub_free(hub);
- return 1;
-}
-
-static int tunnels_are(const char *expect)
-{
- static char buf[4096];
- char *pos = buf;
- size_t len = sizeof(buf);
- struct gtphub_tunnel *t;
- llist_for_each_entry(t, &hub->tunnels, entry) {
- size_t wrote = snprintf(pos, len, "%s @%d\n",
- gtphub_tunnel_str(t),
- (int)t->expiry_entry.expiry);
- LVL2_ASSERT(wrote < len);
- pos += wrote;
- len -= wrote;
- }
- *pos = '\0';
-
- if (strncmp(buf, expect, sizeof(buf)) != 0) {
- fprintf(stderr, "FAILURE: tunnels_are() mismatches expected value:\n"
- "EXPECTED:\n%s\n"
- "IS:\n%s\n",
- expect, buf);
- LVL2_ASSERT("tunnels do not match expected listing.");
- return 0;
- }
- return 1;
-}
-
-static void test_echo(void)
-{
- LOG("test_echo");
- OSMO_ASSERT(setup_test_hub());
-
- now = 123;
-
- struct osmo_fd *to_ofd;
- struct osmo_sockaddr to_addr;
- struct gtphub_peer_port *pp;
- int send;
-
- const char *gtp_ping_from_sgsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "01" /* type 01: Echo request */
- "0004" /* length of 4 after header TEI */
- "00000000" /* header TEI == 0 in Echo */
- "abcd" /* some 2 octet sequence nr */
- "0000" /* N-PDU 0, no extension header (why is this here?) */
- ;
-
- const char *gtp_pong_to_sgsn =
- "32"
- "02" /* type 02: Echo response */
- "0006" /* length of 6 after header TEI */
- "00000000" /* header TEI == 0 in Echo */
- "abcd" /* same sequence nr */
- "0000"
- "0e23" /* Recovery with restart counter */
- ;
-
- to_ofd = NULL;
- ZERO_STRUCT(&to_addr);
- send = gtphub_handle_buf(hub, GTPH_SIDE_SGSN, GTPH_PLANE_CTRL,
- &sgsn_sender, buf, msg(gtp_ping_from_sgsn),
- now, &reply_buf, &to_ofd, &to_addr);
- OSMO_ASSERT(send > 0);
- OSMO_ASSERT(to_addr.l);
- OSMO_ASSERT(same_addr(&to_addr, &sgsn_sender));
- OSMO_ASSERT(to_ofd && (to_ofd->priv_nr == SGSNS_CTRL_FD));
- OSMO_ASSERT(reply_is(gtp_pong_to_sgsn));
-
- pp = gtphub_port_find_sa(&hub->to_gsns[GTPH_SIDE_SGSN][GTPH_PLANE_CTRL],
- &sgsn_sender);
- /* We don't record Echo peers. */
- OSMO_ASSERT(!pp);
-
- const char *gtp_ping_from_ggsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "01" /* type 01: Echo request */
- "0004" /* length of 4 after header TEI */
- "00000000" /* header TEI == 0 in Echo */
- "cdef" /* some 2 octet sequence nr */
- "0000" /* N-PDU 0, no extension header (why is this here?) */
- ;
-
- const char *gtp_pong_to_ggsn =
- "32"
- "02" /* type 02: Echo response */
- "0006" /* length of 6 after header TEI */
- "00000000" /* header TEI == 0 in Echo */
- "cdef" /* same sequence nr */
- "0000"
- "0e23" /* Recovery with restart counter */
- ;
-
- to_ofd = NULL;
- ZERO_STRUCT(&to_addr);
- send = gtphub_handle_buf(hub, GTPH_SIDE_GGSN, GTPH_PLANE_CTRL,
- &ggsn_sender, buf, msg(gtp_ping_from_ggsn),
- now, &reply_buf, &to_ofd, &to_addr);
- OSMO_ASSERT(send > 0);
- OSMO_ASSERT(same_addr(&to_addr, &ggsn_sender));
- OSMO_ASSERT(to_ofd && (to_ofd->priv_nr == GGSNS_CTRL_FD));
- OSMO_ASSERT(reply_is(gtp_pong_to_ggsn));
-
- pp = gtphub_port_find_sa(&hub->to_gsns[GTPH_SIDE_GGSN][GTPH_PLANE_CTRL],
- &sgsn_sender);
- OSMO_ASSERT(!pp);
-
-
- /* And all the same on the user plane. */
-
- to_ofd = NULL;
- ZERO_STRUCT(&to_addr);
- send = gtphub_handle_buf(hub, GTPH_SIDE_SGSN, GTPH_PLANE_USER,
- &sgsn_sender, buf, msg(gtp_ping_from_sgsn),
- now, &reply_buf, &to_ofd, &to_addr);
- OSMO_ASSERT(send > 0);
- OSMO_ASSERT(to_addr.l);
- OSMO_ASSERT(same_addr(&to_addr, &sgsn_sender));
- OSMO_ASSERT(to_ofd && (to_ofd->priv_nr == SGSNS_USER_FD));
- OSMO_ASSERT(reply_is(gtp_pong_to_sgsn));
-
- pp = gtphub_port_find_sa(&hub->to_gsns[GTPH_SIDE_SGSN][GTPH_PLANE_USER],
- &sgsn_sender);
- OSMO_ASSERT(!pp);
-
- to_ofd = NULL;
- ZERO_STRUCT(&to_addr);
- send = gtphub_handle_buf(hub, GTPH_SIDE_GGSN, GTPH_PLANE_USER,
- &ggsn_sender, buf, msg(gtp_ping_from_ggsn),
- now, &reply_buf, &to_ofd, &to_addr);
- OSMO_ASSERT(send > 0);
- OSMO_ASSERT(same_addr(&to_addr, &ggsn_sender));
- OSMO_ASSERT(to_ofd && (to_ofd->priv_nr == GGSNS_USER_FD));
- OSMO_ASSERT(reply_is(gtp_pong_to_ggsn));
-
- pp = gtphub_port_find_sa(&hub->to_gsns[GTPH_SIDE_GGSN][GTPH_PLANE_USER],
- &sgsn_sender);
- OSMO_ASSERT(!pp);
-
-
- OSMO_ASSERT(clear_test_hub());
-}
-
-
-#define MSG_PDP_CTX_REQ(len, seq, restart, imsi, tei_u, tei_c, apn, gsn_c, gsn_u) \
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr. */ \
- "10" /* type 16: Create PDP Context Request */ \
- len /* msg length = 8 + len (2 octets) */ \
- "00000000" /* No TEI yet */ \
- seq /* Sequence nr (2 octets) */ \
- "00" /* N-PDU 0 */ \
- "00" /* No extensions */ \
- /* IEs */ \
- "0e" restart /* 14: Recovery (restart counter: 1 octet) */ \
- "02" /* 2 = IMSI */ \
- imsi /* (8 octets) */ \
- "0f01" /* 15: Selection mode = MS provided APN, subscription not verified*/ \
- "10" /* 16: TEI Data I */ \
- tei_u /* (4 octets) */ \
- "11" /* 17: TEI Control Plane */ \
- tei_c /* (4 octets) */ \
- "1400" /* 20: NSAPI = 0*/ \
- "1a" /* 26: Charging Characteristics */ \
- "0800" \
- "80" /* 128: End User Address */ \
- "0002" /* length = 2: empty PDP Address */ \
- "f121" /* spare 0xf0, PDP organization 1, PDP type number 0x21 = 33 */ \
- "83" /* 131: Access Point Name */ \
- apn /* (2 octets length, N octets encoded APN-NI) */ \
- "84" /* 132: Protocol Configuration Options */ \
- "0015" /* length = 21 */ \
- "80c0231101010011036d69670868656d6d656c6967" \
- "85" /* 133: GSN Address */ \
- gsn_c /* (2 octets length, N octets addr) */ \
- "85" /* 133: GSN Address (second entry) */ \
- gsn_u /* (2 octets length, N octets addr) */ \
- "86" /* 134: MS International PSTN/ISDN Number (MSISDN) */ \
- "0007" /* length */ \
- "916407123254f6" /* 1946702123456(f) */ \
- "87" /* 135: Quality of Service (QoS) Profile */ \
- "0004" /* length */ \
- "00" /* priority */ \
- "0b921f" /* QoS profile data */
-
-#define MSG_PDP_CTX_RSP(len, tei_h, seq, restart, tei_u, tei_c, gsn_c, gsn_u) \
- "32" \
- "11" /* Create PDP Context Response */ \
- len /* msg length = 8 + len (2 octets) */ \
- tei_h /* destination TEI (sent in req above) */ \
- seq /* mapped seq */ \
- "00" "00" \
- /* IEs */ \
- "01" /* 1: Cause */ \
- "80" /* value = 0b10000000 = response, no rejection. */ \
- "08" /* 8: Reordering Required */ \
- "00" /* not required. */ \
- "0e" restart /* 14: Recovery */ \
- "10" /* 16: TEI Data I */ \
- tei_u \
- "11" /* 17: TEI Control */ \
- tei_c \
- "7f" /* 127: Charging ID */ \
- "00000001" \
- "80" /* 128: End User Address */ \
- "0006" /* length = 6 */ \
- "f121" /* spare 0xf0, PDP organization 1, PDP type number 0x21 = 33 */ \
- "7f000002" \
- "84" /* 132: Protocol Configuration Options */ \
- "0014" /* len = 20 */ \
- "8080211002000010810608080808830600000000" \
- "85" /* 133: GSN Address (Ctrl) */ \
- gsn_c \
- "85" /* 133: GSN Address (User) */ \
- gsn_u \
- "87" /* 135: Quality of Service (QoS) Profile */ \
- "0004" /* length */ \
- "00" /* priority */ \
- "0b921f" /* QoS profile data */
-
-#define msg_from_sgsn_c(A,B,C,D) msg_from_sgsn(GTPH_PLANE_CTRL, A,B,C,D)
-#define msg_from_sgsn_u(A,B,C,D) msg_from_sgsn(GTPH_PLANE_USER, A,B,C,D)
-static int msg_from_sgsn(int plane_idx,
- struct osmo_sockaddr *_sgsn_sender,
- struct osmo_sockaddr *ggsn_receiver,
- const char *hex_from_sgsn,
- const char *hex_to_ggsn)
-{
- struct osmo_fd *ggsn_ofd = NULL;
- struct osmo_sockaddr ggsn_addr;
- int send;
- send = gtphub_handle_buf(hub, GTPH_SIDE_SGSN, plane_idx, _sgsn_sender,
- buf, msg(hex_from_sgsn), now,
- &reply_buf, &ggsn_ofd, &ggsn_addr);
- LVL2_ASSERT(send > 0);
- LVL2_ASSERT(same_addr(&ggsn_addr, ggsn_receiver));
- LVL2_ASSERT(reply_is(hex_to_ggsn));
- return 1;
-}
-
-#define msg_from_ggsn_c(A,B,C,D) msg_from_ggsn(GTPH_PLANE_CTRL, A,B,C,D)
-#define msg_from_ggsn_u(A,B,C,D) msg_from_ggsn(GTPH_PLANE_USER, A,B,C,D)
-static int msg_from_ggsn(int plane_idx,
- struct osmo_sockaddr *ggsn_sender,
- struct osmo_sockaddr *sgsn_receiver,
- const char *msg_from_ggsn,
- const char *msg_to_sgsn)
-{
- struct osmo_fd *sgsn_ofd;
- struct osmo_sockaddr sgsn_addr;
- int send;
- send = gtphub_handle_buf(hub, GTPH_SIDE_GGSN, plane_idx, ggsn_sender,
- buf, msg(msg_from_ggsn), now,
- &reply_buf, &sgsn_ofd, &sgsn_addr);
- if (*msg_to_sgsn) {
- LVL2_ASSERT(send > 0);
- LVL2_ASSERT(same_addr(&sgsn_addr, sgsn_receiver));
- LVL2_ASSERT(reply_is(msg_to_sgsn));
- }
- else
- LVL2_ASSERT(send == 0);
- return 1;
-}
-
-static int create_pdp_ctx()
-{
- const char *gtp_req_from_sgsn =
- MSG_PDP_CTX_REQ("0068",
- "abcd",
- "60",
- "42000121436587f9",
- "00000123",
- "00000321",
- "0009""08696e7465726e6574", /* "(8)internet" */
- "0004""c0a82a17", /* same as default sgsn_sender */
- "0004""c0a82a17"
- );
- const char *gtp_req_to_ggsn =
- MSG_PDP_CTX_REQ("0068",
- "6d31", /* mapped seq ("abcd") */
- "23",
- "42000121436587f9",
- "00000001", /* Data I: tunnel's TEI */
- "00000001", /* Control: tunnel's TEI */
- "0009""08696e7465726e6574",
- "0004""7f000201", /* replaced with gtphub's ggsn ctrl */
- "0004""7f000202" /* replaced with gtphub's ggsn user */
- );
-
- LVL2_ASSERT(msg_from_sgsn_c(&sgsn_sender,
- &resolved_ggsn_addr,
- gtp_req_from_sgsn,
- gtp_req_to_ggsn));
- LVL2_ASSERT(was_resolved_for("240010123456789", "internet"));
-
- LVL2_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21945\n"));
-
- const char *gtp_resp_from_ggsn =
- MSG_PDP_CTX_RSP("004e",
- "00000001", /* destination TEI (sent in req above) */
- "6d31", /* mapped seq */
- "01", /* restart */
- "00000567", /* TEI U */
- "00000765", /* TEI C */
- "0004""c0a82b22", /* GSN addresses */
- "0004""c0a82b22" /* (== resolved_ggsn_addr) */
- );
- const char *gtp_resp_to_sgsn =
- MSG_PDP_CTX_RSP("004e",
- "00000321", /* unmapped TEI ("001") */
- "abcd", /* unmapped seq ("6d31") */
- "23",
- "00000001", /* mapped TEI from GGSN ("567") */
- "00000001", /* mapped TEI from GGSN ("765") */
- "0004""7f000101", /* gtphub's address towards SGSNs (Ctrl) */
- "0004""7f000102" /* gtphub's address towards SGSNs (User) */
- );
- /* The response should go back to whichever port the request came from
- * (unmapped by sequence nr) */
- LVL2_ASSERT(msg_from_ggsn_c(&resolved_ggsn_addr,
- &sgsn_sender,
- gtp_resp_from_ggsn,
- gtp_resp_to_sgsn));
-
- return 1;
-}
-
-#define MSG_DEL_PDP_CTX_REQ(tei, seq) \
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr. */ \
- "14" /* type 20: Delete PDP Context Request */ \
- "0008" /* msg length = 8 + len (2 octets) */ \
- tei /* TEI Ctrl */ \
- seq /* Sequence nr (2 octets) */ \
- "00" /* N-PDU 0 */ \
- "00" /* No extensions */ \
- /* IEs */ \
- "13fe" /* 19: Teardown ind = 0 */ \
- "1400" /* 20: NSAPI = 0*/ \
-
-#define MSG_DEL_PDP_CTX_RSP(tei, seq) \
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr. */ \
- "15" /* type 21: Delete PDP Context Response */ \
- "0006" /* msg length = 8 + len (2 octets) */ \
- tei /* TEI Ctrl */ \
- seq /* Sequence nr (2 octets) */ \
- "00" /* N-PDU 0 */ \
- "00" /* No extensions */ \
- /* IEs */ \
- "01" /* 1: Cause */ \
- "80" /* value = 0b10000000 = response, no rejection. */ \
-
-static int delete_pdp_ctx_from_sgsn(void)
-{
- now += GTPH_EXPIRE_QUICKLY_SECS + 1;
- gtphub_gc(hub, now);
-
- LVL2_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21945\n"));
-
- /* TEI Ctrl from above and next sequence after abcd. */
- const char *gtp_req_from_sgsn = MSG_DEL_PDP_CTX_REQ("00000001", "abce");
- const char *gtp_req_to_ggsn = MSG_DEL_PDP_CTX_REQ("00000765", "6d32");
-
- LVL2_ASSERT(msg_from_sgsn_c(&sgsn_sender,
- &resolved_ggsn_addr,
- gtp_req_from_sgsn,
- gtp_req_to_ggsn));
-
- /* 21945 + 31 = 21976 */
- LVL2_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21976\n"));
-
- const char *gtp_resp_from_ggsn =
- MSG_DEL_PDP_CTX_RSP("00000001", "6d32");
- const char *gtp_resp_to_sgsn =
- MSG_DEL_PDP_CTX_RSP("00000321", "abce");
-
- /* The response should go back to whichever port the request came from
- * (unmapped by sequence nr) */
- LVL2_ASSERT(msg_from_ggsn_c(&resolved_ggsn_addr,
- &sgsn_sender,
- gtp_resp_from_ggsn,
- gtp_resp_to_sgsn));
-
- LVL2_ASSERT(tunnels_are(""));
-
- return 1;
-}
-
-static int delete_pdp_ctx_from_ggsn(void)
-{
- now += GTPH_EXPIRE_QUICKLY_SECS + 1;
- gtphub_gc(hub, now);
-
- LVL2_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21945\n"));
-
- /* TEI Ctrl from above and next sequence after abcd. */
- const char *gtp_req_from_ggsn = MSG_DEL_PDP_CTX_REQ("00000001", "5432");
- const char *gtp_req_to_sgsn = MSG_DEL_PDP_CTX_REQ("00000321", "6d31");
-
- LVL2_ASSERT(msg_from_ggsn_c(&ggsn_sender,
- &resolved_sgsn_addr,
- gtp_req_from_ggsn,
- gtp_req_to_sgsn));
-
- /* 21945 + 31 = 21976 */
- LVL2_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21976\n"));
-
- const char *gtp_resp_from_sgsn =
- MSG_DEL_PDP_CTX_RSP("00000001", "6d31");
- const char *gtp_resp_to_ggsn =
- MSG_DEL_PDP_CTX_RSP("00000765", "5432");
-
- /* The response should go back to whichever port the request came from
- * (unmapped by sequence nr) */
- LVL2_ASSERT(msg_from_sgsn_c(&resolved_sgsn_addr,
- &ggsn_sender,
- gtp_resp_from_sgsn,
- gtp_resp_to_ggsn));
-
- LVL2_ASSERT(tunnels_are(""));
-
- return 1;
-}
-
-static void test_one_pdp_ctx(int del_from_side)
-{
- if (del_from_side == GTPH_SIDE_SGSN)
- LOG("test_one_pdp_ctx (del from SGSN)")
- else LOG("test_one_pdp_ctx (del from GGSN)");
- OSMO_ASSERT(setup_test_hub());
-
- OSMO_ASSERT(create_pdp_ctx());
-
- struct gtphub_peer_port *ggsn_port =
- gtphub_port_find_sa(&hub->to_gsns[GTPH_SIDE_GGSN][GTPH_PLANE_CTRL],
- &resolved_ggsn_addr);
- OSMO_ASSERT(ggsn_port);
- struct gtphub_peer *ggsn = ggsn_port->peer_addr->peer;
- /* now == 345; now + 30 == 375.
- * seq mapping from above:
- * 0xabcd == 43981 (sent in the packet)
- * 0x6d31 == 27953 (harcoded seq mapping start val) */
- OSMO_ASSERT(nr_map_is(&ggsn->seq_map, "(43981->27953@375), "));
-
- /* now == 345; now + (6 * 60 * 60) == 21600 + 345 == 21945.
- * 0x00000321 == 801 (TEI from SGSN Ctrl)
- * 0x00000123 == 291 (TEI from SGSN User)
- * 0x00000765 == 1893 (TEI from GGSN Ctrl)
- * 0x00000567 == 1383 (TEI from GGSN User)
- * Mapped TEIs should be 1 and 2. */
- OSMO_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21945\n"));
-
- if (del_from_side == GTPH_SIDE_SGSN) {
- OSMO_ASSERT(delete_pdp_ctx_from_sgsn());
- } else {
- OSMO_ASSERT(delete_pdp_ctx_from_ggsn());
- }
- OSMO_ASSERT(tunnels_are(""));
-
- OSMO_ASSERT(clear_test_hub());
-}
-
-static void test_user_data(void)
-{
- LOG("test_user_data");
-
- OSMO_ASSERT(setup_test_hub());
-
- OSMO_ASSERT(create_pdp_ctx());
-
- /* now == 345; now + (6 * 60 * 60) == 21600 + 345 == 21945. */
- OSMO_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21945\n"));
-
- LOG("- user data starts");
- /* Now expect default port numbers for User plane. */
- resolve_to_ggsn("192.168.43.34", 2152);
- resolve_to_sgsn("192.168.42.23", 2152);
-
- /* 10 minutes later */
- now += 600;
-
- const char *u_from_ggsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "ff" /* type 255: G-PDU */
- "0058" /* length: 88 + 8 octets == 96 */
- "00000001" /* mapped TEI for SGSN from create_pdp_ctx() */
- "0070" /* seq */
- "0000" /* No extensions */
- /* User data (ICMP packet), 96 - 12 = 84 octets */
- "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8"
- "4156000000007241010000000000101112131415161718191a1b1c1d1e1f"
- "202122232425262728292a2b2c2d2e2f3031323334353637"
- ;
- const char *u_to_sgsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "ff" /* type 255: G-PDU */
- "0058" /* length: 88 + 8 octets == 96 */
- "00000123" /* unmapped User TEI */
- "6d31" /* new mapped seq */
- "0000"
- "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8"
- "4156000000007241010000000000101112131415161718191a1b1c1d1e1f"
- "202122232425262728292a2b2c2d2e2f3031323334353637"
- ;
-
- /* This depends on create_pdp_ctx() sending resolved_sgsn_addr as GSN
- * Address IEs in the GGSN's Create PDP Ctx Response. */
- OSMO_ASSERT(msg_from_ggsn_u(&ggsn_sender,
- &resolved_sgsn_addr,
- u_from_ggsn,
- u_to_sgsn));
-
- /* Make sure the user plane messages have refreshed the TEI mapping
- * timeouts: 21945 + 600 == 22545. */
- OSMO_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @22545\n"));
-
- const char *u_from_sgsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "ff" /* type 255: G-PDU */
- "0058" /* length: 88 + 8 octets == 96 */
- "00000001" /* mapped User TEI for GGSN from create_pdp_ctx() */
- "1234" /* unknown seq */
- "0000" /* No extensions */
- /* User data (ICMP packet), 96 - 12 = 84 octets */
- "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8"
- "4156000000007241010000000000101112131415161718191a1b1c1d1e1f"
- "202122232425262728292a2b2c2d2e2f3031323334353637"
- ;
- const char *u_to_ggsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "ff" /* type 255: G-PDU */
- "0058" /* length: 88 + 8 octets == 96 */
- "00000567" /* unmapped User TEI */
- "6d31" /* unmapped seq */
- "0000"
- "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8"
- "4156000000007241010000000000101112131415161718191a1b1c1d1e1f"
- "202122232425262728292a2b2c2d2e2f3031323334353637"
- ;
-
- OSMO_ASSERT(msg_from_sgsn_u(&sgsn_sender,
- &resolved_ggsn_addr,
- u_from_sgsn,
- u_to_ggsn));
-
- /* Make sure the user plane messages have refreshed the TEI mapping
- * timeouts: 21945 + 600 == 22545. Both timeouts refreshed: */
- OSMO_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @22545\n"));
-
- OSMO_ASSERT(clear_test_hub());
-}
-
-static void test_reused_tei(void)
-{
- LOG("test_reused_tei");
-
- OSMO_ASSERT(setup_test_hub());
-
- OSMO_ASSERT(create_pdp_ctx());
-
- const char *gtp_req_from_sgsn =
- MSG_PDP_CTX_REQ("0068",
- "abce", /* Next seq */
- "60",
- "42000121436587f9",
- "00000123", /* Same TEIs as before */
- "00000321",
- "0009""08696e7465726e6574", /* "(8)internet" */
- "0004""c0a82a17", /* same as default sgsn_sender */
- "0004""c0a82a17"
- );
- const char *gtp_req_to_ggsn =
- MSG_PDP_CTX_REQ("0068",
- "6d32", /* mapped seq ("abce") */
- "23",
- "42000121436587f9",
- "00000002", /* mapped TEI Data I ("123") */
- "00000002", /* mapped TEI Control ("321") */
- "0009""08696e7465726e6574",
- "0004""7f000201", /* replaced with gtphub's ggsn ctrl */
- "0004""7f000202" /* replaced with gtphub's ggsn user */
- );
-
- OSMO_ASSERT(msg_from_sgsn_c(&sgsn_sender,
- &resolved_ggsn_addr,
- gtp_req_from_sgsn,
- gtp_req_to_ggsn));
- OSMO_ASSERT(was_resolved_for("240010123456789", "internet"));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=2:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21945\n"));
-
- const char *gtp_resp_from_ggsn =
- MSG_PDP_CTX_RSP("004e",
- "00000002", /* destination TEI (sent in req above) */
- "6d32", /* mapped seq */
- "01", /* restart */
- "00000567", /* TEI U */
- "00000765", /* TEI C */
- "0004""c0a82b22", /* GSN addresses */
- "0004""c0a82b22" /* (== resolved_ggsn_addr) */
- );
- const char *gtp_resp_to_sgsn =
- MSG_PDP_CTX_RSP("004e",
- "00000321", /* unmapped TEI ("001") */
- "abce", /* unmapped seq ("6d32") */
- "23",
- "00000002", /* mapped TEI from GGSN ("567") */
- "00000002", /* mapped TEI from GGSN ("765") */
- "0004""7f000101", /* gtphub's address towards SGSNs (Ctrl) */
- "0004""7f000102" /* gtphub's address towards SGSNs (User) */
- );
- /* The response should go back to whichever port the request came from
- * (unmapped by sequence nr) */
- OSMO_ASSERT(msg_from_ggsn_c(&resolved_ggsn_addr,
- &sgsn_sender,
- gtp_resp_from_ggsn,
- gtp_resp_to_sgsn));
-
- OSMO_ASSERT(clear_test_hub());
-}
-
-static void test_peer_restarted(void)
-{
- LOG("test_peer_restarted");
-
- OSMO_ASSERT(setup_test_hub());
-
- OSMO_ASSERT(create_pdp_ctx());
-
- now += 10;
-
- const char *gtp_req_from_sgsn =
- MSG_PDP_CTX_REQ("0068",
- "1234", /* brand new seq */
- "61", /* DIFFERING restart counter */
- "42000121436587f9",
- "00000abc",
- "00000cba",
- "0009""08696e7465726e6574", /* "(8)internet" */
- "0004""c0a82a17", /* same as default sgsn_sender */
- "0004""c0a82a17"
- );
- const char *gtp_req_to_ggsn =
- MSG_PDP_CTX_REQ("0068",
- "6d33", /* mapped seq ("1234") */
- "23",
- "42000121436587f9",
- "00000002", /* mapped TEI Data I ("123") */
- "00000002", /* mapped TEI Control ("321") */
- "0009""08696e7465726e6574",
- "0004""7f000201", /* replaced with gtphub's ggsn ctrl */
- "0004""7f000202" /* replaced with gtphub's ggsn user */
- );
-
- OSMO_ASSERT(msg_from_sgsn_c(&sgsn_sender,
- &resolved_ggsn_addr,
- gtp_req_from_sgsn,
- gtp_req_to_ggsn));
- OSMO_ASSERT(was_resolved_for("240010123456789", "internet"));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=2:"
- " 192.168.42.23 (TEI C=cba U=abc)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21955\n"
- "TEI=1:"
- " (uninitialized) (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21945\n"
- ));
-
- const char *gtp_resp_from_ggsn =
- MSG_PDP_CTX_RSP("004e",
- "00000002", /* destination TEI (sent in req above) */
- "6d33", /* mapped seq */
- "01", /* restart */
- "00000def", /* TEI U */
- "00000fde", /* TEI C */
- "0004""c0a82b22", /* GSN addresses */
- "0004""c0a82b22" /* (== resolved_ggsn_addr) */
- );
- const char *gtp_resp_to_sgsn =
- MSG_PDP_CTX_RSP("004e",
- "00000cba", /* unmapped TEI ("005") */
- "1234", /* unmapped seq ("6d32") */
- "23",
- "00000002", /* mapped TEI from GGSN ("567") */
- "00000002", /* mapped TEI from GGSN ("765") */
- "0004""7f000101", /* gtphub's address towards SGSNs (Ctrl) */
- "0004""7f000102" /* gtphub's address towards SGSNs (User) */
- );
- /* The response should go back to whichever port the request came from
- * (unmapped by sequence nr) */
- OSMO_ASSERT(msg_from_ggsn_c(&resolved_ggsn_addr,
- &sgsn_sender,
- gtp_resp_from_ggsn,
- gtp_resp_to_sgsn));
-
- OSMO_ASSERT(clear_test_hub());
-}
-
-static void test_peer_restarted_reusing_tei(void)
-{
- LOG("test_peer_restarted_reusing_tei");
-
- OSMO_ASSERT(setup_test_hub());
-
- OSMO_ASSERT(create_pdp_ctx());
-
- now += 10;
-
- const char *gtp_req_from_sgsn =
- MSG_PDP_CTX_REQ("0068",
- "1234", /* brand new seq */
- "61", /* DIFFERING restart counter */
- "42000121436587f9",
- "00000123", /* SAME TEI */
- "00000321",
- "0009""08696e7465726e6574", /* "(8)internet" */
- "0004""c0a82a17", /* same as default sgsn_sender */
- "0004""c0a82a17"
- );
- const char *gtp_req_to_ggsn =
- MSG_PDP_CTX_REQ("0068",
- "6d33", /* seq 6d31 + 2, after "out-of-band" Delete PDP Ctx
- due to differing restart counter. */
- "23",
- "42000121436587f9",
- "00000002", /* mapped TEI Data I ("123") */
- "00000002", /* mapped TEI Control ("321") */
- "0009""08696e7465726e6574",
- "0004""7f000201", /* replaced with gtphub's ggsn ctrl */
- "0004""7f000202" /* replaced with gtphub's ggsn user */
- );
-
- OSMO_ASSERT(msg_from_sgsn_c(&sgsn_sender,
- &resolved_ggsn_addr,
- gtp_req_from_sgsn,
- gtp_req_to_ggsn));
- OSMO_ASSERT(was_resolved_for("240010123456789", "internet"));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=2:" /* being established after restart */
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21955\n"
- "TEI=1:" /* invalidated due to restart */
- " (uninitialized) (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21945\n"
- ));
-
- /* An "out-of-band" delete request should have been sent to the GGSN
- * (checked by expected log output in gtphub_test.ok), and the GGSN
- * will (usually) send a Delete Response like this: */
- const char *gtp_del_resp_from_ggsn =
- MSG_DEL_PDP_CTX_RSP("00000001", "6d32");
-
- /* For this response (due to peer restart) we expect no forwarded
- * message. */
- OSMO_ASSERT(msg_from_ggsn_c(&resolved_ggsn_addr,
- &sgsn_sender,
- gtp_del_resp_from_ggsn,
- ""));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=2:" /* still being established after restart */
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21955\n"
- ));
-
- const char *gtp_resp_from_ggsn =
- MSG_PDP_CTX_RSP("004e",
- "00000002", /* destination TEI (sent in req above) */
- "6d33", /* mapped seq */
- "01", /* restart */
- "00000def", /* TEI U */
- "00000fde", /* TEI C */
- "0004""c0a82b22", /* GSN addresses */
- "0004""c0a82b22" /* (== resolved_ggsn_addr) */
- );
- const char *gtp_resp_to_sgsn =
- MSG_PDP_CTX_RSP("004e",
- "00000321", /* unmapped TEI ("005") */
- "1234", /* unmapped seq ("6d33") */
- "23",
- "00000002", /* mapped TEI from GGSN ("567") */
- "00000002", /* mapped TEI from GGSN ("765") */
- "0004""7f000101", /* gtphub's address towards SGSNs (Ctrl) */
- "0004""7f000102" /* gtphub's address towards SGSNs (User) */
- );
- /* The response should go back to whichever port the request came from
- * (unmapped by sequence nr) */
- OSMO_ASSERT(msg_from_ggsn_c(&resolved_ggsn_addr,
- &sgsn_sender,
- gtp_resp_from_ggsn,
- gtp_resp_to_sgsn));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=2:" /* still being established after restart */
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=fde U=def)"
- " @21955\n"
- ));
-
- OSMO_ASSERT(clear_test_hub());
-}
-
-static void test_sgsn_behind_nat(void)
-{
- LOG("test_user_data");
-
- OSMO_ASSERT(setup_test_hub());
- hub->sgsn_use_sender = 1; /* <-- Main difference to test_user_data() */
- resolve_to_sgsn("192.168.42.23", 423); /* Same as sender */
-
- OSMO_ASSERT(create_pdp_ctx());
-
- /* now == 345; now + (6 * 60 * 60) == 21600 + 345 == 21945. */
- OSMO_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21945\n"));
-
- LOG("- user data starts");
- /* Now expect default port numbers for User plane -- except SGSN. */
- resolve_to_ggsn("192.168.43.34", 2152);
-
- /* 10 minutes later */
- now += 600;
-
- const char *u_from_ggsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "ff" /* type 255: G-PDU */
- "0058" /* length: 88 + 8 octets == 96 */
- "00000001" /* mapped User TEI for SGSN from create_pdp_ctx() */
- "0070" /* seq */
- "0000" /* No extensions */
- /* User data (ICMP packet), 96 - 12 = 84 octets */
- "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8"
- "4156000000007241010000000000101112131415161718191a1b1c1d1e1f"
- "202122232425262728292a2b2c2d2e2f3031323334353637"
- ;
- const char *u_to_sgsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "ff" /* type 255: G-PDU */
- "0058" /* length: 88 + 8 octets == 96 */
- "00000123" /* unmapped User TEI */
- "6d31" /* new mapped seq */
- "0000"
- "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8"
- "4156000000007241010000000000101112131415161718191a1b1c1d1e1f"
- "202122232425262728292a2b2c2d2e2f3031323334353637"
- ;
-
- /* This depends on create_pdp_ctx() sending resolved_sgsn_addr as GSN
- * Address IEs in the GGSN's Create PDP Ctx Response. */
- OSMO_ASSERT(msg_from_ggsn_u(&ggsn_sender,
- &resolved_sgsn_addr,
- u_from_ggsn,
- u_to_sgsn));
-
- /* Make sure the user plane messages have refreshed the TEI mapping
- * timeouts: 21945 + 600 == 22545. */
- OSMO_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @22545\n"));
-
- const char *u_from_sgsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "ff" /* type 255: G-PDU */
- "0058" /* length: 88 + 8 octets == 96 */
- "00000001" /* mapped User TEI for GGSN from create_pdp_ctx() */
- "1234" /* unknown seq */
- "0000" /* No extensions */
- /* User data (ICMP packet), 96 - 12 = 84 octets */
- "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8"
- "4156000000007241010000000000101112131415161718191a1b1c1d1e1f"
- "202122232425262728292a2b2c2d2e2f3031323334353637"
- ;
- const char *u_to_ggsn =
- "32" /* 0b001'1 0010: version 1, protocol GTP, with seq nr */
- "ff" /* type 255: G-PDU */
- "0058" /* length: 88 + 8 octets == 96 */
- "00000567" /* unmapped User TEI */
- "6d31" /* unmapped seq */
- "0000"
- "45000054daee40004001f7890a172a010a172a02080060d23f590071e3f8"
- "4156000000007241010000000000101112131415161718191a1b1c1d1e1f"
- "202122232425262728292a2b2c2d2e2f3031323334353637"
- ;
-
- OSMO_ASSERT(msg_from_sgsn_u(&sgsn_sender,
- &resolved_ggsn_addr,
- u_from_sgsn,
- u_to_ggsn));
-
- /* Make sure the user plane messages have refreshed the TEI mapping
- * timeouts: 21945 + 600 == 22545. Both timeouts refreshed: */
- OSMO_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @22545\n"));
-
- OSMO_ASSERT(clear_test_hub());
-}
-
-void test_parallel_context_creation(void)
-{
- LOG("test_parallel_context_creation");
-
- OSMO_ASSERT(setup_test_hub());
-
- const char *gtp_req_from_sgsn1 =
- MSG_PDP_CTX_REQ("0068",
- "abcd",
- "60",
- "42000121436587f9",
- "00000123",
- "00000321",
- "0009""08696e7465726e6574", /* "(8)internet" */
- "0004""c0a82a17", /* same as default sgsn_sender */
- "0004""c0a82a17"
- );
- const char *gtp_req_to_ggsn1 =
- MSG_PDP_CTX_REQ("0068",
- "6d31", /* mapped seq ("abcd") */
- "23",
- "42000121436587f9",
- "00000001", /* mapped TEI Data I ("123") */
- "00000001", /* mapped TEI Control ("321") */
- "0009""08696e7465726e6574",
- "0004""7f000201", /* replaced with gtphub's ggsn ctrl */
- "0004""7f000202" /* replaced with gtphub's ggsn user */
- );
-
- OSMO_ASSERT(msg_from_sgsn_c(&sgsn_sender,
- &resolved_ggsn_addr,
- gtp_req_from_sgsn1,
- gtp_req_to_ggsn1));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21945\n"));
-
- now ++;
-
- const char *gtp_req_from_sgsn2 =
- MSG_PDP_CTX_REQ("0068",
- "abce",
- "60",
- "42000121436588f9",
- "00000124",
- "00000322",
- "0009""08696e7465726e6574", /* "(8)internet" */
- "0004""c0a82a17", /* same as default sgsn_sender */
- "0004""c0a82a17"
- );
- const char *gtp_req_to_ggsn2 =
- MSG_PDP_CTX_REQ("0068",
- "6d32", /* mapped seq ("abce") */
- "23",
- "42000121436588f9",
- "00000002", /* mapped TEI Data I ("124") */
- "00000002", /* mapped TEI Control ("322") */
- "0009""08696e7465726e6574",
- "0004""7f000201", /* replaced with gtphub's ggsn ctrl */
- "0004""7f000202" /* replaced with gtphub's ggsn user */
- );
-
- OSMO_ASSERT(msg_from_sgsn_c(&sgsn_sender,
- &resolved_ggsn_addr,
- gtp_req_from_sgsn2,
- gtp_req_to_ggsn2));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=2:"
- " 192.168.42.23 (TEI C=322 U=124)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21946\n"
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21945\n"
- ));
-
- now ++;
-
- const char *gtp_resp_from_ggsn1 =
- MSG_PDP_CTX_RSP("004e",
- "00000001", /* destination TEI (sent in req above) */
- "6d31", /* mapped seq */
- "01", /* restart */
- "00000567", /* TEI U */
- "00000765", /* TEI C */
- "0004""c0a82b22", /* GSN addresses */
- "0004""c0a82b22" /* (== resolved_ggsn_addr) */
- );
- const char *gtp_resp_to_sgsn1 =
- MSG_PDP_CTX_RSP("004e",
- "00000321", /* unmapped TEI ("001") */
- "abcd", /* unmapped seq ("6d31") */
- "23",
- "00000001", /* mapped TEI from GGSN ("567") */
- "00000001", /* mapped TEI from GGSN ("765") */
- "0004""7f000101", /* gtphub's address towards SGSNs (Ctrl) */
- "0004""7f000102" /* gtphub's address towards SGSNs (User) */
- );
-
- OSMO_ASSERT(msg_from_ggsn_c(&resolved_ggsn_addr,
- &sgsn_sender,
- gtp_resp_from_ggsn1,
- gtp_resp_to_sgsn1));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=2:"
- " 192.168.42.23 (TEI C=322 U=124)"
- " <-> 192.168.43.34/(uninitialized) (TEI C=0 U=0)"
- " @21946\n"
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21947\n"
- ));
-
- now ++;
-
- const char *gtp_resp_from_ggsn2 =
- MSG_PDP_CTX_RSP("004e",
- "00000002", /* destination TEI (sent in req above) */
- "6d32", /* mapped seq */
- "01", /* restart */
- "00000568", /* TEI U */
- "00000766", /* TEI C */
- "0004""c0a82b22", /* GSN addresses */
- "0004""c0a82b22" /* (== resolved_ggsn_addr) */
- );
- const char *gtp_resp_to_sgsn2 =
- MSG_PDP_CTX_RSP("004e",
- "00000322", /* unmapped TEI ("001") */
- "abce", /* unmapped seq ("6d31") */
- "23",
- "00000002", /* mapped TEI from GGSN ("567") */
- "00000002", /* mapped TEI from GGSN ("765") */
- "0004""7f000101", /* gtphub's address towards SGSNs (Ctrl) */
- "0004""7f000102" /* gtphub's address towards SGSNs (User) */
- );
-
- OSMO_ASSERT(msg_from_ggsn_c(&resolved_ggsn_addr,
- &sgsn_sender,
- gtp_resp_from_ggsn2,
- gtp_resp_to_sgsn2));
-
- OSMO_ASSERT(tunnels_are(
- "TEI=2:"
- " 192.168.42.23 (TEI C=322 U=124)"
- " <-> 192.168.43.34 (TEI C=766 U=568)"
- " @21948\n"
- "TEI=1:"
- " 192.168.42.23 (TEI C=321 U=123)"
- " <-> 192.168.43.34 (TEI C=765 U=567)"
- " @21947\n"
- ));
-
- OSMO_ASSERT(clear_test_hub());
-}
-
-
-static struct log_info_cat gtphub_categories[] = {
- [DGTPHUB] = {
- .name = "DGTPHUB",
- .description = "GTP Hub",
- .color = "\033[1;33m",
- .enabled = 1, .loglevel = LOGL_DEBUG,
- },
-};
-
-static struct log_info info = {
- .cat = gtphub_categories,
- .num_cat = ARRAY_SIZE(gtphub_categories),
-};
-
-int main(int argc, char **argv)
-{
- osmo_init_logging(&info);
- osmo_gtphub_ctx = talloc_named_const(NULL, 0, "osmo_gtphub");
-
- test_nr_map_basic();
- test_nr_map_wrap();
- test_expiry();
- test_echo();
- test_one_pdp_ctx(GTPH_SIDE_SGSN);
- test_one_pdp_ctx(GTPH_SIDE_GGSN);
- test_user_data();
- test_reused_tei();
- test_peer_restarted();
- test_peer_restarted_reusing_tei();
- test_sgsn_behind_nat();
- test_parallel_context_creation();
- printf("Done\n");
-
- talloc_report_full(osmo_gtphub_ctx, stderr);
- OSMO_ASSERT(talloc_total_blocks(osmo_gtphub_ctx) == 1);
- return 0;
-}
-
diff --git a/tests/gtphub/gtphub_test.ok b/tests/gtphub/gtphub_test.ok
deleted file mode 100644
index e60d5f2b2..000000000
--- a/tests/gtphub/gtphub_test.ok
+++ /dev/null
@@ -1,42 +0,0 @@
-test_echo
-test_one_pdp_ctx (del from SGSN)
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-test_one_pdp_ctx (del from GGSN)
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-test_user_data
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-- user data starts
-test_reused_tei
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-test_peer_restarted
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-Out-of-band gtphub_write(16):
-to 192.168.43.34 port 2123
-32 14 00 08 00 00 07 65 6d 32 00 00 13 ff 14 00
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-test_peer_restarted_reusing_tei
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-Out-of-band gtphub_write(16):
-to 192.168.43.34 port 2123
-32 14 00 08 00 00 07 65 6d 32 00 00 13 ff 14 00
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-test_user_data
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-- user data starts
-test_parallel_context_creation
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
-- __wrap_gtphub_resolve_ggsn_addr():
- returning GGSN addr from imsi 240010123456889 ni internet: 192.168.43.34 port 2123
-Done
diff --git a/tests/msc_vlr/Makefile.am b/tests/msc_vlr/Makefile.am
deleted file mode 100644
index 10184fa4b..000000000
--- a/tests/msc_vlr/Makefile.am
+++ /dev/null
@@ -1,168 +0,0 @@
-AM_CPPFLAGS = \
- $(all_includes) \
- -I$(top_srcdir)/include \
- $(NULL)
-
-AM_CFLAGS = \
- -Wall \
- -ggdb3 \
- $(LIBOSMOCORE_CFLAGS) \
- $(LIBOSMOGSM_CFLAGS) \
- $(LIBSMPP34_CFLAGS) \
- $(LIBCRYPTO_CFLAGS) \
- $(LIBOSMOVTY_CFLAGS) \
- $(LIBOSMOABIS_CFLAGS) \
- $(LIBOSMOSIGTRAN_CFLAGS) \
- $(LIBOSMORANAP_CFLAGS) \
- $(LIBASN1C_CFLAGS) \
- $(LIBOSMOLEGACYMGCP_CFLAGS) \
- $(NULL)
-
-noinst_HEADERS = \
- msc_vlr_tests.h \
- $(NULL)
-
-EXTRA_DIST = \
- msc_vlr_test_no_authen.ok \
- msc_vlr_test_no_authen.err \
- msc_vlr_test_gsm_authen.ok \
- msc_vlr_test_gsm_authen.err \
- msc_vlr_test_gsm_ciph.ok \
- msc_vlr_test_gsm_ciph.err \
- msc_vlr_test_umts_authen.ok \
- msc_vlr_test_umts_authen.err \
- msc_vlr_test_hlr_reject.ok \
- msc_vlr_test_hlr_reject.err \
- msc_vlr_test_hlr_timeout.ok \
- msc_vlr_test_hlr_timeout.err \
- msc_vlr_test_ms_timeout.ok \
- msc_vlr_test_ms_timeout.err \
- msc_vlr_test_reject_concurrency.ok \
- msc_vlr_test_reject_concurrency.err \
- msc_vlr_test_rest.ok \
- msc_vlr_test_rest.err \
- $(NULL)
-
-COMMON_LDADD = \
- $(top_builddir)/src/libmsc/libmsc.a \
- $(top_builddir)/src/libcommon-cs/libcommon-cs.a \
- $(top_builddir)/src/libvlr/libvlr.a \
- $(top_builddir)/src/libbsc/libbsc.a \
- $(top_builddir)/src/libtrau/libtrau.a \
- $(top_builddir)/src/libcommon/libcommon.a \
- $(LIBSMPP34_LIBS) \
- $(LIBOSMOCORE_LIBS) \
- $(LIBOSMOGSM_LIBS) \
- $(LIBCRYPTO_LIBS) \
- $(LIBOSMOVTY_LIBS) \
- $(LIBOSMOABIS_LIBS) \
- $(LIBOSMOSIGTRAN_LIBS) \
- $(LIBOSMORANAP_LIBS) \
- $(LIBASN1C_LIBS) \
- $(LIBOSMOLEGACYMGCP_LIBS) \
- $(LIBRARY_GSM) \
- -ldbi \
- -lrt \
- $(NULL)
-
-COMMON_LDFLAGS = \
- -Wl,--wrap=gsup_client_create \
- -Wl,--wrap=gsup_client_send \
- -Wl,--wrap=a_iface_tx_dtap \
- -Wl,--wrap=a_iface_tx_clear_cmd \
- -Wl,--wrap=a_iface_tx_paging \
- -Wl,--wrap=ranap_iu_tx \
- -Wl,--wrap=ranap_iu_tx_release \
- -Wl,--wrap=ranap_iu_tx_common_id \
- -Wl,--wrap=ranap_iu_page_cs \
- -Wl,--wrap=msc_stop_paging \
- -Wl,--wrap=gsm340_gen_scts \
- -Wl,--wrap=RAND_bytes \
- $(NULL)
-
-noinst_PROGRAMS = \
- msc_vlr_test_no_authen \
- msc_vlr_test_gsm_authen \
- msc_vlr_test_gsm_ciph \
- msc_vlr_test_umts_authen \
- msc_vlr_test_hlr_reject \
- msc_vlr_test_hlr_timeout \
- msc_vlr_test_ms_timeout \
- msc_vlr_test_reject_concurrency \
- msc_vlr_test_rest \
- $(NULL)
-
-msc_vlr_test_no_authen_SOURCES = \
- msc_vlr_test_no_authen.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_no_authen_LDADD = $(COMMON_LDADD)
-msc_vlr_test_no_authen_LDFLAGS = $(COMMON_LDFLAGS)
-
-msc_vlr_test_gsm_authen_SOURCES = \
- msc_vlr_test_gsm_authen.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_gsm_authen_LDADD = $(COMMON_LDADD)
-msc_vlr_test_gsm_authen_LDFLAGS = $(COMMON_LDFLAGS)
-
-msc_vlr_test_gsm_ciph_SOURCES = \
- msc_vlr_test_gsm_ciph.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_gsm_ciph_LDADD = $(COMMON_LDADD)
-msc_vlr_test_gsm_ciph_LDFLAGS = $(COMMON_LDFLAGS)
-
-msc_vlr_test_umts_authen_SOURCES = \
- msc_vlr_test_umts_authen.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_umts_authen_LDADD = $(COMMON_LDADD)
-msc_vlr_test_umts_authen_LDFLAGS = $(COMMON_LDFLAGS)
-
-msc_vlr_test_hlr_reject_SOURCES = \
- msc_vlr_test_hlr_reject.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_hlr_reject_LDADD = $(COMMON_LDADD)
-msc_vlr_test_hlr_reject_LDFLAGS = $(COMMON_LDFLAGS)
-
-msc_vlr_test_hlr_timeout_SOURCES = \
- msc_vlr_test_hlr_timeout.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_hlr_timeout_LDADD = $(COMMON_LDADD)
-msc_vlr_test_hlr_timeout_LDFLAGS = $(COMMON_LDFLAGS)
-
-msc_vlr_test_ms_timeout_SOURCES = \
- msc_vlr_test_ms_timeout.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_ms_timeout_LDADD = $(COMMON_LDADD)
-msc_vlr_test_ms_timeout_LDFLAGS = $(COMMON_LDFLAGS)
-
-msc_vlr_test_reject_concurrency_SOURCES = \
- msc_vlr_test_reject_concurrency.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_reject_concurrency_LDADD = $(COMMON_LDADD)
-msc_vlr_test_reject_concurrency_LDFLAGS = $(COMMON_LDFLAGS)
-
-msc_vlr_test_rest_SOURCES = \
- msc_vlr_test_rest.c \
- msc_vlr_tests.c \
- $(NULL)
-msc_vlr_test_rest_LDADD = $(COMMON_LDADD)
-msc_vlr_test_rest_LDFLAGS = $(COMMON_LDFLAGS)
-
-.PHONY: update_exp
-update_exp:
- $(builddir)/msc_vlr_test_no_authen >$(srcdir)/msc_vlr_test_no_authen.ok 2>$(srcdir)/msc_vlr_test_no_authen.err
- $(builddir)/msc_vlr_test_gsm_authen >$(srcdir)/msc_vlr_test_gsm_authen.ok 2>$(srcdir)/msc_vlr_test_gsm_authen.err
- $(builddir)/msc_vlr_test_gsm_ciph >$(srcdir)/msc_vlr_test_gsm_ciph.ok 2>$(srcdir)/msc_vlr_test_gsm_ciph.err
- $(builddir)/msc_vlr_test_umts_authen >$(srcdir)/msc_vlr_test_umts_authen.ok 2>$(srcdir)/msc_vlr_test_umts_authen.err
- $(builddir)/msc_vlr_test_hlr_reject >$(srcdir)/msc_vlr_test_hlr_reject.ok 2>$(srcdir)/msc_vlr_test_hlr_reject.err
- $(builddir)/msc_vlr_test_hlr_timeout >$(srcdir)/msc_vlr_test_hlr_timeout.ok 2>$(srcdir)/msc_vlr_test_hlr_timeout.err
- $(builddir)/msc_vlr_test_ms_timeout >$(srcdir)/msc_vlr_test_ms_timeout.ok 2>$(srcdir)/msc_vlr_test_ms_timeout.err
- $(builddir)/msc_vlr_test_reject_concurrency >$(srcdir)/msc_vlr_test_reject_concurrency.ok 2>$(srcdir)/msc_vlr_test_reject_concurrency.err
- $(builddir)/msc_vlr_test_rest >$(srcdir)/msc_vlr_test_rest.ok 2>$(srcdir)/msc_vlr_test_rest.err
diff --git a/tests/msc_vlr/msc_vlr_test_gsm_authen.c b/tests/msc_vlr/msc_vlr_test_gsm_authen.c
deleted file mode 100644
index 70b7614d0..000000000
--- a/tests/msc_vlr/msc_vlr_test_gsm_authen.c
+++ /dev/null
@@ -1,924 +0,0 @@
-/* Osmocom MSC+VLR end-to-end tests */
-
-/* (C) 2017 by sysmocom s.f.m.c. GmbH <info@sysmocom.de>
- *
- * All Rights Reserved
- *
- * Author: Neels Hofmeyr <nhofmeyr@sysmocom.de>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#include "msc_vlr_tests.h"
-
-void test_gsm_authen()
-{
- struct vlr_subscr *vsub;
- const char *imsi = "901700000004620";
-
- comment_start();
-
- net->authentication_required = true;
-
- btw("Location Update request causes a GSUP Send Auth Info request to HLR");
- lu_result_sent = RES_NONE;
- gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
- OSMO_ASSERT(gsup_tx_confirmed);
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("from HLR, rx _SEND_AUTH_INFO_RESULT; VLR sends Auth Req to MS");
- auth_request_sent = false;
- auth_request_expect_rand = "585df1ae287f6e273dce07090d61320b";
- auth_request_expect_autn = NULL;
- /* Based on a Ki of 000102030405060708090a0b0c0d0e0f */
- gsup_rx("0a"
- /* imsi */
- "0108" "09710000004026f0"
- /* 5 auth vectors... */
- /* TL TL rand */
- "0322" "2010" "585df1ae287f6e273dce07090d61320b"
- /* TL sres TL kc */
- "2104" "2d8b2c3e" "2208" "61855fb81fc2a800"
- "0322" "2010" "12aca96fb4ffdea5c985cbafa9b6e18b"
- "2104" "20bde240" "2208" "07fa7502e07e1c00"
- "0322" "2010" "e7c03ba7cf0e2fde82b2dc4d63077d42"
- "2104" "a29514ae" "2208" "e2b234f807886400"
- "0322" "2010" "fa8f20b781b5881329d4fea26b1a3c51"
- "2104" "5afc8d72" "2208" "2392f14f709ae000"
- "0322" "2010" "0fd4cc8dbe8715d1f439e304edfd68dc"
- "2104" "bc8d1c5b" "2208" "da7cdd6bfe2d7000",
- NULL);
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("If the HLR were to send a GSUP _UPDATE_LOCATION_RESULT we'd still reject");
- gsup_rx("06010809710000004026f0", NULL);
- EXPECT_ACCEPTED(false);
-
- thwart_rx_non_initial_requests();
-
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("MS sends Authen Response, VLR accepts and sends GSUP LU Req to HLR");
- gsup_expect_tx("04010809710000004026f0");
- ms_sends_msg("05542d8b2c3e");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR sends _INSERT_DATA_REQUEST, VLR responds with _INSERT_DATA_RESULT");
- gsup_rx("10010809710000004026f00804036470f1",
- "12010809710000004026f0");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR also sends GSUP _UPDATE_LOCATION_RESULT");
- expect_bssap_clear();
- gsup_rx("06010809710000004026f0", NULL);
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("LU was successful, and the conn has already been closed");
- VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d");
- EXPECT_CONN_COUNT(0);
-
- BTW("after a while, a new conn sends a CM Service Request. VLR responds with Auth Req, 2nd auth vector");
- auth_request_sent = false;
- auth_request_expect_rand = "12aca96fb4ffdea5c985cbafa9b6e18b";
- cm_service_result_sent = RES_NONE;
- ms_sends_msg("05247803305886089910070000006402");
- OSMO_ASSERT(g_conn);
- OSMO_ASSERT(g_conn->conn_fsm);
- OSMO_ASSERT(g_conn->vsub);
- VERBOSE_ASSERT(cm_service_result_sent, == RES_NONE, "%d");
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
-
- btw("needs auth, not yet accepted");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("MS sends Authen Response, VLR accepts with a CM Service Accept");
- gsup_expect_tx(NULL);
- ms_sends_msg("0554" "20bde240" /* 2nd vector's sres, s.a. */);
- VERBOSE_ASSERT(cm_service_result_sent, == RES_ACCEPT, "%d");
-
- btw("a USSD request is serviced");
- dtap_expect_tx_ussd("Your extension is 46071\r");
- expect_bssap_clear();
- ms_sends_msg("0b3b1c15a11302010002013b300b04010f0406aa510c061b017f0100");
- OSMO_ASSERT(dtap_tx_confirmed);
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("all requests serviced, conn has been released");
- EXPECT_CONN_COUNT(0);
-
- BTW("an SMS is sent, MS is paged");
- paging_expect_imsi(imsi);
- paging_sent = false;
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 0, "%d");
-
- send_sms(vsub, vsub,
- "Privacy in residential applications is a desirable"
- " marketing option.");
-
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 1, "%d");
- vlr_subscr_put(vsub);
- vsub = NULL;
- VERBOSE_ASSERT(paging_sent, == true, "%d");
- VERBOSE_ASSERT(paging_stopped, == false, "%d");
-
- btw("the subscriber and its pending request should remain");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 1, "%d");
- vlr_subscr_put(vsub);
-
- btw("MS replies with Paging Response, and VLR sends Auth Request with third key");
- auth_request_sent = false;
- auth_request_expect_rand = "e7c03ba7cf0e2fde82b2dc4d63077d42";
- ms_sends_msg("06270703305882089910070000006402");
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
-
- btw("needs auth, not yet accepted");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("MS sends Authen Response, VLR accepts and sends pending SMS");
- dtap_expect_tx("09" /* SMS messages */
- "01" /* CP-DATA */
- "58" /* length */
- "01" /* Network to MS */
- "00" /* reference */
- /* originator (gsm411_send_sms() hardcodes this weird nr) */
- "0791" "447758100650" /* 447785016005 */
- "00" /* dest */
- /* SMS TPDU */
- "4c" /* len */
- "00" /* SMS deliver */
- "05806470f1" /* originating address 46071 */
- "00" /* TP-PID */
- "00" /* GSM default alphabet */
- "071010" /* Y-M-D (from wrapped gsm340_gen_scts())*/
- "000000" /* H-M-S */
- "00" /* GMT+0 */
- "44" /* data length */
- "5079da1e1ee7416937485e9ea7c965373d1d6683c270383b3d0e"
- "d3d36ff71c949e83c22072799e9687c5ec32a81d96afcbf4b4fb"
- "0c7ac3e9e9b7db05");
- ms_sends_msg("0554" "a29514ae" /* 3rd vector's sres, s.a. */);
- VERBOSE_ASSERT(dtap_tx_confirmed, == true, "%d");
- VERBOSE_ASSERT(paging_stopped, == true, "%d");
-
- btw("SMS was delivered, no requests pending for subscr");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 0, "%d");
- vlr_subscr_put(vsub);
-
- btw("conn is still open to wait for SMS ack dance");
- EXPECT_CONN_COUNT(1);
-
- btw("MS replies with CP-ACK for received SMS");
- ms_sends_msg("8904");
- EXPECT_CONN_COUNT(1);
-
- btw("MS also sends RP-ACK, MSC in turn sends CP-ACK for that");
- dtap_expect_tx("0904");
- expect_bssap_clear();
- ms_sends_msg("890106020041020000");
- VERBOSE_ASSERT(dtap_tx_confirmed, == true, "%d");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("SMS is done, conn is gone");
- EXPECT_CONN_COUNT(0);
-
- BTW("subscriber detaches");
- expect_bssap_clear();
- ms_sends_msg("050130089910070000006402");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- EXPECT_CONN_COUNT(0);
- clear_vlr();
- comment_end();
-}
-
-void test_gsm_authen_tmsi()
-{
- struct vlr_subscr *vsub;
- const char *imsi = "901700000004620";
-
- comment_start();
-
- net->authentication_required = true;
- net->vlr->cfg.assign_tmsi = true;
-
- btw("Location Update request causes a GSUP Send Auth Info request to HLR");
- lu_result_sent = RES_NONE;
- gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
- OSMO_ASSERT(gsup_tx_confirmed);
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("from HLR, rx _SEND_AUTH_INFO_RESULT; VLR sends Auth Req to MS");
- auth_request_sent = false;
- auth_request_expect_rand = "585df1ae287f6e273dce07090d61320b";
- auth_request_expect_autn = NULL;
- /* Based on a Ki of 000102030405060708090a0b0c0d0e0f */
- gsup_rx("0a"
- /* imsi */
- "0108" "09710000004026f0"
- /* 5 auth vectors... */
- /* TL TL rand */
- "0322" "2010" "585df1ae287f6e273dce07090d61320b"
- /* TL sres TL kc */
- "2104" "2d8b2c3e" "2208" "61855fb81fc2a800"
- "0322" "2010" "12aca96fb4ffdea5c985cbafa9b6e18b"
- "2104" "20bde240" "2208" "07fa7502e07e1c00"
- "0322" "2010" "e7c03ba7cf0e2fde82b2dc4d63077d42"
- "2104" "a29514ae" "2208" "e2b234f807886400"
- "0322" "2010" "fa8f20b781b5881329d4fea26b1a3c51"
- "2104" "5afc8d72" "2208" "2392f14f709ae000"
- "0322" "2010" "0fd4cc8dbe8715d1f439e304edfd68dc"
- "2104" "bc8d1c5b" "2208" "da7cdd6bfe2d7000",
- NULL);
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("If the HLR were to send a GSUP _UPDATE_LOCATION_RESULT we'd still reject");
- gsup_rx("06010809710000004026f0", NULL);
- EXPECT_ACCEPTED(false);
-
- thwart_rx_non_initial_requests();
-
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("MS sends Authen Response, VLR accepts and sends GSUP LU Req to HLR");
- gsup_expect_tx("04010809710000004026f0");
- ms_sends_msg("05542d8b2c3e");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR sends _INSERT_DATA_REQUEST, VLR responds with _INSERT_DATA_RESULT");
- gsup_rx("10010809710000004026f00804036470f1",
- "12010809710000004026f0");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR also sends GSUP _UPDATE_LOCATION_RESULT");
- gsup_rx("06010809710000004026f0", NULL);
-
- btw("a LU Accept with a new TMSI was sent, waiting for TMSI Realloc Compl");
- EXPECT_CONN_COUNT(1);
- VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("even though the TMSI is not acked, we can already find the subscr with it");
- vsub = vlr_subscr_find_by_tmsi(net->vlr, 0x03020100);
- VERBOSE_ASSERT(vsub != NULL, == true, "%d");
- VERBOSE_ASSERT(strcmp(vsub->imsi, imsi), == 0, "%d");
- VERBOSE_ASSERT(vsub->tmsi_new, == 0x03020100, "0x%08x");
- VERBOSE_ASSERT(vsub->tmsi, == GSM_RESERVED_TMSI, "0x%08x");
- vlr_subscr_put(vsub);
-
- btw("MS sends TMSI Realloc Complete");
- expect_bssap_clear();
- ms_sends_msg("055b");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("LU was successful, and the conn has already been closed");
- EXPECT_CONN_COUNT(0);
-
- btw("Subscriber has the new TMSI");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- VERBOSE_ASSERT(vsub != NULL, == true, "%d");
- VERBOSE_ASSERT(strcmp(vsub->imsi, imsi), == 0, "%d");
- VERBOSE_ASSERT(vsub->tmsi_new, == GSM_RESERVED_TMSI, "0x%08x");
- VERBOSE_ASSERT(vsub->tmsi, == 0x03020100, "0x%08x");
- vlr_subscr_put(vsub);
-
- BTW("after a while, a new conn sends a CM Service Request using above TMSI. VLR responds with Auth Req, 2nd auth vector");
- auth_request_sent = false;
- auth_request_expect_rand = "12aca96fb4ffdea5c985cbafa9b6e18b";
- cm_service_result_sent = RES_NONE;
- ms_sends_msg("05247803305886" "05f4" "03020100");
- OSMO_ASSERT(g_conn);
- OSMO_ASSERT(g_conn->conn_fsm);
- OSMO_ASSERT(g_conn->vsub);
- VERBOSE_ASSERT(cm_service_result_sent, == RES_NONE, "%d");
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
-
- btw("needs auth, not yet accepted");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("MS sends Authen Response, VLR accepts with a CM Service Accept");
- gsup_expect_tx(NULL);
- ms_sends_msg("0554" "20bde240" /* 2nd vector's sres, s.a. */);
- VERBOSE_ASSERT(cm_service_result_sent, == RES_ACCEPT, "%d");
-
- btw("a USSD request is serviced");
- dtap_expect_tx_ussd("Your extension is 46071\r");
- expect_bssap_clear();
- ms_sends_msg("0b3b1c15a11302010002013b300b04010f0406aa510c061b017f0100");
- OSMO_ASSERT(dtap_tx_confirmed);
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("all requests serviced, conn has been released");
- EXPECT_CONN_COUNT(0);
-
- BTW("an SMS is sent, MS is paged");
- paging_expect_tmsi(0x03020100);
- paging_sent = false;
- vsub = vlr_subscr_find_by_tmsi(net->vlr, 0x03020100);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 0, "%d");
-
- send_sms(vsub, vsub,
- "Privacy in residential applications is a desirable"
- " marketing option.");
-
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 1, "%d");
- vlr_subscr_put(vsub);
- vsub = NULL;
- VERBOSE_ASSERT(paging_sent, == true, "%d");
- VERBOSE_ASSERT(paging_stopped, == false, "%d");
-
- btw("the subscriber and its pending request should remain");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 1, "%d");
- vlr_subscr_put(vsub);
-
- btw("MS replies with Paging Response using TMSI, and VLR sends Auth Request with third key");
- auth_request_sent = false;
- auth_request_expect_rand = "e7c03ba7cf0e2fde82b2dc4d63077d42";
- ms_sends_msg("06270703305882" "05f4" "03020100");
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
-
- btw("needs auth, not yet accepted");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("MS sends Authen Response, VLR accepts and sends pending SMS");
- dtap_expect_tx("09" /* SMS messages */
- "01" /* CP-DATA */
- "58" /* length */
- "01" /* Network to MS */
- "00" /* reference */
- /* originator (gsm411_send_sms() hardcodes this weird nr) */
- "0791" "447758100650" /* 447785016005 */
- "00" /* dest */
- /* SMS TPDU */
- "4c" /* len */
- "00" /* SMS deliver */
- "05806470f1" /* originating address 46071 */
- "00" /* TP-PID */
- "00" /* GSM default alphabet */
- "071010" /* Y-M-D (from wrapped gsm340_gen_scts())*/
- "000000" /* H-M-S */
- "00" /* GMT+0 */
- "44" /* data length */
- "5079da1e1ee7416937485e9ea7c965373d1d6683c270383b3d0e"
- "d3d36ff71c949e83c22072799e9687c5ec32a81d96afcbf4b4fb"
- "0c7ac3e9e9b7db05");
- ms_sends_msg("0554" "a29514ae" /* 3rd vector's sres, s.a. */);
- VERBOSE_ASSERT(dtap_tx_confirmed, == true, "%d");
- VERBOSE_ASSERT(paging_stopped, == true, "%d");
-
- btw("SMS was delivered, no requests pending for subscr");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 0, "%d");
- vlr_subscr_put(vsub);
-
- btw("conn is still open to wait for SMS ack dance");
- EXPECT_CONN_COUNT(1);
-
- btw("MS replies with CP-ACK for received SMS");
- ms_sends_msg("8904");
- EXPECT_CONN_COUNT(1);
-
- btw("MS also sends RP-ACK, MSC in turn sends CP-ACK for that");
- dtap_expect_tx("0904");
- expect_bssap_clear();
- ms_sends_msg("890106020041020000");
- VERBOSE_ASSERT(dtap_tx_confirmed, == true, "%d");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("SMS is done, conn is gone");
- EXPECT_CONN_COUNT(0);
-
- /* TODO: when the subscriber detaches, the vlr_subscr gets
- * deallocated and we no longer know the TMSI. This case is covered by
- * test_lu_unknown_tmsi(), so here I'd like to still have the TMSI.
- BTW("subscriber detaches, using TMSI");
- expect_bssap_clear();
- ms_sends_msg("050130" "05f4" "03020100");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
- EXPECT_CONN_COUNT(0);
- */
-
- BTW("subscriber sends LU Request, this time with the TMSI");
- btw("Location Update request causes an Auth Req to MS");
- lu_result_sent = RES_NONE;
- auth_request_sent = false;
- auth_request_expect_rand = "fa8f20b781b5881329d4fea26b1a3c51";
- ms_sends_msg("050802008168000130" "05f4" "03020100");
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("MS sends Authen Response, VLR accepts and sends GSUP LU Req to HLR");
- gsup_expect_tx("04010809710000004026f0");
- ms_sends_msg("05545afc8d72");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR sends _INSERT_DATA_REQUEST, VLR responds with _INSERT_DATA_RESULT");
- gsup_rx("10010809710000004026f00804036470f1",
- "12010809710000004026f0");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR also sends GSUP _UPDATE_LOCATION_RESULT");
- gsup_rx("06010809710000004026f0", NULL);
-
- btw("a LU Accept with a new TMSI was sent, waiting for TMSI Realloc Compl");
- EXPECT_CONN_COUNT(1);
- VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("even though the TMSI is not acked, we can already find the subscr with it");
- vsub = vlr_subscr_find_by_tmsi(net->vlr, 0x07060504);
- VERBOSE_ASSERT(vsub != NULL, == true, "%d");
- VERBOSE_ASSERT(strcmp(vsub->imsi, imsi), == 0, "%d");
- VERBOSE_ASSERT(vsub->tmsi_new, == 0x07060504, "0x%08x");
- VERBOSE_ASSERT(vsub->tmsi, == 0x03020100, "0x%08x");
- vlr_subscr_put(vsub);
-
- btw("MS sends TMSI Realloc Complete");
- expect_bssap_clear();
- ms_sends_msg("055b");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("LU was successful, and the conn has already been closed");
- EXPECT_CONN_COUNT(0);
-
- btw("subscriber has the new TMSI");
- vsub = vlr_subscr_find_by_tmsi(net->vlr, 0x07060504);
- VERBOSE_ASSERT(vsub != NULL, == true, "%d");
- VERBOSE_ASSERT(strcmp(vsub->imsi, imsi), == 0, "%d");
- VERBOSE_ASSERT(vsub->tmsi_new, == GSM_RESERVED_TMSI, "0x%08x");
- VERBOSE_ASSERT(vsub->tmsi, == 0x07060504, "0x%08x");
- vlr_subscr_put(vsub);
-
- BTW("subscriber detaches, using new TMSI");
- expect_bssap_clear();
- ms_sends_msg("050130" "05f4" "07060504");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- EXPECT_CONN_COUNT(0);
- clear_vlr();
- comment_end();
-}
-
-void test_gsm_authen_imei()
-{
- struct vlr_subscr *vsub;
- const char *imsi = "901700000004620";
-
- comment_start();
-
- net->authentication_required = true;
- net->vlr->cfg.check_imei_rqd = true;
-
- btw("Location Update request causes a GSUP Send Auth Info request to HLR");
- lu_result_sent = RES_NONE;
- gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
- OSMO_ASSERT(gsup_tx_confirmed);
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("from HLR, rx _SEND_AUTH_INFO_RESULT; VLR sends Auth Req to MS");
- auth_request_sent = false;
- auth_request_expect_rand = "585df1ae287f6e273dce07090d61320b";
- auth_request_expect_autn = NULL;
- /* Based on a Ki of 000102030405060708090a0b0c0d0e0f */
- gsup_rx("0a"
- /* imsi */
- "0108" "09710000004026f0"
- /* 5 auth vectors... */
- /* TL TL rand */
- "0322" "2010" "585df1ae287f6e273dce07090d61320b"
- /* TL sres TL kc */
- "2104" "2d8b2c3e" "2208" "61855fb81fc2a800"
- "0322" "2010" "12aca96fb4ffdea5c985cbafa9b6e18b"
- "2104" "20bde240" "2208" "07fa7502e07e1c00"
- "0322" "2010" "e7c03ba7cf0e2fde82b2dc4d63077d42"
- "2104" "a29514ae" "2208" "e2b234f807886400"
- "0322" "2010" "fa8f20b781b5881329d4fea26b1a3c51"
- "2104" "5afc8d72" "2208" "2392f14f709ae000"
- "0322" "2010" "0fd4cc8dbe8715d1f439e304edfd68dc"
- "2104" "bc8d1c5b" "2208" "da7cdd6bfe2d7000",
- NULL);
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("If the HLR were to send a GSUP _UPDATE_LOCATION_RESULT we'd still reject");
- gsup_rx("06010809710000004026f0", NULL);
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("MS sends Authen Response, VLR accepts and sends GSUP LU Req to HLR");
- gsup_expect_tx("04010809710000004026f0");
- ms_sends_msg("05542d8b2c3e");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR sends _INSERT_DATA_REQUEST, VLR responds with _INSERT_DATA_RESULT");
- gsup_rx("10010809710000004026f00804036470f1",
- "12010809710000004026f0");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR also sends GSUP _UPDATE_LOCATION_RESULT, and we send an ID Request for the IMEI to the MS");
- dtap_expect_tx("051802");
- gsup_rx("06010809710000004026f0", NULL);
-
- btw("We will only do business when the IMEI is known");
- EXPECT_CONN_COUNT(1);
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(vsub->imei[0], == 0, "%d");
- vlr_subscr_put(vsub);
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("MS replies with an Identity Response");
- expect_bssap_clear();
- ms_sends_msg("0559084a32244332244302");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("LU was successful, and the conn has already been closed");
- VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d");
- EXPECT_CONN_COUNT(0);
-
- btw("Subscriber has the IMEI");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(strcmp(vsub->imei, "423423423423420"), == 0, "%d");
- vlr_subscr_put(vsub);
-
- BTW("subscriber detaches");
- expect_bssap_clear();
- ms_sends_msg("050130089910070000006402");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- EXPECT_CONN_COUNT(0);
- clear_vlr();
- comment_end();
-}
-
-void test_gsm_authen_tmsi_imei()
-{
- struct vlr_subscr *vsub;
- const char *imsi = "901700000004620";
-
- comment_start();
-
- net->authentication_required = true;
- net->vlr->cfg.assign_tmsi = true;
- net->vlr->cfg.check_imei_rqd = true;
-
- btw("Location Update request causes a GSUP Send Auth Info request to HLR");
- lu_result_sent = RES_NONE;
- gsup_expect_tx("08010809710000004026f0");
- ms_sends_msg("050802008168000130089910070000006402");
- OSMO_ASSERT(gsup_tx_confirmed);
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("from HLR, rx _SEND_AUTH_INFO_RESULT; VLR sends Auth Req to MS");
- auth_request_sent = false;
- auth_request_expect_rand = "585df1ae287f6e273dce07090d61320b";
- auth_request_expect_autn = NULL;
- /* Based on a Ki of 000102030405060708090a0b0c0d0e0f */
- gsup_rx("0a"
- /* imsi */
- "0108" "09710000004026f0"
- /* 5 auth vectors... */
- /* TL TL rand */
- "0322" "2010" "585df1ae287f6e273dce07090d61320b"
- /* TL sres TL kc */
- "2104" "2d8b2c3e" "2208" "61855fb81fc2a800"
- "0322" "2010" "12aca96fb4ffdea5c985cbafa9b6e18b"
- "2104" "20bde240" "2208" "07fa7502e07e1c00"
- "0322" "2010" "e7c03ba7cf0e2fde82b2dc4d63077d42"
- "2104" "a29514ae" "2208" "e2b234f807886400"
- "0322" "2010" "fa8f20b781b5881329d4fea26b1a3c51"
- "2104" "5afc8d72" "2208" "2392f14f709ae000"
- "0322" "2010" "0fd4cc8dbe8715d1f439e304edfd68dc"
- "2104" "bc8d1c5b" "2208" "da7cdd6bfe2d7000",
- NULL);
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("If the HLR were to send a GSUP _UPDATE_LOCATION_RESULT we'd still reject");
- gsup_rx("06010809710000004026f0", NULL);
- EXPECT_ACCEPTED(false);
-
- thwart_rx_non_initial_requests();
-
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("MS sends Authen Response, VLR accepts and sends GSUP LU Req to HLR");
- gsup_expect_tx("04010809710000004026f0");
- ms_sends_msg("05542d8b2c3e");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR sends _INSERT_DATA_REQUEST, VLR responds with _INSERT_DATA_RESULT");
- gsup_rx("10010809710000004026f00804036470f1",
- "12010809710000004026f0");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR also sends GSUP _UPDATE_LOCATION_RESULT, and we send an ID Request for the IMEI to the MS");
- dtap_expect_tx("051802");
- gsup_rx("06010809710000004026f0", NULL);
-
- btw("We will only do business when the IMEI is known");
- EXPECT_CONN_COUNT(1);
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(vsub->imei[0], == 0, "%d");
- vlr_subscr_put(vsub);
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("MS replies with an Identity Response");
- ms_sends_msg("0559084a32244332244302");
-
- btw("a LU Accept with a new TMSI was sent, waiting for TMSI Realloc Compl");
- EXPECT_CONN_COUNT(1);
- VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("even though the TMSI is not acked, we can already find the subscr with it");
- vsub = vlr_subscr_find_by_tmsi(net->vlr, 0x03020100);
- VERBOSE_ASSERT(vsub != NULL, == true, "%d");
- VERBOSE_ASSERT(strcmp(vsub->imsi, imsi), == 0, "%d");
- VERBOSE_ASSERT(vsub->tmsi_new, == 0x03020100, "0x%08x");
- VERBOSE_ASSERT(vsub->tmsi, == GSM_RESERVED_TMSI, "0x%08x");
- vlr_subscr_put(vsub);
-
- btw("MS sends TMSI Realloc Complete");
- expect_bssap_clear();
- ms_sends_msg("055b");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("LU was successful, and the conn has already been closed");
- EXPECT_CONN_COUNT(0);
-
- btw("Subscriber has the IMEI and TMSI");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(strcmp(vsub->imei, "423423423423420"), == 0, "%d");
- VERBOSE_ASSERT(vsub->tmsi, == 0x03020100, "0x%08x");
- vlr_subscr_put(vsub);
-
- BTW("subscriber detaches, using TMSI");
- expect_bssap_clear();
- ms_sends_msg("050130" "05f4" "03020100");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- EXPECT_CONN_COUNT(0);
- clear_vlr();
- comment_end();
-}
-
-void test_gsm_milenage_authen()
-{
- struct vlr_subscr *vsub;
- const char *imsi = "901700000010650";
-
- comment_start();
-
- net->authentication_required = true;
- rx_from_ran = RAN_GERAN_A;
-
- btw("Location Update request causes a GSUP Send Auth Info request to HLR");
- lu_result_sent = RES_NONE;
- gsup_expect_tx("080108" "09710000000156f0");
- ms_sends_msg("0508" /* MM LU */
- "7" /* ciph key seq: no key available */
- "0" /* LU type: normal */
- "ffffff" "0000" /* LAI, LAC */
- "30" /* classmark 1: GSM phase 2 */
- "089910070000106005" /* IMSI */
- );
- OSMO_ASSERT(gsup_tx_confirmed);
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("from HLR, rx _SEND_AUTH_INFO_RESULT; VLR sends Auth Req to MS");
- /* based on auc_3g:
- * K = 'EB215756028D60E3275E613320AEC880',
- * OPC = 'FB2A3D1B360F599ABAB99DB8669F8308'
- * SQN = 0
- */
- auth_request_sent = false;
- auth_request_expect_rand = "39fa2f4e3d523d8619a73b4f65c3e14d";
- auth_request_expect_autn = NULL;
- gsup_rx("0a"
- /* imsi */
- "0108" "09710000000156f0"
- /* 5 auth vectors... */
- /* TL TL rand */
- "0362" "2010" "39fa2f4e3d523d8619a73b4f65c3e14d"
- /* TL sres TL kc */
- "2104" "9b36efdf" "2208" "059a4f668f6fbe39"
- /* TL 3G IK */
- "2310" "27497388b6cb044648f396aa155b95ef"
- /* TL 3G CK */
- "2410" "f64735036e5871319c679f4742a75ea1"
- /* TL AUTN */
- "2510" "8704f5ba55f30000d2ee44b22c8ea919"
- /* TL RES */
- "2708" "e229c19e791f2e41"
- "0362" "2010" "c187a53a5e6b9d573cac7c74451fd46d"
- "2104" "85aa3130" "2208" "d3d50a000bf04f6e"
- "2310" "1159ec926a50e98c034a6b7d7c9f418d"
- "2410" "df3a03d9ca5335641efc8e36d76cd20b"
- "2510" "1843a645b98d00005b2d666af46c45d9"
- "2708" "7db47cf7f81e4dc7"
- "0362" "2010" "efa9c29a9742148d5c9070348716e1bb"
- "2104" "69d5f9fb" "2208" "3df176f0c29f1a3d"
- "2310" "eb50e770ddcc3060101d2f43b6c2b884"
- "2410" "76542abce5ff9345b0e8947f4c6e019c"
- "2510" "f9375e6d41e1000096e7fe4ff1c27e39"
- "2708" "706f996719ba609c"
- ,NULL);
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("MS sends Authen Response, VLR accepts and sends GSUP LU Req to HLR");
- gsup_expect_tx("04010809710000000156f0");
- ms_sends_msg("0554" "9b36efdf");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR sends _INSERT_DATA_REQUEST, VLR responds with _INSERT_DATA_RESULT");
- gsup_rx("10010809710000000156f00804032443f2",
- "12010809710000000156f0");
- VERBOSE_ASSERT(lu_result_sent, == RES_NONE, "%d");
-
- btw("HLR also sends GSUP _UPDATE_LOCATION_RESULT");
- expect_bssap_clear();
- gsup_rx("06010809710000000156f0", NULL);
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("LU was successful, and the conn has already been closed");
- VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d");
- EXPECT_CONN_COUNT(0);
-
- BTW("after a while, a new conn sends a CM Service Request. VLR responds with Auth Req, 2nd auth vector");
- auth_request_sent = false;
- auth_request_expect_rand = "c187a53a5e6b9d573cac7c74451fd46d";
- auth_request_expect_autn = NULL;
- cm_service_result_sent = RES_NONE;
- ms_sends_msg("052478"
- "03305886" /* classmark 2: GSM phase 2 */
- "089910070000106005" /* IMSI */);
- OSMO_ASSERT(g_conn);
- OSMO_ASSERT(g_conn->conn_fsm);
- OSMO_ASSERT(g_conn->vsub);
- VERBOSE_ASSERT(cm_service_result_sent, == RES_NONE, "%d");
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
-
- btw("needs auth, not yet accepted");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("MS sends Authen Response, VLR accepts with a CM Service Accept");
- gsup_expect_tx(NULL);
- ms_sends_msg("0554" "85aa3130"); /* 2nd vector's sres, s.a. */
- VERBOSE_ASSERT(cm_service_result_sent, == RES_ACCEPT, "%d");
-
- btw("a USSD request is serviced");
- dtap_expect_tx_ussd("Your extension is 42342\r");
- expect_bssap_clear();
- ms_sends_msg("0b3b1c15a11302010002013b300b04010f0406aa510c061b017f0100");
- OSMO_ASSERT(dtap_tx_confirmed);
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("all requests serviced, conn has been released");
- EXPECT_CONN_COUNT(0);
-
- BTW("an SMS is sent, MS is paged");
- paging_expect_imsi(imsi);
- paging_sent = false;
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 0, "%d");
-
- send_sms(vsub, vsub,
- "Privacy in residential applications is a desirable"
- " marketing option.");
-
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 1, "%d");
- vlr_subscr_put(vsub);
- vsub = NULL;
- VERBOSE_ASSERT(paging_sent, == true, "%d");
- VERBOSE_ASSERT(paging_stopped, == false, "%d");
-
- btw("the subscriber and its pending request should remain");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 1, "%d");
- vlr_subscr_put(vsub);
-
- btw("MS replies with Paging Response, and VLR sends Auth Request with third key");
- auth_request_sent = false;
- auth_request_expect_rand = "efa9c29a9742148d5c9070348716e1bb";
- auth_request_expect_autn = NULL;
- ms_sends_msg("062707"
- "03305886" /* classmark 2 */
- "089910070000106005" /* IMSI */);
- VERBOSE_ASSERT(auth_request_sent, == true, "%d");
-
- btw("needs auth, not yet accepted");
- EXPECT_ACCEPTED(false);
- thwart_rx_non_initial_requests();
-
- btw("MS sends Authen Response, VLR accepts and sends pending SMS");
- dtap_expect_tx("09" /* SMS messages */
- "01" /* CP-DATA */
- "58" /* length */
- "01" /* Network to MS */
- "00" /* reference */
- /* originator (gsm411_send_sms() hardcodes this weird nr) */
- "0791" "447758100650" /* 447785016005 */
- "00" /* dest */
- /* SMS TPDU */
- "4c" /* len */
- "00" /* SMS deliver */
- "05802443f2" /* originating address 42342 */
- "00" /* TP-PID */
- "00" /* GSM default alphabet */
- "071010" /* Y-M-D (from wrapped gsm340_gen_scts())*/
- "000000" /* H-M-S */
- "00" /* GMT+0 */
- "44" /* data length */
- "5079da1e1ee7416937485e9ea7c965373d1d6683c270383b3d0e"
- "d3d36ff71c949e83c22072799e9687c5ec32a81d96afcbf4b4fb"
- "0c7ac3e9e9b7db05");
- ms_sends_msg("0554" "69d5f9fb"); /* 3nd vector's sres, s.a. */
- VERBOSE_ASSERT(dtap_tx_confirmed, == true, "%d");
- VERBOSE_ASSERT(paging_stopped, == true, "%d");
-
- btw("SMS was delivered, no requests pending for subscr");
- vsub = vlr_subscr_find_by_imsi(net->vlr, imsi);
- OSMO_ASSERT(vsub);
- VERBOSE_ASSERT(llist_count(&vsub->cs.requests), == 0, "%d");
- vlr_subscr_put(vsub);
-
- btw("conn is still open to wait for SMS ack dance");
- EXPECT_CONN_COUNT(1);
-
- btw("MS replies with CP-ACK for received SMS");
- ms_sends_msg("8904");
- EXPECT_CONN_COUNT(1);
-
- btw("MS also sends RP-ACK, MSC in turn sends CP-ACK for that");
- dtap_expect_tx("0904");
- expect_bssap_clear();
- ms_sends_msg("890106020041020000");
- VERBOSE_ASSERT(dtap_tx_confirmed, == true, "%d");
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- btw("SMS is done, conn is gone");
- EXPECT_CONN_COUNT(0);
-
- BTW("subscriber detaches");
- expect_bssap_clear();
- ms_sends_msg("050130"
- "089910070000106005" /* IMSI */);
- VERBOSE_ASSERT(bssap_clear_sent, == true, "%d");
-
- EXPECT_CONN_COUNT(0);
- clear_vlr();
- comment_end();
-}
-
-msc_vlr_test_func_t msc_vlr_tests[] = {
- test_gsm_authen,
- test_gsm_authen_tmsi,
- test_gsm_authen_imei,
- test_gsm_authen_tmsi_imei,
- test_gsm_milenage_authen,
- NULL
-};
diff --git a/tests/msc_vlr/msc_vlr_test_gsm_authen.err b/tests/msc_vlr/msc_vlr_test_gsm_authen.err
deleted file mode 100644
index c12eba118..000000000
--- a/tests/msc_vlr/msc_vlr_test_gsm_authen.err
+++ /dev/null
@@ -1,1997 +0,0 @@
-===== test_gsm_authen
-- Location Update request causes a GSUP Send Auth Info request to HLR
- MSC <--RAN_GERAN_A-- MS: GSM48_MT_MM_LOC_UPD_REQUEST
- new conn
-DREF unknown: MSC conn use + 1 == 1
-DRLL Dispatching 04.08 message GSM48_MT_MM_LOC_UPD_REQUEST (0x5:0x8)
-DREF unknown: MSC conn use + 1 == 2
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_INIT}: Allocated
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_INIT}: Received Event SUBSCR_CONN_E_START
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_INIT}: state_chg to SUBSCR_CONN_S_NEW
-DMM LOCATION UPDATING REQUEST: MI(IMSI)=901700000004620 type=IMSI ATTACH
-DMM LU/new-LAC: 1/0
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_IDLE}: Allocated
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_IDLE}: is child of Subscr_Conn(901700000004620)
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_IDLE}: rev=GSM net=GERAN Auth (no Ciph)
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_IDLE}: Received Event VLR_ULA_E_UPDATE_LA
-DREF VLR subscr unknown usage increases to: 1
-DVLR set IMSI on subscriber; IMSI=901700000004620 id=901700000004620
-DVLR New subscr, IMSI: 901700000004620
-DREF VLR subscr IMSI:901700000004620 usage increases to: 2
-DREF VLR subscr IMSI:901700000004620 usage decreases to: 1
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_IDLE}: vlr_loc_upd_node1()
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_IDLE}: state_chg to VLR_ULA_S_WAIT_AUTH
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH}: Allocated
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH}: is child of vlr_lu_fsm(901700000004620)
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH}: Received Event VLR_AUTH_E_START
-DVLR GSUP tx: 08010809710000004026f0
-GSUP --> HLR: OSMO_GSUP_MSGT_SEND_AUTH_INFO_REQUEST: 08010809710000004026f0
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH}: state_chg to VLR_SUB_AS_NEEDS_AUTH_WAIT_AI
-DMM IMSI:901700000004620: bump: conn still being established (SUBSCR_CONN_S_NEW)
-DREF IMSI:901700000004620: MSC conn use - 1 == 1
- lu_result_sent == 0
-- from HLR, rx _SEND_AUTH_INFO_RESULT; VLR sends Auth Req to MS
-<-- GSUP rx OSMO_GSUP_MSGT_SEND_AUTH_INFO_RESULT: 0a010809710000004026f003222010585df1ae287f6e273dce07090d61320b21042d8b2c3e220861855fb81fc2a8000322201012aca96fb4ffdea5c985cbafa9b6e18b210420bde240220807fa7502e07e1c0003222010e7c03ba7cf0e2fde82b2dc4d63077d422104a29514ae2208e2b234f80788640003222010fa8f20b781b5881329d4fea26b1a3c5121045afc8d7222082392f14f709ae000032220100fd4cc8dbe8715d1f439e304edfd68dc2104bc8d1c5b2208da7cdd6bfe2d7000
-DVLR GSUP rx 191: 0a010809710000004026f003222010585df1ae287f6e273dce07090d61320b21042d8b2c3e220861855fb81fc2a8000322201012aca96fb4ffdea5c985cbafa9b6e18b210420bde240220807fa7502e07e1c0003222010e7c03ba7cf0e2fde82b2dc4d63077d422104a29514ae2208e2b234f80788640003222010fa8f20b781b5881329d4fea26b1a3c5121045afc8d7222082392f14f709ae000032220100fd4cc8dbe8715d1f439e304edfd68dc2104bc8d1c5b2208da7cdd6bfe2d7000
-DREF VLR subscr IMSI:901700000004620 usage increases to: 2
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH_WAIT_AI}: Received Event VLR_AUTH_E_HLR_SAI_ACK
-DVLR SUBSCR(IMSI:901700000004620) Received 5 auth tuples
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH_WAIT_AI}: state_chg to VLR_SUB_AS_WAIT_RESP
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_WAIT_RESP}: got auth tuple: use_count=1 key_seq=0
-- sending GSM Auth Request for IMSI:901700000004620: tuple use_count=1 key_seq=0 auth_types=0x1 and...
-- ...rand=585df1ae287f6e273dce07090d61320b
-- ...expecting sres=2d8b2c3e
-DREF VLR subscr IMSI:901700000004620 usage decreases to: 1
-<-- GSUP rx OSMO_GSUP_MSGT_SEND_AUTH_INFO_RESULT: vlr_gsupc_read_cb() returns 0
- auth_request_sent == 1
- lu_result_sent == 0
-- If the HLR were to send a GSUP _UPDATE_LOCATION_RESULT we'd still reject
-<-- GSUP rx OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT: 06010809710000004026f0
-DVLR GSUP rx 11: 06010809710000004026f0
-DREF VLR subscr IMSI:901700000004620 usage increases to: 2
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_AUTH}: Received Event VLR_ULA_E_HLR_LU_RES
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_AUTH}: Event VLR_ULA_E_HLR_LU_RES not permitted
-DREF VLR subscr IMSI:901700000004620 usage decreases to: 1
-<-- GSUP rx OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT: vlr_gsupc_read_cb() returns 0
-msc_subscr_conn_is_accepted() == false
- requests shall be thwarted
-DRLL Dispatching 04.08 message GSM48_MT_CC_SETUP (0x3:0x5)
-DRLL subscr IMSI:901700000004620: Message not permitted for initial conn: GSM48_MT_CC_SETUP
-DRLL Dispatching 04.08 message unknown 0x33 (0x5:0x33)
-DRLL subscr IMSI:901700000004620: Message not permitted for initial conn: unknown 0x33
-DRLL Dispatching 04.08 message GSM48_MT_RR_SYSINFO_1 (0x6:0x19)
-DRLL subscr IMSI:901700000004620: Message not permitted for initial conn: GSM48_MT_RR_SYSINFO_1
-DRLL Dispatching 04.08 message GSM48_PDISC_SMS:0x01 (0x9:0x1)
-DRLL subscr IMSI:901700000004620: Message not permitted for initial conn: GSM48_PDISC_SMS:0x01
- lu_result_sent == 0
-- MS sends Authen Response, VLR accepts and sends GSUP LU Req to HLR
- MSC <--RAN_GERAN_A-- MS: GSM48_MT_MM_AUTH_RESP
-DREF IMSI:901700000004620: MSC conn use + 1 == 2
-DRLL Dispatching 04.08 message GSM48_MT_MM_AUTH_RESP (0x5:0x14)
-DMM IMSI:901700000004620: MM GSM AUTHENTICATION RESPONSE (sres = 2d8b2c3e)
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_WAIT_RESP}: Received Event VLR_AUTH_E_MS_AUTH_RESP
-DVLR SUBSCR(IMSI:901700000004620) received res: 2d 8b 2c 3e
-DVLR SUBSCR(IMSI:901700000004620) AUTH established GSM security context
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_WAIT_RESP}: Authentication terminating with result VLR_AUTH_RES_PASSED
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_WAIT_RESP}: state_chg to VLR_SUB_AS_AUTHENTICATED
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_AUTHENTICATED}: Terminating (cause = OSMO_FSM_TERM_REGULAR)
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_AUTHENTICATED}: Removing from parent vlr_lu_fsm(901700000004620)
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_AUTHENTICATED}: Freeing instance
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_AUTHENTICATED}: Deallocated
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_AUTH}: Received Event VLR_ULA_E_AUTH_RES
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_AUTH}: vlr_loc_upd_post_auth()
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_AUTH}: vlr_loc_upd_post_ciph()
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_AUTH}: vlr_loc_upd_node_4()
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_AUTH}: state_chg to VLR_ULA_S_WAIT_HLR_UPD
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_INIT}: Allocated
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_INIT}: is child of vlr_lu_fsm(901700000004620)
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_INIT}: Received Event UPD_HLR_VLR_E_START
-DVLR GSUP tx: 04010809710000004026f0
-GSUP --> HLR: OSMO_GSUP_MSGT_UPDATE_LOCATION_REQUEST: 04010809710000004026f0
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_INIT}: state_chg to UPD_HLR_VLR_S_WAIT_FOR_DATA
-DMM IMSI:901700000004620: bump: conn still being established (SUBSCR_CONN_S_NEW)
-DREF IMSI:901700000004620: MSC conn use - 1 == 1
- lu_result_sent == 0
-- HLR sends _INSERT_DATA_REQUEST, VLR responds with _INSERT_DATA_RESULT
-<-- GSUP rx OSMO_GSUP_MSGT_INSERT_DATA_REQUEST: 10010809710000004026f00804036470f1
-DVLR GSUP rx 17: 10010809710000004026f00804036470f1
-DREF VLR subscr IMSI:901700000004620 usage increases to: 2
-DVLR IMSI:901700000004620 has MSISDN:46071
-DVLR GSUP tx: 12010809710000004026f0
-GSUP --> HLR: OSMO_GSUP_MSGT_INSERT_DATA_RESULT: 12010809710000004026f0
-DREF VLR subscr MSISDN:46071 usage decreases to: 1
-<-- GSUP rx OSMO_GSUP_MSGT_INSERT_DATA_REQUEST: vlr_gsupc_read_cb() returns 0
- lu_result_sent == 0
-- HLR also sends GSUP _UPDATE_LOCATION_RESULT
-<-- GSUP rx OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT: 06010809710000004026f0
-DVLR GSUP rx 11: 06010809710000004026f0
-DREF VLR subscr MSISDN:46071 usage increases to: 2
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_HLR_UPD}: Received Event VLR_ULA_E_HLR_LU_RES
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_WAIT_FOR_DATA}: Received Event UPD_HLR_VLR_E_UPD_LOC_ACK
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_WAIT_FOR_DATA}: state_chg to UPD_HLR_VLR_S_DONE
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_DONE}: Terminating (cause = OSMO_FSM_TERM_REGULAR)
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_DONE}: Removing from parent vlr_lu_fsm(901700000004620)
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_DONE}: Freeing instance
-DVLR upd_hlr_vlr_fsm(901700000004620){UPD_HLR_VLR_S_DONE}: Deallocated
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_HLR_UPD}: Received Event VLR_ULA_E_UPD_HLR_COMPL
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_HLR_UPD}: state_chg to VLR_ULA_S_WAIT_LU_COMPL
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_INIT}: Allocated
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_INIT}: is child of vlr_lu_fsm(901700000004620)
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_INIT}: Received Event LU_COMPL_VLR_E_START
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_INIT}: state_chg to LU_COMPL_VLR_S_WAIT_SUB_PRES
-DVLR sub_pres_vlr_fsm(901700000004620){SUB_PRES_VLR_S_INIT}: Allocated
-DVLR sub_pres_vlr_fsm(901700000004620){SUB_PRES_VLR_S_INIT}: is child of lu_compl_vlr_fsm(901700000004620)
-DVLR sub_pres_vlr_fsm(901700000004620){SUB_PRES_VLR_S_INIT}: Received Event SUB_PRES_VLR_E_START
-DVLR sub_pres_vlr_fsm(901700000004620){SUB_PRES_VLR_S_INIT}: state_chg to SUB_PRES_VLR_S_DONE
-DVLR sub_pres_vlr_fsm(901700000004620){SUB_PRES_VLR_S_DONE}: Terminating (cause = OSMO_FSM_TERM_REGULAR)
-DVLR sub_pres_vlr_fsm(901700000004620){SUB_PRES_VLR_S_DONE}: Removing from parent lu_compl_vlr_fsm(901700000004620)
-DVLR sub_pres_vlr_fsm(901700000004620){SUB_PRES_VLR_S_DONE}: Freeing instance
-DVLR sub_pres_vlr_fsm(901700000004620){SUB_PRES_VLR_S_DONE}: Deallocated
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_WAIT_SUB_PRES}: Received Event LU_COMPL_VLR_E_SUB_PRES_COMPL
-- sending LU Accept for MSISDN:46071
-DREF VLR subscr MSISDN:46071 usage increases to: 3
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_WAIT_SUB_PRES}: state_chg to LU_COMPL_VLR_S_DONE
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_LU_COMPL}: Received Event VLR_ULA_E_LU_COMPL_SUCCESS
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_DONE}: Terminating (cause = OSMO_FSM_TERM_PARENT)
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_DONE}: Removing from parent vlr_lu_fsm(901700000004620)
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_DONE}: Freeing instance
-DVLR lu_compl_vlr_fsm(901700000004620){LU_COMPL_VLR_S_DONE}: Deallocated
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_WAIT_LU_COMPL}: state_chg to VLR_ULA_S_DONE
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_NEW}: Received Event SUBSCR_CONN_E_ACCEPTED
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_NEW}: SUBSCR_CONN_FROM_LU
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_NEW}: state_chg to SUBSCR_CONN_S_ACCEPTED
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_ACCEPTED}: Received Event SUBSCR_CONN_E_BUMP
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_ACCEPTED}: bump: releasing conn
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_ACCEPTED}: state_chg to SUBSCR_CONN_S_RELEASED
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_RELEASED}: Terminating (cause = OSMO_FSM_TERM_REGULAR)
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_DONE}: Terminating (cause = OSMO_FSM_TERM_PARENT)
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_DONE}: Removing from parent Subscr_Conn(901700000004620)
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_DONE}: fsm_lu_cleanup called with cause OSMO_FSM_TERM_PARENT
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_DONE}: Freeing instance
-DVLR vlr_lu_fsm(901700000004620){VLR_ULA_S_DONE}: Deallocated
-DMM msc_subscr_conn_close(vsub=MSISDN:46071, cause=2): no conn fsm, releasing directly without release event.
-- BSSAP Clear --RAN_GERAN_A--> MS
-DREF MSISDN:46071: MSC conn use - 1 == 0
-DRLL subscr MSISDN:46071: Freeing subscriber connection
-DREF VLR subscr MSISDN:46071 usage decreases to: 2
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_RELEASED}: Freeing instance
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_RELEASED}: Deallocated
-DREF VLR subscr MSISDN:46071 usage decreases to: 1
-<-- GSUP rx OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT: vlr_gsupc_read_cb() returns 0
- bssap_clear_sent == 1
-- LU was successful, and the conn has already been closed
- lu_result_sent == 1
- llist_count(&net->subscr_conns) == 0
----
-- after a while, a new conn sends a CM Service Request. VLR responds with Auth Req, 2nd auth vector
- MSC <--RAN_GERAN_A-- MS: GSM48_MT_MM_CM_SERV_REQ
- new conn
-DREF unknown: MSC conn use + 1 == 1
-DRLL Dispatching 04.08 message GSM48_MT_MM_CM_SERV_REQ (0x5:0x24)
-DMM <- CM SERVICE REQUEST serv_type=0x08 MI(IMSI)=901700000004620
-DREF unknown: MSC conn use + 1 == 2
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_INIT}: Allocated
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_INIT}: Received Event SUBSCR_CONN_E_START
-DMM Subscr_Conn(901700000004620){SUBSCR_CONN_S_INIT}: state_chg to SUBSCR_CONN_S_NEW
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_INIT}: Allocated
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_INIT}: is child of Subscr_Conn(901700000004620)
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_INIT}: rev=GSM net=GERAN Auth (no Ciph)
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_INIT}: Received Event PR_ARQ_E_START
-DREF VLR subscr MSISDN:46071 usage increases to: 2
-DREF VLR subscr MSISDN:46071 usage increases to: 3
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_INIT}: proc_arq_vlr_fn_post_imsi()
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_INIT}: state_chg to PR_ARQ_S_WAIT_AUTH
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH}: Allocated
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH}: is child of Process_Access_Request_VLR(901700000004620)
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH}: Received Event VLR_AUTH_E_START
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_NEEDS_AUTH}: state_chg to VLR_SUB_AS_WAIT_RESP
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_WAIT_RESP}: got auth tuple: use_count=1 key_seq=1
-- sending GSM Auth Request for MSISDN:46071: tuple use_count=1 key_seq=1 auth_types=0x1 and...
-- ...rand=12aca96fb4ffdea5c985cbafa9b6e18b
-- ...expecting sres=20bde240
-DREF VLR subscr MSISDN:46071 usage decreases to: 2
-DMM MSISDN:46071: bump: conn still being established (SUBSCR_CONN_S_NEW)
-DREF MSISDN:46071: MSC conn use - 1 == 1
- cm_service_result_sent == 0
- auth_request_sent == 1
-- needs auth, not yet accepted
-msc_subscr_conn_is_accepted() == false
- requests shall be thwarted
-DRLL Dispatching 04.08 message GSM48_MT_CC_SETUP (0x3:0x5)
-DRLL subscr MSISDN:46071: Message not permitted for initial conn: GSM48_MT_CC_SETUP
-DRLL Dispatching 04.08 message unknown 0x33 (0x5:0x33)
-DRLL subscr MSISDN:46071: Message not permitted for initial conn: unknown 0x33
-DRLL Dispatching 04.08 message GSM48_MT_RR_SYSINFO_1 (0x6:0x19)
-DRLL subscr MSISDN:46071: Message not permitted for initial conn: GSM48_MT_RR_SYSINFO_1
-DRLL Dispatching 04.08 message GSM48_PDISC_SMS:0x01 (0x9:0x1)
-DRLL subscr MSISDN:46071: Message not permitted for initial conn: GSM48_PDISC_SMS:0x01
-- MS sends Authen Response, VLR accepts with a CM Service Accept
- MSC <--RAN_GERAN_A-- MS: GSM48_MT_MM_AUTH_RESP
-DREF MSISDN:46071: MSC conn use + 1 == 2
-DRLL Dispatching 04.08 message GSM48_MT_MM_AUTH_RESP (0x5:0x14)
-DMM MSISDN:46071: MM GSM AUTHENTICATION RESPONSE (sres = 20bde240)
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_WAIT_RESP}: Received Event VLR_AUTH_E_MS_AUTH_RESP
-DVLR SUBSCR(MSISDN:46071) received res: 20 bd e2 40
-DVLR SUBSCR(MSISDN:46071) AUTH established GSM security context
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_WAIT_RESP}: Authentication terminating with result VLR_AUTH_RES_PASSED
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_WAIT_RESP}: state_chg to VLR_SUB_AS_AUTHENTICATED
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_AUTHENTICATED}: Terminating (cause = OSMO_FSM_TERM_REGULAR)
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_AUTHENTICATED}: Removing from parent Process_Access_Request_VLR(901700000004620)
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_AUTHENTICATED}: Freeing instance
-DVLR VLR_Authenticate(901700000004620){VLR_SUB_AS_AUTHENTICATED}: Deallocated
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: Received Event PR_ARQ_E_AUTH_RES
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: got VLR_AUTH_RES_PASSED
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: _proc_arq_vlr_node2()
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: _proc_arq_vlr_node2_post_ciph()
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: _proc_arq_vlr_node2_post_vlr()
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: _proc_arq_vlr_post_pres()
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: _proc_arq_vlr_post_trace()
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: _proc_arq_vlr_post_imei()
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: proc_arq_fsm_done(VLR_PR_ARQ_RES_PASSED)
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_WAIT_AUTH}: state_chg to PR_ARQ_S_DONE
-DVLR Process_Access_Request_VLR(901700000004620){PR_ARQ_S_DONE}: Process Access Request result: VLR_PR_ARQ_RES_