aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am21
-rw-r--r--tests/gbproxy/Makefile.am51
-rw-r--r--tests/gbproxy/gbproxy_test.c5082
-rw-r--r--tests/gbproxy/gbproxy_test.ok7492
-rw-r--r--tests/gprs/Makefile.am3
-rw-r--r--tests/gprs/gprs_test.c18
-rw-r--r--tests/gtphub/Makefile.am5
-rw-r--r--tests/gtphub/gtphub_test.c13
-rw-r--r--tests/osmo-sgsn_test-nodes.vty (renamed from tests/test_nodes.vty)73
-rw-r--r--tests/sgsn/Makefile.am26
-rw-r--r--tests/sgsn/gprs_gb_parse.c688
-rw-r--r--tests/sgsn/gprs_gb_parse.h61
-rw-r--r--tests/sgsn/sgsn_test.c98
-rw-r--r--tests/slhc/Makefile.am3
-rw-r--r--tests/sndcp_xid/Makefile.am3
-rw-r--r--tests/testsuite.at6
-rw-r--r--tests/v42bis/Makefile.am3
-rwxr-xr-xtests/vty_test_runner.py59
-rw-r--r--tests/xid/Makefile.am4
19 files changed, 937 insertions, 12772 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a23d9317a..2c07ac96e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,6 +1,5 @@
SUBDIRS = \
gprs \
- gbproxy \
gtphub \
sgsn \
xid \
@@ -33,7 +32,7 @@ EXTRA_DIST = \
$(TESTSUITE) \
vty_test_runner.py \
ctrl_test_runner.py \
- test_nodes.vty \
+ osmo-sgsn_test-nodes.vty \
$(NULL)
TESTSUITE = $(srcdir)/testsuite
@@ -43,38 +42,38 @@ DISTCLEANFILES = \
$(NULL)
if ENABLE_EXT_TESTS
-python-tests: $(BUILT_SOURCES)
+python-tests:
$(MAKE) vty-test
$(MAKE) ctrl-python-test
else
-python-tests: $(BUILT_SOURCES)
+python-tests:
echo "Not running python-based tests (determined at configure-time)"
endif
-vty-python-test: $(BUILT_SOURCES)
+vty-python-test: $(top_builddir)/src/sgsn/osmo-sgsn
osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
$(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v
- rm -f $(top_builddir)/sms.db $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count
+ rm -f $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count
# To update the VTY script from current application behavior,
# pass -u to vty_script_runner.py by doing:
# make vty-transcript-test U=-u
-vty-transcript-test:
+vty-transcript-test: $(top_builddir)/src/sgsn/osmo-sgsn
osmo_verify_transcript_vty.py -v \
-n OsmoSGSN -p 4245 \
-r "$(top_builddir)/src/sgsn/osmo-sgsn -c $(top_srcdir)/doc/examples/osmo-sgsn/osmo-sgsn.cfg" \
- $(U) $${T:-$(srcdir)/*.vty}
- rm -f $(builddir)/sms.db $(builddir)/gsn_restart
+ $(U) $${T:-$(srcdir)/osmo-sgsn*.vty}
+ rm -f $(builddir)/gsn_restart
# don't run multiple tests concurrently so that the ports don't conflict
vty-test:
$(MAKE) vty-python-test
$(MAKE) vty-transcript-test
-ctrl-python-test: $(BUILT_SOURCES)
+ctrl-python-test: $(top_builddir)/src/sgsn/osmo-sgsn
$(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v
- rm -f $(top_builddir)/sms.db $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count
+ rm -f $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count
check-local: atconfig $(TESTSUITE)
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
diff --git a/tests/gbproxy/Makefile.am b/tests/gbproxy/Makefile.am
deleted file mode 100644
index b9585acc8..000000000
--- a/tests/gbproxy/Makefile.am
+++ /dev/null
@@ -1,51 +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=osmo_get_rand_id \
- $(NULL)
-
-gbproxy_test_LDADD = \
- $(top_builddir)/src/gbproxy/gb_proxy.o \
- $(top_builddir)/src/gbproxy/gb_proxy_patch.o \
- $(top_builddir)/src/gbproxy/gb_proxy_peer.o \
- $(top_builddir)/src/gbproxy/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 \
- $(LIBOSMOCORE_LIBS) \
- $(LIBOSMOGB_LIBS) \
- $(LIBOSMOGSM_LIBS) \
- $(LIBOSMOVTY_LIBS) \
- $(LIBOSMOABIS_LIBS) \
- $(LIBRARY_DL) \
- $(LIBRARY_DLSYM) \
- -lrt \
- $(NULL)
diff --git a/tests/gbproxy/gbproxy_test.c b/tests/gbproxy/gbproxy_test.c
deleted file mode 100644
index 6433eb606..000000000
--- a/tests/gbproxy/gbproxy_test.c
+++ /dev/null
@@ -1,5082 +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 <osmocom/sgsn/gb_proxy.h>
-#include <osmocom/sgsn/gprs_utils.h>
-#include <osmocom/sgsn/gprs_llc.h>
-#include <osmocom/sgsn/gprs_gb_parse.h>
-#include <osmocom/sgsn/debug.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)
-
-void *tall_sgsn_ctx = NULL;
-
-struct gbproxy_config gbcfg = {0};
-
-struct llist_head *received_messages = NULL;
-
-/* override, requires '-Wl,--wrap=osmo_get_rand_id' */
-int __real_osmo_get_rand_id(uint8_t *data, size_t len);
-int mock_osmo_get_rand_id(uint8_t *data, size_t len);
-int (*osmo_get_rand_id_cb)(uint8_t *, size_t) =
- &mock_osmo_get_rand_id;
-
-int __wrap_osmo_get_rand_id(uint8_t *buf, size_t num)
-{
- return (*osmo_get_rand_id_cb)(buf, num);
-}
-
-static int rand_seq_num = 0;
-int mock_osmo_get_rand_id(uint8_t *buf, size_t num)
-{
- uint32_t val;
-
- OSMO_ASSERT(num == sizeof(val));
-
- 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 %s\n",
- indent, "",
- peer->nsei, peer->bvci,
- peer->blocked ? "" : "not ",
- osmo_rai_name(&raid));
-
- 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) {
- struct osmo_mobile_identity mi;
- const char *imsi_str;
- 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 > 0) {
- if (osmo_mobile_identity_decode(&mi, link_info->imsi, link_info->imsi_len, false)
- || mi.type != GSM_MI_TYPE_IMSI)
- imsi_str = "(invalid)";
- else
- imsi_str = mi.imsi;
- } else {
- imsi_str = "(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",
- imsi_str, (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 struct gsm48_ra_id r;
- gsm48_encode_ra(&r, raid);
- return (const uint8_t *)&r;
-}
-
-/* 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,
- 0xf8, 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, 0xf8
-};
-
-/* DTAP - Identity Response, IMSI 2 */
-static const unsigned char dtap_identity2_resp[] = {
- 0x08, 0x16, 0x08, 0x11, 0x12, 0x99, 0x99, 0x99,
- 0x16, 0x17, 0xf8
-};
-
-/* DTAP - Identity Response, IMSI 3 */
-static const unsigned char dtap_identity3_resp[] = {
- 0x08, 0x16, 0x08, 0x11, 0x12, 0x99, 0x99, 0x99,
- 0x26, 0x27, 0xf8
-};
-
-/* 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_encode_ra((struct gsm48_ra_id *)(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_encode_ra((struct gsm48_ra_id *)(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_encode_ra((struct gsm48_ra_id *)(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_encode_ra((struct gsm48_ra_id *)(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 = bssgp_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);
-
- /* gprs_ns_rcvmsg() in old libosmocore returns "number of bytes
- * transmitted by any response PDU we sent as a result of the
- * received message", while modern libosmocore simply retunrs '0'
- * for any successfully received message. Let's make sure any
- * non-negative responses lead to a reproducible test output
- * with both old and new libosmocore. */
- printf("result (%s) = %d\n\n", text, ret < 0 ? ret : 0);
-
- 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, tall_sgsn_ctx);
- 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, tall_sgsn_ctx);
- 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, tall_sgsn_ctx);
- 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, 0xf8};
- 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_plmn = (struct osmo_plmn_id){ .mcc = 123, .mnc = 456 };
- gbcfg.core_apn = talloc_zero_size(tall_sgsn_ctx, 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;
-
- talloc_free(gbcfg.core_apn);
- gbcfg.core_apn = 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, tall_sgsn_ctx);
- 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, 0xf8};
- const uint8_t imsi2[] = {0x11, 0x12, 0x99, 0x99, 0x99, 0x16, 0x17, 0xf8};
-
- 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_plmn = (struct osmo_plmn_id){};
- gbcfg.core_apn = talloc_zero_size(tall_sgsn_ctx, 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);
-
- talloc_free(gbcfg.core_apn);
- gbcfg.core_apn = NULL;
-
- 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, tall_sgsn_ctx);
- 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, 0xf8};
- 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_plmn = (struct osmo_plmn_id){ .mcc = 123, .mnc = 456 };
- gbcfg.core_apn = talloc_zero_size(tall_sgsn_ctx, 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);
-
- talloc_free(gbcfg.core_apn);
- gbcfg.core_apn = NULL;
-
- 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, tall_sgsn_ctx);
- 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, 0xf8};
- 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_plmn = (struct osmo_plmn_id){ .mcc = 123, .mnc = 456 };
- gbcfg.core_apn = talloc_zero_size(tall_sgsn_ctx, 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);
-
- talloc_free(gbcfg.core_apn);
- gbcfg.core_apn = NULL;
-
- 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, tall_sgsn_ctx);
- 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, 0xf8};
- 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_plmn = (struct osmo_plmn_id){ .mcc = 123, .mnc = 456 };
- gbcfg.core_apn = talloc_zero_size(tall_sgsn_ctx, 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);
-
- talloc_free(gbcfg.core_apn);
- gbcfg.core_apn = NULL;
-
- 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, tall_sgsn_ctx);
- 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, 0xf8};
- const uint8_t imsi2[] = {0x11, 0x12, 0x99, 0x99, 0x99, 0x16, 0x17, 0xf8};
- const uint8_t imsi3[] = {0x11, 0x12, 0x99, 0x99, 0x99, 0x26, 0x27, 0xf8};
- 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_plmn = (struct osmo_plmn_id){ .mcc = 123, .mnc = 456 };
- gbcfg.core_apn = talloc_zero_size(tall_sgsn_ctx, 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);
-
- talloc_free(gbcfg.core_apn);
- gbcfg.core_apn = NULL;
-
- 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, tall_sgsn_ctx);
- 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, 0xf8};
- 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_plmn = (struct osmo_plmn_id){};
- 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);
-
- talloc_free(gbcfg.core_apn);
- gbcfg.core_apn = NULL;
-
- 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, 0xf6 };
- const uint8_t imsi2[] = { GSM_MI_TYPE_IMSI, 0x26, 0x27, 0x28, 0xf9 };
- 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);
- /* gbprox_reset() frees the rate_ctr, but re-allocates it again. */
- rate_ctr_group_free(cfg.ctrg);
-
- 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);
- OSMO_ASSERT(gbproxy_check_imsi(&match, imsi3_bad, ARRAY_SIZE(imsi3_bad)) == -1);
- 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)) == -1);
- 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, tall_sgsn_ctx);
- 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_plmn = (struct osmo_plmn_id){};
- gbcfg.core_apn = talloc_zero_size(tall_sgsn_ctx, 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);
-
- talloc_free(gbcfg.core_apn);
- gbcfg.core_apn = NULL;
-
- gbprox_reset(&gbcfg);
- gprs_ns_destroy(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-/* See OS#3178 "gbproxy: failed to parse invalid BSSGP-UNITDATA message" */
-static void test_gbproxy_parse_bssgp_unitdata()
-{
- const char *hex = "0000239401e155cfea000004088872f4801018009c4000800e000601c0416c4338";
- struct msgb *msg = msgb_alloc(1034, "bssgp_unitdata");
- struct gprs_gb_parse_context parse_ctx;
- int rc;
-
- memset(&parse_ctx, 0, sizeof(parse_ctx));
-
- OSMO_ASSERT(msg);
- msgb_bssgph(msg) = msg->head;
- msgb_put(msg, osmo_hexparse(hex, msg->head, msgb_tailroom(msg)));
-
- parse_ctx.to_bss = 0;
- parse_ctx.peer_nsei = msgb_nsei(msg);
-
- rc = gprs_gb_parse_bssgp(msg->data, msg->len, &parse_ctx);
- if (!rc)
- fprintf(stderr, "%s: Test passed; Failed to parse invalid message %s\n", __func__, msgb_hexdump(msg));
- else
- fprintf(stderr, "%s: Test failed; invalid message was accepted by parser: %s\n", __func__, msgb_hexdump(msg));
-
- OSMO_ASSERT(!rc);
-
- /* Manually decoded message according to:
- ETSI TS 148 018 V10.6.0 (2012 07) 96
- 3GPP TS 48.018 version 10.6.0 Release 10
- Table 10.2.2: UL-UNITDATA PDU content
-
- 00 - PDU type UL-UNITDATA (ok)
-
- 11.3.35 Temporary logical link Identity (TLLI)
- 00 - TLLI[0]
- 23 - TLLI[1]
- 94 - TLLI[2]
- 01 - TLLI[3]
- TLLI == "00239401"
-
- e1 - QOS[0] (bit rate MSB)
- 55 - QOS[1] (bit rate LSB)
- bit rate = "57685" (57685*100000 bit/s per PBRG)
- cf - QOS[2] PBRG = 11 (bit rate is expressed in 100000 bit/s increments),
- C/R 0 (contains LLC ACK/SACK),
- T 0 (contains signalling),
- A 1 (radio if uses MAC/UNITDATA,
- Precedence 111 (reserved value)
-
- ea - CELL_ID[0] (TLV IEI: wrong, should be 0x08)
- 00 - CELL_ID[1] (length 1)
- 00 - CELL_ID[2] (length 2)
- lenth == 0
- 04 -- CELL_ID[3]
- 08 -- CELL_ID[4]
- 88 -- CELL_ID[5]
- 72 -- CELL_ID[6]
- f4 -- CELL_ID[7]
- 80 -- CELL_ID[8]
- 10 -- CELL_DI[9]
-
- 18 -- QOSP[0] OoS Profile IEI
- not allowed in BSSGP Userdata
- 00 -- QOSP[1]
- 9c -- QOSP[2]
- 40 -- QOSP[3]
- 00 -- QOSP[4]
-
- 80 -- IEI for "E-UTRAN Inter RAT Handover Info"
- not allowed in BSSGP Userdata
- 0e -- length (14 bytes -- only 8 bytes remain)
- 00 06 01 c0 41 6c 43 38 */
-
- msgb_free(msg);
-
- 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)
-{
- talloc_enable_leak_report();
- tall_sgsn_ctx = talloc_named_const(NULL, 0, "gbproxy_test");
- void *log_ctx = talloc_named_const(tall_sgsn_ctx, 0, "log");
-
- msgb_talloc_ctx_init(tall_sgsn_ctx, 0);
-
- osmo_init_logging2(log_ctx, &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(tall_sgsn_ctx);
-
- 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();
- test_gbproxy_parse_bssgp_unitdata();
- gbprox_reset(&gbcfg);
- /* gbprox_reset() frees the rate_ctr, but re-allocates it again. */
- rate_ctr_group_free(gbcfg.ctrg);
- printf("===== GbProxy test END\n\n");
-
- talloc_free(log_ctx);
- /* expecting root and msgb ctx, empty */
- OSMO_ASSERT(talloc_total_blocks(tall_sgsn_ctx) == 2);
- talloc_free(tall_sgsn_ctx);
-
- return 0;
-}
diff --git a/tests/gbproxy/gbproxy_test.ok b/tests/gbproxy/gbproxy_test.ok
deleted file mode 100644
index 03de12e4a..000000000
--- a/tests/gbproxy/gbproxy_test.ok
+++ /dev/null
@@ -1,7492 +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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
-Current NS-VCIs:
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 4
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 12
- Bytes at NS Level (Out): 15
- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 12
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 4
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 12
- Bytes at NS Level (Out): 37
- 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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:2222
-0a
-
-MESSAGE to BSS at 0x01020304:2222, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:2222
-06
-
-MESSAGE to BSS at 0x01020304:2222, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:2222
-
-result (UNBLOCK) = 0
-
-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) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:2222
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 12
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 21
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 6
- Bytes at NS Level ( In): 21
- Bytes at NS Level (Out): 59
- 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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:3333
-0a
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:3333
-06
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:3333
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:3333
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:2222
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 21
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:3333
- Packets at NS Level ( In): 9
- Packets at NS Level (Out): 9
- Bytes at NS Level ( In): 52
- Bytes at NS Level (Out): 33
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 6
- Bytes at NS Level ( In): 30
- Bytes at NS Level (Out): 59
- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:1111
- Packets at NS Level ( In): 9
- Packets at NS Level (Out): 9
- Bytes at NS Level ( In): 52
- Bytes at NS Level (Out): 33
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:3333
- Packets at NS Level ( In): 9
- Packets at NS Level (Out): 9
- Bytes at NS Level ( In): 52
- Bytes at NS Level (Out): 33
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 6
- Bytes at NS Level ( In): 30
- Bytes at NS Level (Out): 59
- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:1111
- Packets at NS Level ( In): 13
- Packets at NS Level (Out): 13
- Bytes at NS Level ( In): 67
- Bytes at NS Level (Out): 45
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:3333
- Packets at NS Level ( In): 9
- Packets at NS Level (Out): 9
- Bytes at NS Level ( In): 52
- Bytes at NS Level (Out): 33
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 6
- Bytes at NS Level ( In): 30
- Bytes at NS Level (Out): 59
- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:4444
-0a
-
-MESSAGE to BSS at 0x01020304:4444, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:4444
-06
-
-MESSAGE to BSS at 0x01020304:4444, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:4444
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:4444
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:4444
- Packets at NS Level ( In): 17
- Packets at NS Level (Out): 17
- Bytes at NS Level ( In): 82
- Bytes at NS Level (Out): 57
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:3333
- Packets at NS Level ( In): 9
- Packets at NS Level (Out): 9
- Bytes at NS Level ( In): 52
- Bytes at NS Level (Out): 33
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 6
- Bytes at NS Level ( In): 30
- Bytes at NS Level (Out): 59
- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:3333
-0a
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:3333
-06
-
-MESSAGE to BSS at 0x01020304:3333, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:3333
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:3333
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- Packets at NS Level ( In): 20
- Packets at NS Level (Out): 21
- Bytes at NS Level ( In): 85
- Bytes at NS Level (Out): 69
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x00000000:0
- Packets at NS Level ( In): 10
- Packets at NS Level (Out): 9
- Bytes at NS Level ( In): 64
- Bytes at NS Level (Out): 33
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 6
- Bytes at NS Level ( In): 30
- Bytes at NS Level (Out): 59
- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- Packets at NS Level ( In): 20
- Packets at NS Level (Out): 21
- Bytes at NS Level ( In): 85
- Bytes at NS Level (Out): 69
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 14
- Packets at NS Level (Out): 13
- Bytes at NS Level ( In): 79
- Bytes at NS Level (Out): 45
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 6
- Bytes at NS Level ( In): 30
- Bytes at NS Level (Out): 59
- 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) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- Packets at NS Level ( In): 20
- Packets at NS Level (Out): 21
- Bytes at NS Level ( In): 85
- Bytes at NS Level (Out): 69
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 15
- Packets at NS Level (Out): 13
- Bytes at NS Level ( In): 101
- Bytes at NS Level (Out): 45
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 7
- Bytes at NS Level ( In): 30
- Bytes at NS Level (Out): 81
- 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) = 0
-
---- 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) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- Packets at NS Level ( In): 20
- Packets at NS Level (Out): 21
- Bytes at NS Level ( In): 85
- Bytes at NS Level (Out): 69
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 16
- Packets at NS Level (Out): 14
- Bytes at NS Level ( In): 123
- Bytes at NS Level (Out): 54
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 7
- Packets at NS Level (Out): 8
- Bytes at NS Level ( In): 39
- Bytes at NS Level (Out): 103
- 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) = 0
-
---- 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) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- Packets at NS Level ( In): 20
- Packets at NS Level (Out): 21
- Bytes at NS Level ( In): 85
- Bytes at NS Level (Out): 69
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 17
- Packets at NS Level (Out): 15
- Bytes at NS Level ( In): 145
- Bytes at NS Level (Out): 63
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 8
- Packets at NS Level (Out): 9
- Bytes at NS Level ( In): 48
- Bytes at NS Level (Out): 125
- 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) = 0
-
---- 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) = 0
-
---- 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) = 0
-
---- 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) = 0
-
---- 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) = 0
-
---- 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) = 0
-
---- 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) = 0
-
---- 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) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:3333
- Packets at NS Level ( In): 21
- Packets at NS Level (Out): 22
- Bytes at NS Level ( In): 107
- Bytes at NS Level (Out): 73
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 20
- Packets at NS Level (Out): 18
- Bytes at NS Level ( In): 157
- Bytes at NS Level (Out): 80
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 12
- Packets at NS Level (Out): 13
- Bytes at NS Level ( In): 69
- Bytes at NS Level (Out): 159
- 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) = 0
-
---- 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) = 0
-
---- 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) = 0
-
---- 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) = 0
-
-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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
-Current NS-VCIs:
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 4
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 12
- Bytes at NS Level (Out): 15
- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 4
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 15
- Bytes at NS Level (Out): 12
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 4
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 12
- Bytes at NS Level (Out): 15
- 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) = 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) = 0
-
-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) = 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:1111, msg length 9
-00 00 00 00 23 04 82 20 02
-
-result (BVC_RESET_ACK) = 0
-
-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) = 0
-
-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) = 0
-
---- 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) = 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)
-MESSAGE to BSS at 0x01020304:1111, msg length 4
-00 00 20 02
-
-result (UNITDATA) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x2000, peer 0x01020304:1111
- Packets at NS Level ( In): 12
- Packets at NS Level (Out): 12
- Bytes at NS Level ( In): 82
- Bytes at NS Level (Out): 50
- NS-VC changed NSEI count : 1
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 8
- Packets at NS Level (Out): 8
- Bytes at NS Level ( In): 38
- Bytes at NS Level (Out): 67
- 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) = 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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
---- 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) = 0
-
-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) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x2001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-PROCESSING ALIVE_ACK from 0x01020304:1111
-0b
-
-result (ALIVE_ACK) = 0
-
-Current NS-VCIs:
- VCI 0x2001, NSEI 0x2000, peer 0x01020304:1111
- Packets at NS Level ( In): 3
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 3
- Bytes at NS Level (Out): 12
- NS-VC replaced other count: 1
- VCI 0x1001, NSEI 0x2000, peer 0x00000000:0
- Packets at NS Level ( In): 18
- Packets at NS Level (Out): 16
- Bytes at NS Level ( In): 150
- Bytes at NS Level (Out): 76
- NS-VC changed NSEI count : 1
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 13
- Packets at NS Level (Out): 13
- Bytes at NS Level ( In): 68
- Bytes at NS Level (Out): 123
- 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) = 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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
---- 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) = 0
-
-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) = 0
-
-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) = 0
-
---- 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) = 0
-
-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) = 0
-
-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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 21
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 21
- Bytes at NS Level (Out): 37
- 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) = 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
-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) = 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
-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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-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 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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 15 36 87
-
-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 f8 15 36 87
-
-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 f8 15 36 87
-
-result (IDENT RESPONSE) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-result (GMM INFO) = 0
-
-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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
-Current NS-VCIs:
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 4
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 12
- Bytes at NS Level (Out): 15
- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 4
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 12
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 4
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 12
- Bytes at NS Level (Out): 37
- 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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 1d ff 1c
-
-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 f8 1d ff 1c
-
-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 f8 1d ff 1c
-
-result (IDENT RESPONSE) = 0
-
-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 f8 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 f8 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 f8 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) = 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 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) = 0
-
-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)) = 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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 0
-
-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)) = 0
-
-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)) = 0
-
-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) = 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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 15 08 06 00 f7 35 f0
-
-result (DETACH ACC) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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)) = 0
-
-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)) = 0
-
-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)) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 21
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 21
- Bytes at NS Level (Out): 37
- 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) = 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 (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) = 0
-
-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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-result (IDENT RESPONSE) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 0
-
-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)) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-result (XID (DL)) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 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)) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 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)) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 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)) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-result (GMM INFO) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 0d 08 21 68 71 6b
-
-result (GMM INFO) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 19 08 06 00 04 ff 52
-
-result (DETACH ACC) = 0
-
-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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 21
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 21
- Bytes at NS Level (Out): 37
- 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) = 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 (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) = 0
-
-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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-result (IDENT RESPONSE) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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 f8 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 f8 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 f8 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)) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 0d 08 21 68 71 6b
-
-result (GMM INFO) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 11 08 06 00 cf 8a 58
-
-result (DETACH ACC) = 0
-
-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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 21
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 21
- Bytes at NS Level (Out): 37
- 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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-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) = 0
-
-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 f8 10 f0 45
-
-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 f8 10 f0 45
-
-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 f8 10 f0 45
-
-result (IDENT RESPONSE) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-result (XID (DL)) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 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)) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 0d 08 06 00 aa ab ee
-
-result (DETACH ACC) = 0
-
-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 f8 9f c7 7a
-
-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 f8 9f c7 7a
-
-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 f8 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 f8 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 f8 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) = 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 : 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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 15 08 06 00 f7 35 f0
-
-result (DETACH ACC) = 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 : 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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE_ACK from 0x15161718:32001
-0b
-
-MESSAGE to SGSN 2 at 0x15161718:32001, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 0
-
-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) = 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) = 0
-
-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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 6
- Bytes at NS Level ( In): 59
- Bytes at NS Level (Out): 30
- VCI 0x0103, NSEI 0x0102, peer 0x15161718:32001
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 21
- Bytes at NS Level (Out): 37
- NS-VC Block count : 1
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 6
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 30
- Bytes at NS Level (Out): 37
- 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) = 0
-
-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) = 0
-
-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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-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) = 0
-
-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 f8 10 f0 45
-
-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 f8 10 f0 45
-
-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 f8 10 f0 45
-
-result (IDENT RESPONSE) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-result (XID (DL)) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 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)) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 0
-
-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) = 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 : 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 f8 18 39 de
-
-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 f8 18 39 de
-
-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) = 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): 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 f8 0f 28 35
-
-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 f8 0f 28 35
-
-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 f8 0f 28 35
-
-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 f8 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 f8 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 f8 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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 15 08 21 bb c1 c6
-
-result (GMM INFO) = 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): 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 f8 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 f8 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 f8 00 81 00 0e 8c 41 fb 30 84 10 61 b6 64 e4 a9 1a 9e
-
-result (XID (DL)) = 0
-
-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 f8 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 f8 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 f8 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)) = 0
-
-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) = 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): 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) = 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 : 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 f8 94 16 f5
-
-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 f8 94 16 f5
-
-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) = 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): 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 f8 83 07 1e
-
-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 f8 83 07 1e
-
-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 f8 83 07 1e
-
-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 f8 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 f8 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 f8 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)) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 21 08 21 ca 60 90
-
-result (GMM INFO) = 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): 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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 25 08 06 00 4d 09 cd
-
-result (DETACH ACC) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 29 08 06 00 be c3 6f
-
-result (DETACH ACC) = 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): 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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 2d 08 06 00 86 7c c7
-
-result (DETACH ACC) = 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): 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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 21
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 21
- Bytes at NS Level (Out): 37
- 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 f8 07 e1 ae
-
-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 f8 07 e1 ae
-
-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) = 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 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 f8 10 f0 45
-
-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 f8 10 f0 45
-
-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 f8 10 f0 45
-
-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 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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 09 08 21 04 ba 3d
-
-result (GMM INFO) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 0d 08 06 00 aa ab ee
-
-result (DETACH ACC) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8b 41 c0 15 08 05 01 25 0a 67 0e 96
-
-result (DETACH REQ (re-attach)) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8b 41 c0 1d 08 05 02 25 0a dd 56 6c
-
-result (DETACH REQ) = 0
-
-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) = 0
-
-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 f8 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 f0 f7 35
-
-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 f8 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 f0 f7 35
-
-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 f8 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 f0 f7 35
-
-result (ATTACH REQUEST (IMSI)) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8b 41 c0 25 08 05 02 25 0a 8e ee 85
-
-result (DETACH REQ) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8a 41 c0 2d 08 0b 0a 00 41 30 a7
-
-result (RA UDP REJ) = 0
-
-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 f8 2c 2e b9
-
-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 f8 2c 2e b9
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8b 41 c0 35 08 05 02 25 0a 9b fa 57
-
-result (DETACH REQ) = 0
-
-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) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8b 41 c0 3d 08 05 01 25 0a 21 a2 ad
-
-result (DETACH REQ (re-attach)) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 45 08 21 9c 7f c6
-
-result (GMM INFO) = 0
-
-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 f8 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 b4 63 cd
-
-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 f8 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 b4 63 cd
-
-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 f8 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 b4 63 cd
-
-result (ATTACH REQUEST (unexpected, IMSI)) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8b 41 c0 4d 08 05 02 25 0a 51 0e 1b
-
-result (DETACH REQ) = 0
-
-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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 88 41 c0 55 08 21 97 59 c6
-
-result (GMM INFO) = 0
-
-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)) = 0
-
-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 f8 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 f8 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 f8 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) = 0
-
-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) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8b 41 c0 5d 08 05 02 25 0a 44 1a c9
-
-result (DETACH REQ) = 0
-
-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) = 0
-
-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 f8 de 48 be
-
-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 f8 de 48 be
-
-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 f8 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 f8 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 f8 00 81 00 0e 89 41 c0 61 08 04 07 79 ba a5
-
-result (ATTACH REJECT) = 0
-
-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 f8 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 f8 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 f8 00 81 00 0e 8b 41 c0 65 08 05 02 25 0a 17 a2 20
-
-result (DETACH REQ (MT)) = 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 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) = 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 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 000-000-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 000-000-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 000-000-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 000-000-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 000-000-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 000-000-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) = 0
-
-PROCESSING ALIVE_ACK from 0x05060708:32000
-0b
-
-MESSAGE to SGSN at 0x05060708:32000, msg length 1
-06
-
-result (ALIVE_ACK) = 0
-
-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) = 0
-
---- 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) = 0
-
-PROCESSING ALIVE from 0x01020304:1111
-0a
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-0b
-
-result (ALIVE) = 0
-
-PROCESSING UNBLOCK from 0x01020304:1111
-06
-
-MESSAGE to BSS at 0x01020304:1111, msg length 1
-07
-
-==> got signal NS_UNBLOCK, NS-VC 0x1001/1.2.3.4:1111
-
-result (UNBLOCK) = 0
-
-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) = 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) = 0
-
-Current NS-VCIs:
- VCI 0x1001, NSEI 0x1000, peer 0x01020304:1111
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 37
- Bytes at NS Level (Out): 21
- VCI 0x0101, NSEI 0x0100, peer 0x05060708:32000
- Packets at NS Level ( In): 5
- Packets at NS Level (Out): 5
- Bytes at NS Level ( In): 21
- Bytes at NS Level (Out): 37
- 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) = 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 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 f8 10 f0 45
-
-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 f8 10 f0 45
-
-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
index 902313f2a..ddfd2aec0 100644
--- a/tests/gprs/Makefile.am
+++ b/tests/gprs/Makefile.am
@@ -1,9 +1,10 @@
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS)
+AM_LDFLAGS = -no-install
EXTRA_DIST = gprs_test.ok
-noinst_PROGRAMS = gprs_test
+check_PROGRAMS = gprs_test
gprs_test_SOURCES = gprs_test.c $(top_srcdir)/src/gprs/gprs_utils.c
diff --git a/tests/gprs/gprs_test.c b/tests/gprs/gprs_test.c
index 99e3ea519..f239b7032 100644
--- a/tests/gprs/gprs_test.c
+++ b/tests/gprs/gprs_test.c
@@ -24,7 +24,7 @@ static int nu_is_retransmission(uint16_t nu, uint16_t vur)
return ret;
}
-static void test_8_4_2()
+static void test_8_4_2(void)
{
printf("Testing gprs_llc_is_retransmit.\n");
@@ -48,6 +48,22 @@ static void test_8_4_2()
ASSERT_FALSE(nu_is_retransmission(479, 511)); // wrapped
}
+/* GSM 04.08, 10.5.7.3 GPRS Timer */
+static int gprs_tmr_to_secs(uint8_t tmr)
+{
+ switch (tmr & GPRS_TMR_UNIT_MASK) {
+ case GPRS_TMR_2SECONDS:
+ return 2 * (tmr & GPRS_TMR_FACT_MASK);
+ default:
+ case GPRS_TMR_MINUTE:
+ return 60 * (tmr & GPRS_TMR_FACT_MASK);
+ case GPRS_TMR_6MINUTE:
+ return 360 * (tmr & GPRS_TMR_FACT_MASK);
+ case GPRS_TMR_DEACTIVATED:
+ return -1;
+ }
+}
+
static void test_gprs_timer_enc_dec(void)
{
int i, u, secs, tmr;
diff --git a/tests/gtphub/Makefile.am b/tests/gtphub/Makefile.am
index fea01e0d1..22b2a522c 100644
--- a/tests/gtphub/Makefile.am
+++ b/tests/gtphub/Makefile.am
@@ -12,11 +12,13 @@ AM_CFLAGS = \
$(LIBGTP_CFLAGS) \
$(NULL)
+AM_LDFLAGS = -no-install
+
EXTRA_DIST = \
gtphub_test.ok \
$(NULL)
-noinst_PROGRAMS = \
+check_PROGRAMS = \
gtphub_test \
$(NULL)
@@ -28,6 +30,7 @@ gtphub_test_LDFLAGS = \
-Wl,--wrap=gtphub_resolve_ggsn_addr \
-Wl,--wrap=gtphub_ares_init \
-Wl,--wrap=gtphub_write \
+ $(AM_LDFLAGS) \
$(NULL)
gtphub_test_LDADD = \
diff --git a/tests/gtphub/gtphub_test.c b/tests/gtphub/gtphub_test.c
index dab39775b..5fa730a05 100644
--- a/tests/gtphub/gtphub_test.c
+++ b/tests/gtphub/gtphub_test.c
@@ -27,10 +27,11 @@
#include <osmocom/core/utils.h>
#include <osmocom/core/application.h>
+#include <osmocom/gsm/protocol/gsm_23_003.h>
#include <osmocom/sgsn/debug.h>
-#include <osmocom/sgsn/gtphub.h>
+#include <osmocom/gtphub/gtphub.h>
#include <gtp.h>
#include <gtpie.h>
@@ -376,7 +377,7 @@ static void test_expiry(void)
}
char resolve_ggsn_got_imsi[GSM23003_IMSI_MAX_DIGITS+1];
-char resolve_ggsn_got_ni[GSM_APN_LENGTH];
+char resolve_ggsn_got_ni[APN_MAXLEN+1];
struct sgsn_sockaddr resolved_ggsn_addr;
static int resolve_to_ggsn(const char *addr, uint16_t port)
@@ -577,7 +578,7 @@ time_t now;
static struct gtphub _hub;
static struct gtphub *hub = &_hub;
-static int setup_test_hub()
+static int setup_test_hub(void)
{
/* Not really needed, but to make 100% sure... */
ZERO_STRUCT(hub);
@@ -613,7 +614,7 @@ static int setup_test_hub()
return 1;
}
-static int clear_test_hub()
+static int clear_test_hub(void)
{
/* expire all */
gtphub_gc(hub, now + (60 * GTPH_EXPIRE_SLOWLY_MINUTES) + 1);
@@ -817,7 +818,7 @@ static void test_echo(void)
"87" /* 135: Quality of Service (QoS) Profile */ \
"0004" /* length */ \
"00" /* priority */ \
- "0b921f" /* QoS profile data */
+ "0b921f" /* QoS profile data */
#define MSG_PDP_CTX_RSP(len, tei_h, seq, restart, tei_u, tei_c, gsn_c, gsn_u) \
"32" \
@@ -898,7 +899,7 @@ static int msg_from_ggsn(int plane_idx,
return 1;
}
-static int create_pdp_ctx()
+static int create_pdp_ctx(void)
{
const char *gtp_req_from_sgsn =
MSG_PDP_CTX_REQ("0068",
diff --git a/tests/test_nodes.vty b/tests/osmo-sgsn_test-nodes.vty
index 109e2ece2..32ff8e71d 100644
--- a/tests/test_nodes.vty
+++ b/tests/osmo-sgsn_test-nodes.vty
@@ -13,7 +13,6 @@ T3386 = 8 s Wait for MODIFY PDP CTX ACK timer (s) (default: 8 s)
T3395 = 8 s Wait for DEACT PDP CTX ACK timer (s) (default: 8 s)
T3397 = 8 s Wait for DEACT AA PDP CTX ACK timer (s) (default: 8 s)
X1001 = 5 s RANAP Release timeout. Wait for RANAP Release Complete.On expiry release Iu connection (s) (default: 5 s)
-X3314 = 44 s Iu User inactivity timer. On expiry release Iu connection (s) (default: 44 s)
OsmoSGSN# configure terminal
OsmoSGSN(config)# list
...
@@ -36,7 +35,10 @@ OsmoSGSN(config-sgsn)# list
imsi-acl (add|del) IMSI
auth-policy (accept-all|closed|acl-only|remote)
authentication (optional|required)
- encryption (GEA0|GEA1|GEA2|GEA3|GEA4)
+ encryption gea <0-4> [<0-4>] [<0-4>] [<0-4>] [<0-4>]
+ encryption uea <0-2> [<0-2>] [<0-2>]
+ encryption cipher-plugin-path PATH
+ no encryption cipher-plugin-path PATH
gsup ipa-name NAME
gsup remote-ip A.B.C.D
gsup remote-port <0-65535>
@@ -55,6 +57,7 @@ OsmoSGSN(config-sgsn)# list
ggsn dynamic
grx-dns-add A.B.C.D
timer [TNNNN] [(<0-2147483647>|default)]
+ timer gtp [TNNNN] [(<0-2147483647>|default)]
no compression rfc1144
compression rfc1144 active slots <1-256>
compression rfc1144 passive
@@ -62,3 +65,69 @@ OsmoSGSN(config-sgsn)# list
compression v42bis active direction (ms|sgsn|both) codewords <512-65535> strlen <6-250>
compression v42bis passive
...
+
+OsmoSGSN(config-sgsn)# mme test0
+OsmoSGSN(config-sgsn-mme)# gtp remote-ip 1.2.3.4
+OsmoSGSN(config-sgsn-mme)# gtp ran-info-relay 907 10 567
+OsmoSGSN(config-sgsn-mme)# gtp ran-info-relay 202 12 51
+OsmoSGSN(config-sgsn-mme)# gtp ran-info-relay 907 10 567
+OsmoSGSN(config-sgsn-mme)# exit
+OsmoSGSN(config-sgsn)# mme test1
+OsmoSGSN(config-sgsn-mme)# gtp remote-ip 5.6.7.8
+OsmoSGSN(config-sgsn-mme)# gtp ran-info-relay default
+OsmoSGSN(config-sgsn-mme)# exit
+OsmoSGSN(config-sgsn)# show running-config
+...
+sgsn
+...
+ mme test0
+ gtp remote-ip 1.2.3.4
+ gtp ran-info-relay 907 10 567
+ gtp ran-info-relay 202 12 51
+ mme test1
+ gtp remote-ip 5.6.7.8
+ gtp ran-info-relay default
+...
+OsmoSGSN(config-sgsn)# mme test0
+OsmoSGSN(config-sgsn-mme)# gtp ran-info-relay default
+% Another MME test1 is already set as default route, remove it before setting it here.
+OsmoSGSN(config-sgsn-mme)# exit
+OsmoSGSN(config-sgsn)# mme test1
+OsmoSGSN(config-sgsn-mme)# no gtp ran-info-relay default
+OsmoSGSN(config-sgsn-mme)# exit
+OsmoSGSN(config-sgsn)# mme test0
+OsmoSGSN(config-sgsn-mme)# gtp ran-info-relay default
+OsmoSGSN(config-sgsn-mme)# exit
+OsmoSGSN(config-sgsn)# show running-config
+...
+sgsn
+...
+ mme test0
+ gtp remote-ip 1.2.3.4
+ gtp ran-info-relay default
+ gtp ran-info-relay 907 10 567
+ gtp ran-info-relay 202 12 51
+ mme test1
+ gtp remote-ip 5.6.7.8
+...
+OsmoSGSN(config-sgsn)# no mme test0
+OsmoSGSN(config-sgsn)# show running-config
+...
+sgsn
+...
+ no compression v42bis
+ mme test1
+ gtp remote-ip 5.6.7.8
+...
+OsmoSGSN(config-sgsn)# no mme test1
+OsmoSGSN(config-sgsn)# encryption gea 0 3
+OsmoSGSN(config-sgsn)# encryption uea 1 2
+OsmoSGSN(config-sgsn)# encryption cipher-plugin-path /foo/bar
+OsmoSGSN(config-sgsn)# show running-config
+...
+sgsn
+...
+ encryption gea 0 3
+ encryption uea 1 2
+ encryption cipher-plugin-path /foo/bar
+...
diff --git a/tests/sgsn/Makefile.am b/tests/sgsn/Makefile.am
index b72c44634..c6c1f4a68 100644
--- a/tests/sgsn/Makefile.am
+++ b/tests/sgsn/Makefile.am
@@ -7,6 +7,7 @@ AM_CFLAGS = \
-Wall \
-ggdb3 \
$(LIBOSMOCORE_CFLAGS) \
+ $(LIBOSMOCTRL_CFLAGS) \
$(LIBOSMOABIS_CFLAGS) \
$(LIBOSMOGSM_CFLAGS) \
$(LIBOSMOGSUPCLIENT_CFLAGS) \
@@ -21,16 +22,23 @@ AM_CFLAGS += \
$(NULL)
endif
+AM_LDFLAGS = -no-install
+
EXTRA_DIST = \
sgsn_test.ok \
$(NULL)
-noinst_PROGRAMS = \
+check_PROGRAMS = \
sgsn_test \
$(NULL)
+noinst_HEADERS = \
+ gprs_gb_parse.h \
+ $(NULL)
+
sgsn_test_SOURCES = \
sgsn_test.c \
+ gprs_gb_parse.c \
$(NULL)
sgsn_test_LDFLAGS = \
@@ -39,17 +47,26 @@ sgsn_test_LDFLAGS = \
-Wl,--wrap=gprs_subscr_request_update_location \
-Wl,--wrap=gprs_subscr_request_auth_info \
-Wl,--wrap=osmo_gsup_client_send \
+ $(AM_LDFLAGS) \
$(NULL)
sgsn_test_LDADD = \
+ $(top_builddir)/src/sgsn/apn.o \
+ $(top_builddir)/src/sgsn/gprs_bssgp.o \
$(top_builddir)/src/sgsn/gprs_llc.o \
- $(top_builddir)/src/sgsn/gprs_gb.o \
+ $(top_builddir)/src/sgsn/gprs_ns.o \
$(top_builddir)/src/sgsn/gprs_sndcp.o \
$(top_builddir)/src/sgsn/gprs_gmm_attach.o \
$(top_builddir)/src/sgsn/gprs_gmm.o \
$(top_builddir)/src/sgsn/gprs_gmm_fsm.o \
$(top_builddir)/src/sgsn/gprs_mm_state_gb_fsm.o \
- $(top_builddir)/src/sgsn/gprs_sgsn.o \
+ $(top_builddir)/src/sgsn/gtp_ggsn.o \
+ $(top_builddir)/src/sgsn/gtp_mme.o \
+ $(top_builddir)/src/sgsn/mmctx.o \
+ $(top_builddir)/src/sgsn/pdpctx.o \
+ $(top_builddir)/src/sgsn/sgsn.o \
+ $(top_builddir)/src/sgsn/sgsn_cdr.o \
+ $(top_builddir)/src/sgsn/sgsn_ctrl.o \
$(top_builddir)/src/sgsn/sgsn_vty.o \
$(top_builddir)/src/sgsn/sgsn_libgtp.o \
$(top_builddir)/src/sgsn/sgsn_auth.o \
@@ -62,13 +79,14 @@ sgsn_test_LDADD = \
$(top_builddir)/src/sgsn/gprs_sndcp_pcomp.o \
$(top_builddir)/src/sgsn/v42bis.o \
$(top_builddir)/src/sgsn/gprs_sndcp_dcomp.o \
+ $(top_builddir)/src/sgsn/sgsn_rim.o \
$(top_builddir)/src/gprs/gprs_utils.o \
$(top_builddir)/src/gprs/gprs_llc_parse.o \
- $(top_builddir)/src/gprs/gprs_gb_parse.o \
$(top_builddir)/src/gprs/crc24.o \
$(top_builddir)/src/gprs/sgsn_ares.o \
$(LIBOSMOABIS_LIBS) \
$(LIBOSMOCORE_LIBS) \
+ $(LIBOSMOCTRL_LIBS) \
$(LIBOSMOGSM_LIBS) \
$(LIBOSMOGB_LIBS) \
$(LIBOSMOGSUPCLIENT_LIBS) \
diff --git a/tests/sgsn/gprs_gb_parse.c b/tests/sgsn/gprs_gb_parse.c
new file mode 100644
index 000000000..670839f73
--- /dev/null
+++ b/tests/sgsn/gprs_gb_parse.c
@@ -0,0 +1,688 @@
+/* GPRS Gb message parser */
+
+/* (C) 2014 by On-Waves
+ * 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 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 <arpa/inet.h>
+
+#include <osmocom/gsm/gsm48.h>
+#include <osmocom/gsm/protocol/gsm_04_08_gprs.h>
+
+#include "gprs_gb_parse.h"
+
+#include <osmocom/sgsn/gprs_utils.h>
+
+#include <osmocom/sgsn/debug.h>
+
+#include <osmocom/gprs/gprs_bssgp.h>
+
+static int gprs_gb_parse_gmm_attach_req(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+ size_t value_len;
+
+ parse_ctx->llc_msg_name = "ATTACH_REQ";
+
+ /* Skip MS network capability */
+ if (osmo_shift_lv(&data, &data_len, NULL, &value_len) <= 0 ||
+ value_len < 1 || value_len > 8)
+ /* invalid */
+ return 0;
+
+ /* Skip Attach type */
+ /* Skip Ciphering key sequence number */
+ /* Skip DRX parameter */
+ if (osmo_shift_v_fixed(&data, &data_len, 3, NULL) < 3)
+ return 0;
+
+ /* Get Mobile identity */
+ if (osmo_shift_lv(&data, &data_len, &value, &value_len) <= 0 ||
+ value_len < 5 || value_len > 8)
+ /* invalid */
+ return 0;
+
+ if (gprs_is_mi_tmsi(value, value_len)) {
+ parse_ctx->ptmsi_enc = value + 1;
+ } else if (gprs_is_mi_imsi(value, value_len)) {
+ parse_ctx->imsi = value;
+ parse_ctx->imsi_len = value_len;
+ }
+
+ if (osmo_shift_v_fixed(&data, &data_len, 6, &value) <= 0)
+ return 0;
+
+ parse_ctx->old_raid_enc = value;
+
+ return 1;
+}
+
+static int gprs_gb_parse_gmm_attach_ack(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+ size_t value_len;
+
+ parse_ctx->llc_msg_name = "ATTACH_ACK";
+
+ /* Skip Attach result */
+ /* Skip Force to standby */
+ /* Skip Periodic RA update timer */
+ /* Skip Radio priority for SMS */
+ /* Skip Spare half octet */
+ if (osmo_shift_v_fixed(&data, &data_len, 3, NULL) < 3)
+ return 0;
+
+ if (osmo_shift_v_fixed(&data, &data_len, 6, &value) <= 0)
+ return 0;
+
+ parse_ctx->raid_enc = value;
+
+ /* Skip P-TMSI signature (P-TMSI signature, opt, TV, length 4) */
+ osmo_match_shift_tv_fixed(&data, &data_len, GSM48_IE_GMM_PTMSI_SIG, 3, NULL);
+
+ /* Skip Negotiated READY timer value (GPRS timer, opt, TV, length 2) */
+ osmo_match_shift_tv_fixed(&data, &data_len, GSM48_IE_GMM_TIMER_READY, 1, NULL);
+
+ /* Allocated P-TMSI (Mobile identity, opt, TLV, length 7) */
+ if (osmo_match_shift_tlv(&data, &data_len, GSM48_IE_GMM_ALLOC_PTMSI,
+ &value, &value_len) > 0 &&
+ gprs_is_mi_tmsi(value, value_len))
+ parse_ctx->new_ptmsi_enc = value + 1;
+ return 1;
+}
+
+static int gprs_gb_parse_gmm_attach_rej(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+
+ parse_ctx->llc_msg_name = "ATTACH_REJ";
+
+ /* GMM cause */
+ if (osmo_shift_v_fixed(&data, &data_len, 1, &value) <= 0)
+ return 0;
+
+ parse_ctx->invalidate_tlli = 1;
+
+ return 1;
+}
+
+
+static int gprs_gb_parse_gmm_detach_req(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+ size_t value_len;
+ int detach_type;
+ int power_off;
+
+ parse_ctx->llc_msg_name = "DETACH_REQ";
+
+ /* Skip spare half octet */
+ /* Get Detach type */
+ if (osmo_shift_v_fixed(&data, &data_len, 1, &value) <= 0)
+ /* invalid */
+ return 0;
+
+ detach_type = *value & 0x07;
+ power_off = *value & 0x08 ? 1 : 0;
+
+ if (parse_ctx->to_bss) {
+ /* Network originated */
+ if (detach_type == GPRS_DET_T_MT_REATT_REQ)
+ parse_ctx->await_reattach = 1;
+ } else {
+ /* Mobile originated */
+
+ if (power_off)
+ parse_ctx->invalidate_tlli = 1;
+
+ /* Get P-TMSI (Mobile identity), see GSM 24.008, 9.4.5.2 */
+ if (osmo_match_shift_tlv(&data, &data_len,
+ GSM48_IE_GMM_ALLOC_PTMSI, &value, &value_len) > 0)
+ {
+ if (gprs_is_mi_tmsi(value, value_len))
+ parse_ctx->ptmsi_enc = value + 1;
+ }
+ }
+
+ return 1;
+}
+
+static int gprs_gb_parse_gmm_ra_upd_req(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+
+ parse_ctx->llc_msg_name = "RA_UPD_REQ";
+
+ /* Skip Update type */
+ /* Skip GPRS ciphering key sequence number */
+ if (osmo_shift_v_fixed(&data, &data_len, 1, NULL) < 1)
+ return 0;
+
+ if (osmo_shift_v_fixed(&data, &data_len, 6, &value) <= 0)
+ return 0;
+
+ parse_ctx->old_raid_enc = value;
+
+ return 1;
+}
+
+static int gprs_gb_parse_gmm_ra_upd_rej(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+ uint8_t cause;
+ int force_standby;
+
+ parse_ctx->llc_msg_name = "RA_UPD_REJ";
+
+ /* GMM cause */
+ if (osmo_shift_v_fixed(&data, &data_len, 1, &value) <= 0)
+ return 0;
+
+ cause = value[0];
+
+ /* Force to standby, 1/2 */
+ /* spare bits, 1/2 */
+ if (osmo_shift_v_fixed(&data, &data_len, 1, &value) <= 0)
+ return 0;
+
+ force_standby = (value[0] & 0x07) == 0x01;
+
+ if (cause == GMM_CAUSE_IMPL_DETACHED && !force_standby)
+ parse_ctx->await_reattach = 1;
+
+ parse_ctx->invalidate_tlli = 1;
+
+ return 1;
+}
+
+static int gprs_gb_parse_gmm_ra_upd_ack(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+ size_t value_len;
+
+ parse_ctx->llc_msg_name = "RA_UPD_ACK";
+
+ /* Skip Force to standby */
+ /* Skip Update result */
+ /* Skip Periodic RA update timer */
+ if (osmo_shift_v_fixed(&data, &data_len, 2, NULL) < 2)
+ return 0;
+
+ if (osmo_shift_v_fixed(&data, &data_len, 6, &value) <= 0)
+ return 0;
+
+ parse_ctx->raid_enc = value;
+
+ /* Skip P-TMSI signature (P-TMSI signature, opt, TV, length 4) */
+ osmo_match_shift_tv_fixed(&data, &data_len, GSM48_IE_GMM_PTMSI_SIG, 3, NULL);
+
+ /* Allocated P-TMSI (Mobile identity, opt, TLV, length 7) */
+ if (osmo_match_shift_tlv(&data, &data_len, GSM48_IE_GMM_ALLOC_PTMSI,
+ &value, &value_len) > 0 &&
+ gprs_is_mi_tmsi(value, value_len))
+ parse_ctx->new_ptmsi_enc = value + 1;
+
+ return 1;
+}
+
+static int gprs_gb_parse_gmm_ptmsi_reall_cmd(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+ size_t value_len;
+
+ parse_ctx->llc_msg_name = "PTMSI_REALL_CMD";
+
+ LOGP(DLLC, LOGL_NOTICE,
+ "Got P-TMSI Reallocation Command which is not covered by unit tests yet.\n");
+
+ /* Allocated P-TMSI */
+ if (osmo_shift_lv(&data, &data_len, &value, &value_len) > 0 &&
+ gprs_is_mi_tmsi(value, value_len))
+ parse_ctx->new_ptmsi_enc = value + 1;
+
+ if (osmo_shift_v_fixed(&data, &data_len, 6, &value) <= 0)
+ return 0;
+
+ parse_ctx->raid_enc = value;
+
+ return 1;
+}
+
+static int gprs_gb_parse_gmm_id_resp(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ uint8_t *value;
+ size_t value_len;
+
+ parse_ctx->llc_msg_name = "ID_RESP";
+
+ /* Mobile identity, Mobile identity 10.5.1.4, M LV 2-10 */
+ if (osmo_shift_lv(&data, &data_len, &value, &value_len) <= 0 ||
+ value_len < 1 || value_len > 9)
+ /* invalid */
+ return 0;
+
+ if (gprs_is_mi_tmsi(value, value_len)) {
+ parse_ctx->ptmsi_enc = value + 1;
+ } else if (gprs_is_mi_imsi(value, value_len)) {
+ parse_ctx->imsi = value;
+ parse_ctx->imsi_len = value_len;
+ }
+
+ return 1;
+}
+
+static int gprs_gb_parse_gsm_act_pdp_req(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ ssize_t old_len;
+ uint8_t *value;
+ size_t value_len;
+
+ parse_ctx->llc_msg_name = "ACT_PDP_REQ";
+
+ /* Skip Requested NSAPI */
+ /* Skip Requested LLC SAPI */
+ if (osmo_shift_v_fixed(&data, &data_len, 2, NULL) < 2)
+ return 0;
+
+ /* Skip Requested QoS (support 04.08 and 24.008) */
+ if (osmo_shift_lv(&data, &data_len, NULL, &value_len) <= 0 ||
+ value_len < 4 || value_len > 14)
+ /* invalid */
+ return 0;
+
+ /* Skip Requested PDP address */
+ if (osmo_shift_lv(&data, &data_len, NULL, &value_len) <= 0 ||
+ value_len < 2 || value_len > 18)
+ /* invalid */
+ return 0;
+
+ /* Access point name */
+ old_len = osmo_match_shift_tlv(&data, &data_len,
+ GSM48_IE_GSM_APN, &value, &value_len);
+
+ if (old_len > 0 && value_len >=1 && value_len <= 100) {
+ parse_ctx->apn_ie = data - old_len;
+ parse_ctx->apn_ie_len = old_len;
+ }
+
+ return 1;
+}
+
+int gprs_gb_parse_dtap(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ struct gsm48_hdr *g48h;
+ uint8_t pdisc;
+ uint8_t msg_type;
+
+ if (osmo_shift_v_fixed(&data, &data_len, sizeof(*g48h), (uint8_t **)&g48h) <= 0)
+ return 0;
+
+ parse_ctx->g48_hdr = g48h;
+
+ pdisc = gsm48_hdr_pdisc(g48h);
+ if (pdisc != GSM48_PDISC_MM_GPRS && pdisc != GSM48_PDISC_SM_GPRS)
+ return 1;
+
+ msg_type = gsm48_hdr_msg_type(g48h);
+ switch (msg_type) {
+ case GSM48_MT_GMM_ATTACH_REQ:
+ return gprs_gb_parse_gmm_attach_req(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_ATTACH_REJ:
+ return gprs_gb_parse_gmm_attach_rej(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_ATTACH_ACK:
+ return gprs_gb_parse_gmm_attach_ack(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_RA_UPD_REQ:
+ return gprs_gb_parse_gmm_ra_upd_req(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_RA_UPD_REJ:
+ return gprs_gb_parse_gmm_ra_upd_rej(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_RA_UPD_ACK:
+ return gprs_gb_parse_gmm_ra_upd_ack(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_PTMSI_REALL_CMD:
+ return gprs_gb_parse_gmm_ptmsi_reall_cmd(data, data_len, parse_ctx);
+
+ case GSM48_MT_GSM_ACT_PDP_REQ:
+ return gprs_gb_parse_gsm_act_pdp_req(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_ID_RESP:
+ return gprs_gb_parse_gmm_id_resp(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_DETACH_REQ:
+ return gprs_gb_parse_gmm_detach_req(data, data_len, parse_ctx);
+
+ case GSM48_MT_GMM_DETACH_ACK:
+ parse_ctx->llc_msg_name = "DETACH_ACK";
+ parse_ctx->invalidate_tlli = 1;
+ break;
+
+ case GSM48_MT_GSM_DEACT_PDP_REQ:
+ parse_ctx->llc_msg_name = "DEACT_PDP_REQ";
+ break;
+
+ case GSM48_MT_GSM_DEACT_PDP_ACK:
+ parse_ctx->llc_msg_name = "DEACT_PDP_ACK";
+ break;
+
+ default:
+ LOGP(DLLC, LOGL_NOTICE,
+ "Unhandled GSM 04.08 message type %s for protocol discriminator %s.\n",
+ get_value_string(gprs_msgt_gmm_names, msg_type), get_value_string(gsm48_pdisc_names, pdisc));
+ break;
+ };
+
+ return 1;
+}
+
+int gprs_gb_parse_llc(uint8_t *llc, size_t llc_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ struct gprs_llc_hdr_parsed *ghp = &parse_ctx->llc_hdr_parsed;
+ int rc;
+ int fcs;
+
+ /* parse LLC */
+ rc = gprs_llc_hdr_parse(ghp, llc, llc_len);
+ gprs_llc_hdr_dump(ghp, NULL);
+ if (rc != 0) {
+ LOGP(DLLC, LOGL_NOTICE, "Error during LLC header parsing\n");
+ return 0;
+ }
+
+ fcs = gprs_llc_fcs(llc, ghp->crc_length);
+ LOGP(DLLC, LOGL_DEBUG, "Got LLC message, CRC: %06x (computed %06x)\n",
+ ghp->fcs, fcs);
+
+ if (!ghp->data)
+ return 0;
+
+ if (ghp->sapi != GPRS_SAPI_GMM)
+ return 1;
+
+ if (ghp->cmd != GPRS_LLC_UI)
+ return 1;
+
+ if (ghp->is_encrypted) {
+ parse_ctx->need_decryption = 1;
+ return 0;
+ }
+
+ return gprs_gb_parse_dtap(ghp->data, ghp->data_len, parse_ctx);
+}
+
+/*! Determine the TLLI from the given BSSGP message.
+ * \param[in] bssgp pointer to start of BSSGP header
+ * \param[in] bssgp_len length of BSSGP message in octets
+ * \param[out] tlli TLLI (if any) in host byte order
+ * \returns 1 if TLLI found; 0 if none found; negative on parse error */
+int gprs_gb_parse_tlli(const uint8_t *bssgp, size_t bssgp_len, uint32_t *tlli)
+{
+ const struct bssgp_normal_hdr *bgph;
+ uint8_t pdu_type;
+
+ if (bssgp_len < sizeof(struct bssgp_normal_hdr))
+ return -EINVAL;
+
+ bgph = (struct bssgp_normal_hdr *)bssgp;
+ pdu_type = bgph->pdu_type;
+
+ if (pdu_type == BSSGP_PDUT_UL_UNITDATA ||
+ pdu_type == BSSGP_PDUT_DL_UNITDATA) {
+ const struct bssgp_ud_hdr *budh = (struct bssgp_ud_hdr *)bssgp;
+ if (bssgp_len < sizeof(struct bssgp_ud_hdr))
+ return -EINVAL;
+ *tlli = osmo_load32be((const uint8_t *)&budh->tlli);
+ return 1;
+ } else {
+ const uint8_t *data = bgph->data;
+ size_t data_len = bssgp_len - sizeof(*bgph);
+ struct tlv_parsed tp;
+
+ if (bssgp_tlv_parse(&tp, data, data_len) < 0)
+ return -EINVAL;
+
+ if (TLVP_PRESENT(&tp, BSSGP_IE_TLLI)) {
+ *tlli = osmo_load32be(TLVP_VAL(&tp, BSSGP_IE_TLLI));
+ return 1;
+ }
+ }
+
+ /* No TLLI present in message */
+ return 0;
+}
+
+int gprs_gb_parse_bssgp(uint8_t *bssgp, size_t bssgp_len,
+ struct gprs_gb_parse_context *parse_ctx)
+{
+ struct bssgp_normal_hdr *bgph;
+ struct bssgp_ud_hdr *budh = NULL;
+ struct tlv_parsed *tp = &parse_ctx->bssgp_tp;
+ uint8_t pdu_type;
+ uint8_t *data;
+ size_t data_len;
+ int rc;
+
+ if (bssgp_len < sizeof(struct bssgp_normal_hdr))
+ return 0;
+
+ bgph = (struct bssgp_normal_hdr *)bssgp;
+ pdu_type = bgph->pdu_type;
+
+ if (pdu_type == BSSGP_PDUT_UL_UNITDATA ||
+ pdu_type == BSSGP_PDUT_DL_UNITDATA) {
+ if (bssgp_len < sizeof(struct bssgp_ud_hdr))
+ return 0;
+ budh = (struct bssgp_ud_hdr *)bssgp;
+ bgph = NULL;
+ data = budh->data;
+ data_len = bssgp_len - sizeof(*budh);
+ } else {
+ data = bgph->data;
+ data_len = bssgp_len - sizeof(*bgph);
+ }
+
+ parse_ctx->pdu_type = pdu_type;
+ parse_ctx->bud_hdr = budh;
+ parse_ctx->bgp_hdr = bgph;
+ parse_ctx->bssgp_data = data;
+ parse_ctx->bssgp_data_len = data_len;
+
+ if (bssgp_tlv_parse(tp, data, data_len) < 0)
+ return 0;
+
+ if (budh)
+ parse_ctx->tlli_enc = (uint8_t *)&budh->tlli;
+
+ if (TLVP_PRESENT(tp, BSSGP_IE_ROUTEING_AREA))
+ parse_ctx->bssgp_raid_enc = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_ROUTEING_AREA);
+
+ if (TLVP_PRESENT(tp, BSSGP_IE_CELL_ID))
+ parse_ctx->bssgp_raid_enc = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_CELL_ID);
+
+ if (TLVP_PRESENT(tp, BSSGP_IE_IMSI)) {
+ parse_ctx->imsi = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_IMSI);
+ parse_ctx->imsi_len = TLVP_LEN(tp, BSSGP_IE_IMSI);
+ }
+
+ if (TLVP_PRESENT(tp, BSSGP_IE_TLLI)) {
+ if (parse_ctx->tlli_enc)
+ /* This is TLLI old, don't confuse it with TLLI current */
+ parse_ctx->old_tlli_enc = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_TLLI);
+ else
+ parse_ctx->tlli_enc = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_TLLI);
+ }
+
+ if (TLVP_PRESENT(tp, BSSGP_IE_TMSI) && pdu_type == BSSGP_PDUT_PAGING_PS)
+ parse_ctx->bssgp_ptmsi_enc = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_TMSI);
+
+ if (TLVP_PRESENT(tp, BSSGP_IE_LLC_PDU)) {
+ uint8_t *llc = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_LLC_PDU);
+ size_t llc_len = TLVP_LEN(tp, BSSGP_IE_LLC_PDU);
+
+ rc = gprs_gb_parse_llc(llc, llc_len, parse_ctx);
+ if (!rc)
+ return 0;
+
+ parse_ctx->llc = llc;
+ parse_ctx->llc_len = llc_len;
+ }
+
+ if (parse_ctx->tlli_enc) {
+ uint32_t tmp_tlli;
+ memcpy(&tmp_tlli, parse_ctx->tlli_enc, sizeof(tmp_tlli));
+ parse_ctx->tlli = ntohl(tmp_tlli);
+ }
+
+ if (parse_ctx->bssgp_raid_enc && parse_ctx->old_raid_enc &&
+ memcmp(parse_ctx->bssgp_raid_enc, parse_ctx->old_raid_enc, 6) != 0)
+ parse_ctx->old_raid_is_foreign = 1;
+
+ return 1;
+}
+
+void gprs_gb_log_parse_context(int log_level,
+ struct gprs_gb_parse_context *parse_ctx,
+ const char *default_msg_name)
+{
+ const char *msg_name;
+ const char *sep = "";
+
+ if (!parse_ctx->tlli_enc &&
+ !parse_ctx->ptmsi_enc &&
+ !parse_ctx->new_ptmsi_enc &&
+ !parse_ctx->bssgp_ptmsi_enc &&
+ !parse_ctx->imsi)
+ return;
+
+ msg_name = gprs_gb_message_name(parse_ctx, default_msg_name);
+
+ if (parse_ctx->llc_msg_name)
+ msg_name = parse_ctx->llc_msg_name;
+
+ LOGP(DGPRS, log_level, "%s: Got", msg_name);
+
+ if (parse_ctx->tlli_enc) {
+ LOGPC(DGPRS, log_level, "%s TLLI %08x", sep, parse_ctx->tlli);
+ sep = ",";
+ }
+
+ if (parse_ctx->old_tlli_enc) {
+ LOGPC(DGPRS, log_level, "%s old TLLI %02x%02x%02x%02x", sep,
+ parse_ctx->old_tlli_enc[0],
+ parse_ctx->old_tlli_enc[1],
+ parse_ctx->old_tlli_enc[2],
+ parse_ctx->old_tlli_enc[3]);
+ sep = ",";
+ }
+
+ if (parse_ctx->bssgp_raid_enc) {
+ struct gprs_ra_id raid;
+ gsm48_parse_ra(&raid, parse_ctx->bssgp_raid_enc);
+ LOGPC(DGPRS, log_level, "%s BSSGP RAID %s", sep, osmo_rai_name(&raid));
+ sep = ",";
+ }
+
+ if (parse_ctx->raid_enc) {
+ struct gprs_ra_id raid;
+ gsm48_parse_ra(&raid, parse_ctx->raid_enc);
+ LOGPC(DGPRS, log_level, "%s RAID %s", sep, osmo_rai_name(&raid));
+ sep = ",";
+ }
+
+ if (parse_ctx->old_raid_enc) {
+ struct gprs_ra_id raid;
+ gsm48_parse_ra(&raid, parse_ctx->old_raid_enc);
+ LOGPC(DGPRS, log_level, "%s old RAID %s", sep, osmo_rai_name(&raid));
+ sep = ",";
+ }
+
+ if (parse_ctx->bssgp_ptmsi_enc) {
+ uint32_t ptmsi = GSM_RESERVED_TMSI;
+ gprs_parse_tmsi(parse_ctx->bssgp_ptmsi_enc, &ptmsi);
+ LOGPC(DGPRS, log_level, "%s BSSGP PTMSI %08x", sep, ptmsi);
+ sep = ",";
+ }
+
+ if (parse_ctx->ptmsi_enc) {
+ uint32_t ptmsi = GSM_RESERVED_TMSI;
+ gprs_parse_tmsi(parse_ctx->ptmsi_enc, &ptmsi);
+ LOGPC(DGPRS, log_level, "%s PTMSI %08x", sep, ptmsi);
+ sep = ",";
+ }
+
+ if (parse_ctx->new_ptmsi_enc) {
+ uint32_t new_ptmsi = GSM_RESERVED_TMSI;
+ gprs_parse_tmsi(parse_ctx->new_ptmsi_enc, &new_ptmsi);
+ LOGPC(DGPRS, log_level, "%s new PTMSI %08x", sep, new_ptmsi);
+ sep = ",";
+ }
+
+ if (parse_ctx->imsi) {
+ struct osmo_mobile_identity mi;
+ if (osmo_mobile_identity_decode(&mi, parse_ctx->imsi, parse_ctx->imsi_len, false) == 0
+ && mi.type == GSM_MI_TYPE_IMSI) {
+ LOGPC(DGPRS, log_level, "%s IMSI %s", sep, mi.imsi);
+ sep = ",";
+ }
+ }
+ if (parse_ctx->invalidate_tlli) {
+ LOGPC(DGPRS, log_level, "%s invalidate", sep);
+ sep = ",";
+ }
+ if (parse_ctx->await_reattach) {
+ LOGPC(DGPRS, log_level, "%s re-attach", sep);
+ sep = ",";
+ }
+
+ LOGPC(DGPRS, log_level, "\n");
+}
+
+const char *gprs_gb_message_name(const struct gprs_gb_parse_context *parse_ctx,
+ const char *default_msg_name)
+{
+ if (parse_ctx->llc_msg_name)
+ return parse_ctx->llc_msg_name;
+
+ if (parse_ctx->g48_hdr)
+ return "GMM";
+
+ if (parse_ctx->llc)
+ return "LLC";
+
+ if (parse_ctx->bud_hdr)
+ return "BSSGP-UNITDATA";
+
+ if (parse_ctx->bgp_hdr)
+ return "BSSGP";
+
+ return "unknown";
+}
diff --git a/tests/sgsn/gprs_gb_parse.h b/tests/sgsn/gprs_gb_parse.h
new file mode 100644
index 000000000..58de17f81
--- /dev/null
+++ b/tests/sgsn/gprs_gb_parse.h
@@ -0,0 +1,61 @@
+#pragma once
+
+#include <osmocom/sgsn/gprs_llc.h>
+
+#include <sys/types.h>
+
+struct gprs_gb_parse_context {
+ /* Pointer to protocol specific parts */
+ struct gsm48_hdr *g48_hdr;
+ struct bssgp_normal_hdr *bgp_hdr;
+ struct bssgp_ud_hdr *bud_hdr;
+ uint8_t *bssgp_data;
+ size_t bssgp_data_len;
+ uint8_t *llc;
+ size_t llc_len;
+
+ /* Extracted information */
+ struct gprs_llc_hdr_parsed llc_hdr_parsed;
+ struct tlv_parsed bssgp_tp;
+ int to_bss;
+ uint8_t *tlli_enc;
+ uint8_t *old_tlli_enc;
+ uint8_t *imsi;
+ size_t imsi_len;
+ uint8_t *apn_ie;
+ size_t apn_ie_len;
+ uint8_t *ptmsi_enc;
+ uint8_t *new_ptmsi_enc;
+ uint8_t *raid_enc;
+ uint8_t *old_raid_enc;
+ uint8_t *bssgp_raid_enc;
+ uint8_t *bssgp_ptmsi_enc;
+
+ /* General info */
+ const char *llc_msg_name;
+ int invalidate_tlli;
+ int await_reattach;
+ int need_decryption;
+ uint32_t tlli;
+ int pdu_type;
+ int old_raid_is_foreign;
+ int peer_nsei;
+};
+
+int gprs_gb_parse_dtap(uint8_t *data, size_t data_len,
+ struct gprs_gb_parse_context *parse_ctx);
+
+int gprs_gb_parse_llc(uint8_t *llc, size_t llc_len,
+ struct gprs_gb_parse_context *parse_ctx);
+
+int gprs_gb_parse_bssgp(uint8_t *bssgp, size_t bssgp_len,
+ struct gprs_gb_parse_context *parse_ctx);
+
+int gprs_gb_parse_tlli(const uint8_t *bssgp, size_t bssgp_len, uint32_t *tlli);
+
+const char *gprs_gb_message_name(const struct gprs_gb_parse_context *parse_ctx,
+ const char *default_msg_name);
+
+void gprs_gb_log_parse_context(int log_level,
+ struct gprs_gb_parse_context *parse_ctx,
+ const char *default_msg_name);
diff --git a/tests/sgsn/sgsn_test.c b/tests/sgsn/sgsn_test.c
index 7399573fc..a149b8e2c 100644
--- a/tests/sgsn/sgsn_test.c
+++ b/tests/sgsn/sgsn_test.c
@@ -19,43 +19,38 @@
*
*/
+#include <osmocom/core/application.h>
+#include <osmocom/core/msgb.h>
+#include <osmocom/core/rate_ctr.h>
+#include <osmocom/core/utils.h>
+#include <osmocom/gsm/apn.h>
+#include <osmocom/gsm/gsm_utils.h>
+#include <osmocom/gsm/gsup.h>
+#include <osmocom/gprs/gprs_bssgp.h>
+#include <osmocom/vty/vty.h>
+
+#include <osmocom/gsupclient/gsup_client.h>
+
#include <osmocom/sgsn/gprs_llc.h>
#include <osmocom/sgsn/sgsn.h>
#include <osmocom/sgsn/gprs_gmm.h>
#include <osmocom/sgsn/debug.h>
#include <osmocom/sgsn/gprs_subscriber.h>
-#include <osmocom/gsm/gsup.h>
-#include <osmocom/gsupclient/gsup_client.h>
#include <osmocom/sgsn/gprs_utils.h>
-#include <osmocom/sgsn/gprs_gb_parse.h>
#include <osmocom/sgsn/gprs_gmm_fsm.h>
-
-#include <osmocom/gprs/gprs_bssgp.h>
-
-#include <osmocom/gsm/gsm_utils.h>
-
-#include <osmocom/core/application.h>
-#include <osmocom/core/msgb.h>
-#include <osmocom/core/rate_ctr.h>
-#include <osmocom/core/utils.h>
-#include <osmocom/vty/vty.h>
+#include <osmocom/sgsn/gtp_ggsn.h>
#include <stdio.h>
+#include "gprs_gb_parse.h"
+
void *tall_sgsn_ctx;
-static struct sgsn_instance sgsn_inst = {
- .config_file = "osmo_sgsn.cfg",
- .cfg = {
- .gtp_statedir = "./",
- .auth_policy = SGSN_AUTH_POLICY_CLOSED,
- },
-};
-struct sgsn_instance *sgsn = &sgsn_inst;
+struct sgsn_instance *sgsn;
unsigned sgsn_tx_counter = 0;
struct msgb *last_msg = NULL;
struct gprs_gb_parse_context last_dl_parse_ctx;
-static void reset_last_msg()
+static void reset_last_msg(void)
{
if (last_msg)
msgb_free(last_msg);
@@ -64,9 +59,10 @@ static void reset_last_msg()
memset(&last_dl_parse_ctx, 0, sizeof(last_dl_parse_ctx));
}
-static void cleanup_test()
+static void cleanup_test(void)
{
reset_last_msg();
+ TALLOC_FREE(sgsn);
}
static uint32_t get_new_ptmsi(const struct gprs_gb_parse_context *parse_ctx)
@@ -281,7 +277,7 @@ static void show_subscrs(FILE *out)
}
}
-static void assert_no_subscrs()
+static void assert_no_subscrs(void)
{
show_subscrs(stdout);
fflush(stdout);
@@ -383,6 +379,7 @@ static void test_auth_triplets(void)
uint32_t local_tlli = 0xffeeddcc;
printf("Testing authentication triplet handling\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* Check for emptiness */
OSMO_ASSERT(gprs_subscr_get_by_imsi(imsi1) == NULL);
@@ -571,6 +568,7 @@ static void test_subscriber_gsup(void)
printf("Testing subscriber GSUP handling\n");
update_subscriber_data_cb = my_dummy_sgsn_update_subscriber_data;
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* Check for emptiness */
OSMO_ASSERT(gprs_subscr_get_by_imsi(imsi1) == NULL);
@@ -747,6 +745,7 @@ static void test_gmm_detach(void)
uint32_t local_tlli;
printf("Testing GMM detach\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* DTAP - Detach Request (MO) */
/* normal detach, power_off = 0 */
@@ -788,6 +787,7 @@ static void test_gmm_detach_power_off(void)
uint32_t local_tlli;
printf("Testing GMM detach (power off)\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* DTAP - Detach Request (MO) */
/* normal detach, power_off = 1 */
@@ -828,6 +828,7 @@ static void test_gmm_detach_no_mmctx(void)
uint32_t local_tlli;
printf("Testing GMM detach (no MMCTX)\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* DTAP - Detach Request (MO) */
/* normal detach, power_off = 0 */
@@ -864,6 +865,7 @@ static void test_gmm_detach_accept_unexpected(void)
uint32_t local_tlli;
printf("Testing GMM detach accept (unexpected)\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* DTAP - Detach Accept (MT) */
/* normal detach */
@@ -900,6 +902,7 @@ static void test_gmm_status_no_mmctx(void)
uint32_t local_tlli;
printf("Testing GMM Status (no MMCTX)\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* DTAP - GMM Status, protocol error */
static const unsigned char gmm_status[] = {
@@ -1194,6 +1197,7 @@ static void test_gmm_reject(void)
};
printf("Testing GMM reject\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* reset the PRNG used by sgsn_alloc_ptmsi */
srand(1);
@@ -1240,6 +1244,9 @@ static void test_gmm_cancel(void)
uint32_t foreign_tlli;
uint32_t local_tlli = 0;
struct gprs_llc_lle *lle;
+
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
+ sgsn->cfg.gea_encryption_mask = 0x1;
const enum sgsn_auth_policy saved_auth_policy = sgsn->cfg.auth_policy;
/* DTAP - Attach Request */
@@ -1270,8 +1277,7 @@ static void test_gmm_cancel(void)
};
printf("Testing cancellation\n");
-
- sgsn_inst.cfg.auth_policy = SGSN_AUTH_POLICY_OPEN;
+ sgsn->cfg.auth_policy = SGSN_AUTH_POLICY_OPEN;
foreign_tlli = gprs_tmsi2tlli(0xc0000023, TLLI_FOREIGN);
@@ -1343,6 +1349,7 @@ static void test_apn_matching(void)
struct apn_ctx *actx, *actxs[9];
printf("Testing APN matching\n");
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
actxs[0] = sgsn_apn_ctx_find_alloc("*.test", "");
actxs[1] = sgsn_apn_ctx_find_alloc("*.def.test", "");
@@ -1432,9 +1439,6 @@ static void test_apn_matching(void)
cleanup_test();
}
-struct sgsn_subscriber_pdp_data* sgsn_subscriber_pdp_data_alloc(
- struct sgsn_subscriber_data *sdata);
-
static void test_ggsn_selection(void)
{
struct apn_ctx *actxs[4];
@@ -1453,6 +1457,7 @@ static void test_ggsn_selection(void)
printf("Testing GGSN selection\n");
osmo_gsup_client_send_cb = my_gsup_client_send_dummy;
+ sgsn = sgsn_instance_alloc(tall_sgsn_ctx);
/* Check for emptiness */
OSMO_ASSERT(gprs_subscr_get_by_imsi(imsi1) == NULL);
@@ -1471,9 +1476,9 @@ static void test_ggsn_selection(void)
/* TODO: Add PDP info entries to s1 */
- ggcs[0] = sgsn_ggsn_ctx_find_alloc(0);
- ggcs[1] = sgsn_ggsn_ctx_find_alloc(1);
- ggcs[2] = sgsn_ggsn_ctx_find_alloc(2);
+ ggcs[0] = sgsn_ggsn_ctx_find_alloc(sgsn, 0);
+ ggcs[1] = sgsn_ggsn_ctx_find_alloc(sgsn, 1);
+ ggcs[2] = sgsn_ggsn_ctx_find_alloc(sgsn, 2);
actxs[0] = sgsn_apn_ctx_find_alloc("test.apn", "123456");
actxs[0]->ggsn = ggcs[0];
@@ -1484,13 +1489,14 @@ static void test_ggsn_selection(void)
pdp_data = sgsn_subscriber_pdp_data_alloc(s1->sgsn_data);
pdp_data->context_id = 1;
- pdp_data->pdp_type = 0x0121;
+ pdp_data->pdp_type_org = PDP_TYPE_ORG_IETF;
+ pdp_data->pdp_type_nr = PDP_TYPE_N_IETF_IPv4;
osmo_strlcpy(pdp_data->apn_str, "*", sizeof(pdp_data->apn_str));
/* Resolve GGSNs */
tp.lv[GSM48_IE_GSM_APN].len =
- gprs_str_to_apn(apn_enc, sizeof(apn_enc), "Test.Apn");
+ osmo_apn_from_str(apn_enc, sizeof(apn_enc), "Test.Apn");
ggc = sgsn_mm_ctx_find_ggsn_ctx(ctx, &tp, &gsm_cause, apn_str);
OSMO_ASSERT(ggc != NULL);
@@ -1498,7 +1504,7 @@ static void test_ggsn_selection(void)
OSMO_ASSERT(strcmp(apn_str, "Test.Apn") == 0);
tp.lv[GSM48_IE_GSM_APN].len =
- gprs_str_to_apn(apn_enc, sizeof(apn_enc), "Other.Apn");
+ osmo_apn_from_str(apn_enc, sizeof(apn_enc), "Other.Apn");
ggc = sgsn_mm_ctx_find_ggsn_ctx(ctx, &tp, &gsm_cause, apn_str);
OSMO_ASSERT(ggc != NULL);
@@ -1524,7 +1530,7 @@ static void test_ggsn_selection(void)
tp.lv[GSM48_IE_GSM_APN].val = apn_enc;
tp.lv[GSM48_IE_GSM_APN].len =
- gprs_str_to_apn(apn_enc, sizeof(apn_enc), "Foo.Bar");
+ osmo_apn_from_str(apn_enc, sizeof(apn_enc), "Foo.Bar");
ggc = sgsn_mm_ctx_find_ggsn_ctx(ctx, &tp, &gsm_cause, apn_str);
OSMO_ASSERT(ggc == NULL);
@@ -1541,7 +1547,7 @@ static void test_ggsn_selection(void)
osmo_strlcpy(pdp_data->apn_str, "Test.Apn", sizeof(pdp_data->apn_str));
tp.lv[GSM48_IE_GSM_APN].len =
- gprs_str_to_apn(apn_enc, sizeof(apn_enc), "Test.Apn");
+ osmo_apn_from_str(apn_enc, sizeof(apn_enc), "Test.Apn");
ggc = sgsn_mm_ctx_find_ggsn_ctx(ctx, &tp, &gsm_cause, apn_str);
OSMO_ASSERT(ggc != NULL);
@@ -1549,7 +1555,7 @@ static void test_ggsn_selection(void)
OSMO_ASSERT(strcmp(apn_str, "Test.Apn") == 0);
tp.lv[GSM48_IE_GSM_APN].len =
- gprs_str_to_apn(apn_enc, sizeof(apn_enc), "Other.Apn");
+ osmo_apn_from_str(apn_enc, sizeof(apn_enc), "Other.Apn");
ggc = sgsn_mm_ctx_find_ggsn_ctx(ctx, &tp, &gsm_cause, apn_str);
OSMO_ASSERT(ggc == NULL);
@@ -1620,16 +1626,6 @@ static struct log_info_cat gprs_categories[] = {
.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,
- },
[DLLC] = {
.name = "DLLC",
.description = "GPRS Logical Link Control Protocol (LLC)",
@@ -1661,11 +1657,7 @@ int main(int argc, char **argv)
tall_sgsn_ctx = talloc_named_const(osmo_sgsn_ctx, 0, "sgsn");
msgb_ctx = msgb_talloc_ctx_init(osmo_sgsn_ctx, 0);
- sgsn_rate_ctr_init();
- sgsn_auth_init(sgsn);
- gprs_subscr_init(sgsn);
vty_init(&vty_info);
- sgsn_vty_init(&sgsn->cfg);
test_llme();
test_subscriber();
@@ -1685,7 +1677,7 @@ int main(int argc, char **argv)
talloc_report_full(osmo_sgsn_ctx, stderr);
OSMO_ASSERT(talloc_total_blocks(msgb_ctx) == 1);
- OSMO_ASSERT(talloc_total_blocks(tall_sgsn_ctx) == 2);
+ OSMO_ASSERT(talloc_total_blocks(tall_sgsn_ctx) == 1);
return 0;
}
diff --git a/tests/slhc/Makefile.am b/tests/slhc/Makefile.am
index b6738c25d..33cb7faac 100644
--- a/tests/slhc/Makefile.am
+++ b/tests/slhc/Makefile.am
@@ -1,9 +1,10 @@
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBCARES_CFLAGS)
+AM_LDFLAGS = -no-install
EXTRA_DIST = slhc_test.ok
-noinst_PROGRAMS = slhc_test
+check_PROGRAMS = slhc_test
slhc_test_SOURCES = slhc_test.c
diff --git a/tests/sndcp_xid/Makefile.am b/tests/sndcp_xid/Makefile.am
index 24626b32e..c4702b893 100644
--- a/tests/sndcp_xid/Makefile.am
+++ b/tests/sndcp_xid/Makefile.am
@@ -1,9 +1,10 @@
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBCARES_CFLAGS)
+AM_LDFLAGS = -no-install
EXTRA_DIST = sndcp_xid_test.ok
-noinst_PROGRAMS = sndcp_xid_test
+check_PROGRAMS = sndcp_xid_test
sndcp_xid_test_SOURCES = sndcp_xid_test.c
diff --git a/tests/testsuite.at b/tests/testsuite.at
index d30115e01..637d853a7 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -7,12 +7,6 @@ cat $abs_srcdir/gprs/gprs_test.ok > expout
AT_CHECK([$abs_top_builddir/tests/gprs/gprs_test], [], [expout], [ignore])
AT_CLEANUP
-AT_SETUP([gbproxy])
-AT_KEYWORDS([gbproxy])
-cat $abs_srcdir/gbproxy/gbproxy_test.ok > expout
-AT_CHECK([$abs_top_builddir/tests/gbproxy/gbproxy_test], [], [expout], [ignore])
-AT_CLEANUP
-
AT_SETUP([sgsn])
AT_KEYWORDS([sgsn])
AT_CHECK([test "$enable_sgsn_test" != no || exit 77])
diff --git a/tests/v42bis/Makefile.am b/tests/v42bis/Makefile.am
index 744239279..0e544a684 100644
--- a/tests/v42bis/Makefile.am
+++ b/tests/v42bis/Makefile.am
@@ -1,9 +1,10 @@
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBCARES_CFLAGS)
+AM_LDFLAGS = -no-install
EXTRA_DIST = v42bis_test.ok
-noinst_PROGRAMS = v42bis_test
+check_PROGRAMS = v42bis_test
v42bis_test_SOURCES = v42bis_test.c
diff --git a/tests/vty_test_runner.py b/tests/vty_test_runner.py
index ed52d5f9b..0b7df8c89 100755
--- a/tests/vty_test_runner.py
+++ b/tests/vty_test_runner.py
@@ -67,55 +67,6 @@ class TestVTYBase(unittest.TestCase):
self.vty = None
osmoutil.end_proc(self.proc)
-
-class TestVTYGbproxy(TestVTYBase):
-
- def vty_command(self):
- return ["./src/gbproxy/osmo-gbproxy", "-c",
- "doc/examples/osmo-gbproxy/osmo-gbproxy.cfg"]
-
- def vty_app(self):
- return (4246, "./src/gbproxy/osmo-gbproxy", "OsmoGbProxy", "gbproxy")
-
- def testVtyTree(self):
- self.vty.enable()
- self.assertTrue(self.vty.verify('configure terminal', ['']))
- self.assertEqual(self.vty.node(), 'config')
- self.checkForEndAndExit()
- self.assertTrue(self.vty.verify('ns', ['']))
- self.assertEqual(self.vty.node(), 'config-ns')
- self.checkForEndAndExit()
- self.assertTrue(self.vty.verify('exit', ['']))
- self.assertEqual(self.vty.node(), 'config')
- self.assertTrue(self.vty.verify('gbproxy', ['']))
- self.assertEqual(self.vty.node(), 'config-gbproxy')
- self.checkForEndAndExit()
- self.assertTrue(self.vty.verify('exit', ['']))
- self.assertEqual(self.vty.node(), 'config')
-
- def testVtyShow(self):
- res = self.vty.command("show ns")
- self.assertTrue(res.find('Encapsulation NS-UDP-IP') >= 0)
-
- res = self.vty.command("show gbproxy stats")
- self.assertTrue(res.find('GBProxy Global Statistics') >= 0)
-
- def testVtyDeletePeer(self):
- self.vty.enable()
- self.assertTrue(self.vty.verify('delete-gbproxy-peer 9999 bvci 7777', ['BVC not found']))
- res = self.vty.command("delete-gbproxy-peer 9999 all dry-run")
- self.assertTrue(res.find('Not Deleted 0 BVC') >= 0)
- self.assertTrue(res.find('Not Deleted 0 NS-VC') >= 0)
- res = self.vty.command("delete-gbproxy-peer 9999 only-bvc dry-run")
- self.assertTrue(res.find('Not Deleted 0 BVC') >= 0)
- self.assertTrue(res.find('Not Deleted 0 NS-VC') < 0)
- res = self.vty.command("delete-gbproxy-peer 9999 only-nsvc dry-run")
- self.assertTrue(res.find('Not Deleted 0 BVC') < 0)
- self.assertTrue(res.find('Not Deleted 0 NS-VC') >= 0)
- res = self.vty.command("delete-gbproxy-peer 9999 all")
- self.assertTrue(res.find('Deleted 0 BVC') >= 0)
- self.assertTrue(res.find('Deleted 0 NS-VC') >= 0)
-
class TestVTYSGSN(TestVTYBase):
def vty_command(self):
@@ -143,7 +94,7 @@ class TestVTYSGSN(TestVTYBase):
def testVtyShow(self):
res = self.vty.command("show ns")
- self.assertTrue(res.find('Encapsulation NS-UDP-IP') >= 0)
+ self.assertTrue(res.find('0 NS-VC:') >= 0)
self.assertTrue(self.vty.verify('show bssgp', ['']))
self.assertTrue(self.vty.verify('show bssgp stats', ['']))
self.assertTrue(self.vty.verify('show bssgp nsei 123', ['']))
@@ -276,13 +227,6 @@ class TestVTYSGSN(TestVTYBase):
for t in [3312, 3322, 3350, 3360, 3370, 3313, 3314, 3316, 3385, 3395, 3397]:
self.assertTrue(self.vty.verify('timer t%d 10' % t, ['']))
-def add_gbproxy_test(suite, workdir):
- if not os.path.isfile(os.path.join(workdir, "src/gbproxy/osmo-gbproxy")):
- print("Skipping the Gb-Proxy test")
- return
- test = unittest.TestLoader().loadTestsFromTestCase(TestVTYGbproxy)
- suite.addTest(test)
-
def add_sgsn_test(suite, workdir):
if not os.path.isfile(os.path.join(workdir, "src/sgsn/osmo-sgsn")):
print("Skipping the SGSN test")
@@ -320,7 +264,6 @@ if __name__ == '__main__':
os.chdir(workdir)
print("Running tests for specific VTY commands")
suite = unittest.TestSuite()
- add_gbproxy_test(suite, workdir)
add_sgsn_test(suite, workdir)
if args.test_name:
diff --git a/tests/xid/Makefile.am b/tests/xid/Makefile.am
index 6f058f5a6..d3a260bca 100644
--- a/tests/xid/Makefile.am
+++ b/tests/xid/Makefile.am
@@ -11,11 +11,13 @@ AM_CFLAGS = \
$(LIBCARES_CFLAGS) \
$(NULL)
+AM_LDFLAGS = -no-install
+
EXTRA_DIST = \
xid_test.ok \
$(NULL)
-noinst_PROGRAMS = \
+check_PROGRAMS = \
xid_test \
$(NULL)