aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-05 11:18:23 +0100
committerHarald Welte <laforge@osmocom.org>2020-12-05 14:05:36 +0100
commit91bb72044905da4cb34628c6119c387cddb3077e (patch)
tree53809bc53d7aed102270426ca7f0d73bc6f3dfcd
parent993d3f4d9a6cd16ec811937fc6e2eb19280adda9 (diff)
gbproxy: Remove patching, TLLI-tracking and SGSN2 support
Those features were introduced a long time ago for one specific use case at one specific user, and they are not needed anymore. They complicate the code base significantly and are hard to maintain with all the upcoming modifications regarding SGSN pool supoprt. Change-Id: Id9cc2e1c63486491ac5bb68876088a615075fde6
-rw-r--r--contrib/osmo-sgsn.spec.in1
-rw-r--r--debian/copyright3
-rw-r--r--debian/osmo-gbproxy.install1
-rw-r--r--include/osmocom/sgsn/gb_proxy.h218
-rw-r--r--osmoappdesc.py3
-rw-r--r--src/gbproxy/Makefile.am2
-rw-r--r--src/gbproxy/gb_proxy.c741
-rw-r--r--src/gbproxy/gb_proxy_ctrl.c4
-rw-r--r--src/gbproxy/gb_proxy_patch.c482
-rw-r--r--src/gbproxy/gb_proxy_peer.c120
-rw-r--r--src/gbproxy/gb_proxy_tlli.c746
-rw-r--r--src/gbproxy/gb_proxy_vty.c687
-rw-r--r--tests/gbproxy/Makefile.am2
-rw-r--r--tests/gbproxy/gbproxy_test.c4050
-rw-r--r--tests/gbproxy/gbproxy_test.ok5254
15 files changed, 4 insertions, 12310 deletions
diff --git a/contrib/osmo-sgsn.spec.in b/contrib/osmo-sgsn.spec.in
index d6a80789..ca66e2ea 100644
--- a/contrib/osmo-sgsn.spec.in
+++ b/contrib/osmo-sgsn.spec.in
@@ -131,7 +131,6 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%files -n osmo-gbproxy
%dir %{_docdir}/%{name}/examples
%dir %{_docdir}/%{name}/examples/osmo-gbproxy
-%{_docdir}/%{name}/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg
%{_docdir}/%{name}/examples/osmo-gbproxy/osmo-gbproxy.cfg
%{_bindir}/osmo-gbproxy
%dir %{_sysconfdir}/osmocom
diff --git a/debian/copyright b/debian/copyright
index fa7405fe..5bc764d6 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -24,7 +24,6 @@ Files: .gitignore
contrib/twisted_ipa.py
doc/Makefile.am
doc/examples/Makefile.am
- doc/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg
doc/examples/osmo-gbproxy/osmo-gbproxy.cfg
doc/examples/osmo-gtphub/gtphub-example.txt
doc/examples/osmo-gtphub/osmo-gtphub-1iface.cfg
@@ -88,9 +87,7 @@ Files: include/osmocom/sgsn/a_reset.h
src/gprs/sgsn_ares.c
src/gbproxy/gb_proxy.c
src/gbproxy/gb_proxy_main.c
- src/gbproxy/gb_proxy_patch.c
src/gbproxy/gb_proxy_peer.c
- src/gbproxy/gb_proxy_tlli.c
src/gbproxy/gb_proxy_vty.c
src/gtphub/gtphub.c
src/gtphub/gtphub_main.c
diff --git a/debian/osmo-gbproxy.install b/debian/osmo-gbproxy.install
index a8c0dadd..1cb91d5d 100644
--- a/debian/osmo-gbproxy.install
+++ b/debian/osmo-gbproxy.install
@@ -1,5 +1,4 @@
etc/osmocom/osmo-gbproxy.cfg
lib/systemd/system/osmo-gbproxy.service
usr/bin/osmo-gbproxy
-usr/share/doc/osmo-sgsn/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg usr/share/doc/osmo-gbproxy/examples
usr/share/doc/osmo-sgsn/examples/osmo-gbproxy/osmo-gbproxy.cfg usr/share/doc/osmo-gbproxy/examples
diff --git a/include/osmocom/sgsn/gb_proxy.h b/include/osmocom/sgsn/gb_proxy.h
index 95a3331a..ac03a113 100644
--- a/include/osmocom/sgsn/gb_proxy.h
+++ b/include/osmocom/sgsn/gb_proxy.h
@@ -35,7 +35,6 @@ enum gbproxy_global_ctr {
GBPROX_GLOB_CTR_RESTART_RESET_SGSN,
GBPROX_GLOB_CTR_TX_ERR_SGSN,
GBPROX_GLOB_CTR_OTHER_ERR,
- GBPROX_GLOB_CTR_PATCH_PEER_ERR,
};
enum gbproxy_bvc_ctr {
@@ -44,56 +43,9 @@ enum gbproxy_bvc_ctr {
GBPROX_PEER_CTR_DROPPED,
GBPROX_PEER_CTR_INV_NSEI,
GBPROX_PEER_CTR_TX_ERR,
- GBPROX_PEER_CTR_RAID_PATCHED_BSS,
- GBPROX_PEER_CTR_RAID_PATCHED_SGSN,
- GBPROX_PEER_CTR_APN_PATCHED,
- GBPROX_PEER_CTR_TLLI_PATCHED_BSS,
- GBPROX_PEER_CTR_TLLI_PATCHED_SGSN,
- GBPROX_PEER_CTR_PTMSI_PATCHED_BSS,
- GBPROX_PEER_CTR_PTMSI_PATCHED_SGSN,
- GBPROX_PEER_CTR_PATCH_CRYPT_ERR,
- GBPROX_PEER_CTR_PATCH_ERR,
- GBPROX_PEER_CTR_ATTACH_REQS,
- GBPROX_PEER_CTR_ATTACH_REJS,
- GBPROX_PEER_CTR_ATTACH_ACKS,
- GBPROX_PEER_CTR_ATTACH_COMPLS,
- GBPROX_PEER_CTR_RA_UPD_REQS,
- GBPROX_PEER_CTR_RA_UPD_REJS,
- GBPROX_PEER_CTR_RA_UPD_ACKS,
- GBPROX_PEER_CTR_RA_UPD_COMPLS,
- GBPROX_PEER_CTR_GMM_STATUS_BSS,
- GBPROX_PEER_CTR_GMM_STATUS_SGSN,
- GBPROX_PEER_CTR_DETACH_REQS,
- GBPROX_PEER_CTR_DETACH_ACKS,
- GBPROX_PEER_CTR_PDP_ACT_REQS,
- GBPROX_PEER_CTR_PDP_ACT_REJS,
- GBPROX_PEER_CTR_PDP_ACT_ACKS,
- GBPROX_PEER_CTR_PDP_DEACT_REQS,
- GBPROX_PEER_CTR_PDP_DEACT_ACKS,
- GBPROX_PEER_CTR_TLLI_UNKNOWN,
- GBPROX_PEER_CTR_TLLI_CACHE_SIZE,
GBPROX_PEER_CTR_LAST,
};
-enum gbproxy_keep_mode {
- GBPROX_KEEP_NEVER, /* don't ever keep TLLI/IMSI state of de-registered subscribers */
- GBPROX_KEEP_REATTACH, /* keep if re-attach has been requested by SGSN */
- GBPROX_KEEP_IDENTIFIED, /* keep if we had resolved an IMSI */
- GBPROX_KEEP_ALWAYS, /* always keep */
-};
-
-enum gbproxy_match_id {
- GBPROX_MATCH_PATCHING, /* match rule on whether or not we should patch */
- GBPROX_MATCH_ROUTING, /* match rule on whether or not we should route (2-SGSN) */
- GBPROX_MATCH_LAST
-};
-
-struct gbproxy_match {
- bool enable; /* is this match enabled? */
- char *re_str; /* regular expression (for IMSI) in string format */
- regex_t re_comp; /* compiled regular expression (for IMSI) */
-};
-
/* global gb-proxy configuration */
struct gbproxy_config {
/* parsed from config file */
@@ -107,44 +59,6 @@ struct gbproxy_config {
/* Counter */
struct rate_ctr_group *ctrg;
-
- /* MCC/MNC to be patched into RA-ID on the way from BSS to SGSN? */
- struct osmo_plmn_id core_plmn;
-
- /* APN to be patched into PDP CTX ACT REQ on the way from BSS to SGSN */
- uint8_t* core_apn;
- size_t core_apn_size;
-
- /* Frequency (sec) at which timer to clean stale links is fired (0 disabled) */
- unsigned int clean_stale_timer_freq;
- /* If !0, Max age to consider a struct gbproxy_link_info as stale */
- int tlli_max_age;
- /* If !0, Max len of gbproxy_bvc->list (list of struct gbproxy_link_info) */
- int tlli_max_len;
- /* If !0, Max len of gbproxy_link_info->stored_msgs (list of msgb) */
- uint32_t stored_msgs_max_len;
-
- /* Should the P-TMSI be patched on the fly (required for 2-SGSN config) */
- bool patch_ptmsi;
- /* Should the IMSI be acquired by the proxy (required for 2-SGSN config) */
- bool acquire_imsi;
- /* Should we route subscribers to two different SGSNs? */
- bool route_to_sgsn2;
- /* NSEI of the second SGSN */
- uint16_t nsip_sgsn2_nsei;
- /* should we keep a cache of per-subscriber state even after de-registration? */
- enum gbproxy_keep_mode keep_link_infos;
-
- /* IMSI checking/matching for 2-SGSN routing and patching */
- struct gbproxy_match matches[GBPROX_MATCH_LAST];
-};
-
-struct gbproxy_patch_state {
- struct osmo_plmn_id local_plmn;
-
- /* List of TLLIs for which patching is enabled */
- struct llist_head logical_links;
- int logical_link_count;
};
/* One BVC inside an NSE */
@@ -166,12 +80,6 @@ struct gbproxy_bvc {
/* Counter */
struct rate_ctr_group *ctrg;
-
- /* State related to on-the-fly patching of certain messages */
- struct gbproxy_patch_state patch_state;
-
- /* Fired periodically to clean up stale links from list */
- struct osmo_timer_list clean_stale_timer;
};
/* one NS Entity that we interact with (BSS/PCU) */
@@ -189,58 +97,6 @@ struct gbproxy_nse {
DECLARE_HASHTABLE(bvcs, 10);
};
-struct gbproxy_tlli_state {
- /* currently active TLLI */
- uint32_t current;
- /* newly-assigned TLLI (e.g. during P-TMSI allocation procedure) */
- uint32_t assigned;
- /* has the BSS side validated (confirmed) the new TLLI? */
- bool bss_validated;
- /* has the SGSN side validated (confirmed) the new TLLI? */
- bool net_validated;
- /* NOTE: once both are validated, we set current = assigned and assigned = 0 */
-
- /* The P-TMSI for this subscriber */
- uint32_t ptmsi;
-};
-
-/* One TLLI (= UE, = Subscriber) served via this proxy */
-struct gbproxy_link_info {
- /* link to gbproxy_bvc.patch_state.logical_links */
- struct llist_head list;
-
- /* TLLI on the BSS/PCU side */
- struct gbproxy_tlli_state tlli;
- /* TLLI on the SGSN side (can be different in case of P-TMSI patching) */
- struct gbproxy_tlli_state sgsn_tlli;
- /* NSEI of the SGSN serving this link */
- uint32_t sgsn_nsei;
-
- /* timestamp when we last had any contact with this UE */
- time_t timestamp;
-
- /* IMSI of the subscriber (if/once known) */
- uint8_t *imsi;
- size_t imsi_len;
-
- /* is the IMSI acquisition still pending? */
- bool imsi_acq_pending;
-
- /* queue of stored UL messages (until IMSI acquisition completes and we can
- * determine which of the SGSNs we should route this to */
- struct llist_head stored_msgs;
- uint32_t stored_msgs_len;
-
- /* generated N(U) we use (required due to IMSI acquisition */
- unsigned vu_gen_tx_bss;
-
- /* is this subscriber deregistered (TLLI invalidated)? */
- bool is_deregistered;
-
- /* does this link match either the (2-SGSN) routing or the patching rule? */
- bool is_matching[GBPROX_MATCH_LAST];
-};
-
/* Convenience logging macros for NSE/BVC */
#define LOGPNSE_CAT(NSE, SUBSYS, LEVEL, FMT, ARGS...) \
LOGP(SUBSYS, LEVEL, "NSE(%05u/BSS) " FMT, (NSE)->nsei, ## ARGS)
@@ -276,74 +132,6 @@ int gprs_ns2_prim_cb(struct osmo_prim_hdr *oph, void *ctx);
void gbprox_reset(struct gbproxy_config *cfg);
-/* TLLI info handling */
-void gbproxy_delete_link_infos(struct gbproxy_bvc *bvc);
-struct gbproxy_link_info *gbproxy_update_link_state_ul(
- struct gbproxy_bvc *bvc, time_t now,
- struct gprs_gb_parse_context *parse_ctx);
-struct gbproxy_link_info *gbproxy_update_link_state_dl(
- struct gbproxy_bvc *bvc, time_t now,
- struct gprs_gb_parse_context *parse_ctx);
-int gbproxy_update_link_state_after(
- struct gbproxy_bvc *bvc, struct gbproxy_link_info *link_info,
- time_t now, struct gprs_gb_parse_context *parse_ctx);
-int gbproxy_remove_stale_link_infos(struct gbproxy_bvc *bvc, time_t now);
-void gbproxy_delete_link_info(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info);
-void gbproxy_link_info_discard_messages(struct gbproxy_link_info *link_info);
-
-void gbproxy_attach_link_info(struct gbproxy_bvc *bvc, time_t now,
- struct gbproxy_link_info *link_info);
-void gbproxy_update_link_info(struct gbproxy_link_info *link_info,
- const uint8_t *imsi, size_t imsi_len);
-void gbproxy_detach_link_info(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info);
-struct gbproxy_link_info *gbproxy_link_info_alloc( struct gbproxy_bvc *bvc);
-
-struct gbproxy_link_info *gbproxy_link_info_by_tlli(
- struct gbproxy_bvc *bvc, uint32_t tlli);
-struct gbproxy_link_info *gbproxy_link_info_by_imsi(
- struct gbproxy_bvc *bvc, const uint8_t *imsi, size_t imsi_len);
-struct gbproxy_link_info *gbproxy_link_info_by_any_sgsn_tlli(
- struct gbproxy_bvc *bvc, uint32_t tlli);
-struct gbproxy_link_info *gbproxy_link_info_by_sgsn_tlli(
- struct gbproxy_bvc *bvc,
- uint32_t tlli, uint32_t sgsn_nsei);
-struct gbproxy_link_info *gbproxy_link_info_by_ptmsi(
- struct gbproxy_bvc *bvc,
- uint32_t ptmsi);
-
-int gbproxy_imsi_matches(
- struct gbproxy_config *cfg,
- enum gbproxy_match_id match_id,
- struct gbproxy_link_info *link_info);
-uint32_t gbproxy_map_tlli(
- uint32_t other_tlli, struct gbproxy_link_info *link_info, int to_bss);
-
-/* needed by gb_proxy_tlli.h */
-uint32_t gbproxy_make_bss_ptmsi(struct gbproxy_bvc *bvc, uint32_t sgsn_ptmsi);
-uint32_t gbproxy_make_sgsn_tlli(
- struct gbproxy_bvc *bvc, struct gbproxy_link_info *link_info,
- uint32_t bss_tlli);
-void gbproxy_reset_link(struct gbproxy_link_info *link_info);
-int gbproxy_check_imsi(
- struct gbproxy_match *match, const uint8_t *imsi, size_t imsi_len);
-
-/* Message patching */
-void gbproxy_patch_bssgp(
- struct msgb *msg, uint8_t *bssgp, size_t bssgp_len,
- struct gbproxy_bvc *bvc, struct gbproxy_link_info *link_info,
- int *len_change, struct gprs_gb_parse_context *parse_ctx);
-
-int gbproxy_patch_llc(
- struct msgb *msg, uint8_t *llc, size_t llc_len,
- struct gbproxy_bvc *bvc, struct gbproxy_link_info *link_info,
- int *len_change, struct gprs_gb_parse_context *parse_ctx);
-
-int gbproxy_set_patch_filter(
- struct gbproxy_match *match, const char *filter, const char **err_msg);
-void gbproxy_clear_patch_filter(struct gbproxy_match *match);
-
/* Peer handling */
struct gbproxy_bvc *gbproxy_bvc_by_bvci(
struct gbproxy_config *cfg, uint16_t bvci);
@@ -351,12 +139,6 @@ struct gbproxy_bvc *gbproxy_bvc_by_nsei(
struct gbproxy_config *cfg, uint16_t nsei);
struct gbproxy_bvc *gbproxy_bvc_by_rai(
struct gbproxy_config *cfg, const uint8_t *ra);
-struct gbproxy_bvc *gbproxy_bvc_by_lai(
- struct gbproxy_config *cfg, const uint8_t *la);
-struct gbproxy_bvc *gbproxy_bvc_by_lac(
- struct gbproxy_config *cfg, const uint8_t *la);
-struct gbproxy_bvc *gbproxy_bvc_by_bssgp_tlv(
- struct gbproxy_config *cfg, struct tlv_parsed *tp);
struct gbproxy_bvc *gbproxy_bvc_alloc(struct gbproxy_nse *nse, uint16_t bvci);
void gbproxy_bvc_free(struct gbproxy_bvc *bvc);
void gbproxy_bvc_move(struct gbproxy_bvc *bvc, struct gbproxy_nse *nse);
diff --git a/osmoappdesc.py b/osmoappdesc.py
index e91043f9..1fccafd7 100644
--- a/osmoappdesc.py
+++ b/osmoappdesc.py
@@ -16,8 +16,7 @@
app_configs = {
- "gbproxy": ["doc/examples/osmo-gbproxy/osmo-gbproxy.cfg",
- "doc/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg"],
+ "gbproxy": ["doc/examples/osmo-gbproxy/osmo-gbproxy.cfg"],
"sgsn": ["doc/examples/osmo-sgsn/osmo-sgsn.cfg"],
"gtphub": ["doc/examples/osmo-gtphub/osmo-gtphub-1iface.cfg"]
}
diff --git a/src/gbproxy/Makefile.am b/src/gbproxy/Makefile.am
index 6876f68a..f8a87732 100644
--- a/src/gbproxy/Makefile.am
+++ b/src/gbproxy/Makefile.am
@@ -27,8 +27,6 @@ osmo_gbproxy_SOURCES = \
gb_proxy_main.c \
gb_proxy_vty.c \
gb_proxy_ctrl.c \
- gb_proxy_patch.c \
- gb_proxy_tlli.c \
gb_proxy_peer.c \
$(NULL)
osmo_gbproxy_LDADD = \
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index 4cf7e419..74f799d8 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -82,7 +82,6 @@ static int gbprox_relay2peer(struct msgb *old_msg, struct gbproxy_bvc *bvc,
uint16_t ns_bvci);
static int gbprox_relay2sgsn(struct gbproxy_config *cfg, struct msgb *old_msg,
uint16_t ns_bvci, uint16_t sgsn_nsei);
-static void gbproxy_reset_imsi_acquisition(struct gbproxy_link_info* link_info);
static int check_bvc_nsei(struct gbproxy_bvc *bvc, uint16_t nsei)
{
@@ -106,685 +105,6 @@ static void strip_ns_hdr(struct msgb *msg)
msgb_pull(msg, strip_len);
}
-/* Transmit Chapter 9.2.10 Identity Request */
-static void gprs_put_identity_req(struct msgb *msg, uint8_t id_type)
-{
- struct gsm48_hdr *gh;
-
- id_type &= GSM_MI_TYPE_MASK;
-
- gh = (struct gsm48_hdr *) msgb_put(msg, sizeof(*gh) + 1);
- gh->proto_discr = GSM48_PDISC_MM_GPRS;
- gh->msg_type = GSM48_MT_GMM_ID_REQ;
- gh->data[0] = id_type;
-}
-
-/* Transmit Chapter 9.4.6.2 Detach Accept (mobile originated detach) */
-static void gprs_put_mo_detach_acc(struct msgb *msg)
-{
- struct gsm48_hdr *gh;
-
- gh = (struct gsm48_hdr *) msgb_put(msg, sizeof(*gh) + 1);
- gh->proto_discr = GSM48_PDISC_MM_GPRS;
- gh->msg_type = GSM48_MT_GMM_DETACH_ACK;
- gh->data[0] = 0; /* no force to standby */
-}
-
-static void gprs_push_llc_ui(struct msgb *msg,
- int is_uplink, unsigned sapi, unsigned nu)
-{
- const uint8_t e_bit = 0;
- const uint8_t pm_bit = 1;
- const uint8_t cr_bit = is_uplink ? 0 : 1;
- uint8_t *llc;
- uint8_t *fcs_field;
- uint32_t fcs;
-
- nu &= 0x01ff; /* 9 Bit */
-
- llc = msgb_push(msg, 3);
- llc[0] = (cr_bit << 6) | (sapi & 0x0f);
- llc[1] = 0xc0 | (nu >> 6); /* UI frame */
- llc[2] = (nu << 2) | ((e_bit & 1) << 1) | (pm_bit & 1);
-
- fcs = gprs_llc_fcs(llc, msgb_length(msg));
- fcs_field = msgb_put(msg, 3);
- fcs_field[0] = (uint8_t)(fcs >> 0);
- fcs_field[1] = (uint8_t)(fcs >> 8);
- fcs_field[2] = (uint8_t)(fcs >> 16);
-}
-
-static void gprs_push_bssgp_dl_unitdata(struct msgb *msg,
- uint32_t tlli)
-{
- struct bssgp_ud_hdr *budh;
- uint8_t *llc = msgb_data(msg);
- size_t llc_size = msgb_length(msg);
- const size_t llc_ie_hdr_size = 3;
- const uint8_t qos_profile[] = {0x00, 0x50, 0x20}; /* hard-coded */
- const uint8_t lifetime[] = {0x02, 0x58}; /* 6s hard-coded */
-
- const size_t bssgp_overhead = sizeof(*budh) +
- TVLV_GROSS_LEN(sizeof(lifetime)) + llc_ie_hdr_size;
- uint8_t *ie;
- uint32_t tlli_be = htonl(tlli);
-
- budh = (struct bssgp_ud_hdr *)msgb_push(msg, bssgp_overhead);
-
- budh->pdu_type = BSSGP_PDUT_DL_UNITDATA;
- memcpy(&budh->tlli, &tlli_be, sizeof(budh->tlli));
- memcpy(&budh->qos_profile, qos_profile, sizeof(budh->qos_profile));
-
- ie = budh->data;
- tvlv_put(ie, BSSGP_IE_PDU_LIFETIME, sizeof(lifetime), lifetime);
- ie += TVLV_GROSS_LEN(sizeof(lifetime));
-
- /* Note: Add alignment before the LLC IE if inserting other IE */
-
- *(ie++) = BSSGP_IE_LLC_PDU;
- *(ie++) = llc_size / 256;
- *(ie++) = llc_size % 256;
-
- OSMO_ASSERT(ie == llc);
-
- msgb_bssgph(msg) = (uint8_t *)budh;
- msgb_tlli(msg) = tlli;
-}
-
-/* update bvc according to the BSS message */
-static void gbprox_update_current_raid(uint8_t *raid_enc,
- struct gbproxy_bvc *bvc,
- const char *log_text)
-{
- struct gbproxy_patch_state *state = &bvc->patch_state;
- const struct osmo_plmn_id old_plmn = state->local_plmn;
- struct gprs_ra_id raid;
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- if (!raid_enc)
- return;
-
- gsm48_parse_ra(&raid, raid_enc);
-
- /* save source side MCC/MNC */
- if (!cfg->core_plmn.mcc || raid.mcc == cfg->core_plmn.mcc) {
- state->local_plmn.mcc = 0;
- } else {
- state->local_plmn.mcc = raid.mcc;
- }
-
- if (!cfg->core_plmn.mnc
- || !osmo_mnc_cmp(raid.mnc, raid.mnc_3_digits,
- cfg->core_plmn.mnc, cfg->core_plmn.mnc_3_digits)) {
- state->local_plmn.mnc = 0;
- state->local_plmn.mnc_3_digits = false;
- } else {
- state->local_plmn.mnc = raid.mnc;
- state->local_plmn.mnc_3_digits = raid.mnc_3_digits;
- }
-
- if (osmo_plmn_cmp(&old_plmn, &state->local_plmn))
- LOGPBVC(bvc, LOGL_NOTICE,
- "Patching RAID %sactivated, msg: %s, "
- "local: %s, core: %s\n",
- state->local_plmn.mcc || state->local_plmn.mnc ?
- "" : "de",
- log_text,
- osmo_plmn_name(&state->local_plmn),
- osmo_plmn_name2(&cfg->core_plmn));
-}
-
-uint32_t gbproxy_make_bss_ptmsi(struct gbproxy_bvc *bvc,
- uint32_t sgsn_ptmsi)
-{
- uint32_t bss_ptmsi;
- int max_retries = 23, rc = 0;
- if (!bvc->nse->cfg->patch_ptmsi) {
- bss_ptmsi = sgsn_ptmsi;
- } else {
- do {
- rc = osmo_get_rand_id((uint8_t *) &bss_ptmsi, sizeof(bss_ptmsi));
- if (rc < 0) {
- bss_ptmsi = GSM_RESERVED_TMSI;
- break;
- }
-
- bss_ptmsi = bss_ptmsi | GSM23003_TMSI_SGSN_MASK;
-
- if (gbproxy_link_info_by_ptmsi(bvc, bss_ptmsi))
- bss_ptmsi = GSM_RESERVED_TMSI;
- } while (bss_ptmsi == GSM_RESERVED_TMSI && max_retries--);
- }
-
- if (bss_ptmsi == GSM_RESERVED_TMSI)
- LOGPBVC(bvc, LOGL_ERROR, "Failed to allocate a BSS P-TMSI: %d (%s)\n", rc, strerror(-rc));
-
- return bss_ptmsi;
-}
-
-uint32_t gbproxy_make_sgsn_tlli(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info,
- uint32_t bss_tlli)
-{
- uint32_t sgsn_tlli;
- int max_retries = 23, rc = 0;
- if (!bvc->nse->cfg->patch_ptmsi) {
- sgsn_tlli = bss_tlli;
- } else if (link_info->sgsn_tlli.ptmsi != GSM_RESERVED_TMSI &&
- gprs_tlli_type(bss_tlli) == TLLI_FOREIGN) {
- sgsn_tlli = gprs_tmsi2tlli(link_info->sgsn_tlli.ptmsi,
- TLLI_FOREIGN);
- } else if (link_info->sgsn_tlli.ptmsi != GSM_RESERVED_TMSI &&
- gprs_tlli_type(bss_tlli) == TLLI_LOCAL) {
- sgsn_tlli = gprs_tmsi2tlli(link_info->sgsn_tlli.ptmsi,
- TLLI_LOCAL);
- } else {
- do {
- /* create random TLLI, 0b01111xxx... */
- rc = osmo_get_rand_id((uint8_t *) &sgsn_tlli, sizeof(sgsn_tlli));
- if (rc < 0) {
- sgsn_tlli = 0;
- break;
- }
-
- sgsn_tlli = (sgsn_tlli & 0x7fffffff) | 0x78000000;
-
- if (gbproxy_link_info_by_any_sgsn_tlli(bvc, sgsn_tlli))
- sgsn_tlli = 0;
- } while (!sgsn_tlli && max_retries--);
- }
-
- if (!sgsn_tlli)
- LOGPBVC(bvc, LOGL_ERROR, "Failed to allocate an SGSN TLLI: %d (%s)\n", rc, strerror(-rc));
-
- return sgsn_tlli;
-}
-
-void gbproxy_reset_link(struct gbproxy_link_info *link_info)
-{
- gbproxy_reset_imsi_acquisition(link_info);
-}
-
-/* Returns != 0 iff IMSI acquisition was in progress */
-static int gbproxy_restart_imsi_acquisition(struct gbproxy_link_info* link_info)
-{
- int in_progress = 0;
- if (!link_info)
- return 0;
-
- if (link_info->imsi_acq_pending)
- in_progress = 1;
-
- gbproxy_link_info_discard_messages(link_info);
- link_info->imsi_acq_pending = false;
-
- return in_progress;
-}
-
-static void gbproxy_reset_imsi_acquisition(struct gbproxy_link_info* link_info)
-{
- gbproxy_restart_imsi_acquisition(link_info);
- link_info->vu_gen_tx_bss = GBPROXY_INIT_VU_GEN_TX;
-}
-
-/* Got identity response with IMSI, assuming the request had
- * been generated by the gbproxy */
-static int gbproxy_flush_stored_messages(struct gbproxy_bvc *bvc,
- time_t now,
- struct gbproxy_link_info* link_info)
-{
- int rc;
- struct msgb *stored_msg;
- OSMO_ASSERT(bvc);
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- /* Patch and flush stored messages towards the SGSN */
- while ((stored_msg = msgb_dequeue_count(&link_info->stored_msgs,
- &link_info->stored_msgs_len))) {
- struct gprs_gb_parse_context tmp_parse_ctx = {0};
- tmp_parse_ctx.to_bss = 0;
- tmp_parse_ctx.peer_nsei = msgb_nsei(stored_msg);
- int len_change = 0;
-
- gprs_gb_parse_bssgp(msgb_bssgph(stored_msg),
- msgb_bssgp_len(stored_msg),
- &tmp_parse_ctx);
- gbproxy_patch_bssgp(stored_msg, msgb_bssgph(stored_msg),
- msgb_bssgp_len(stored_msg),
- bvc, link_info, &len_change,
- &tmp_parse_ctx);
-
- rc = gbproxy_update_link_state_after(bvc, link_info, now,
- &tmp_parse_ctx);
- if (rc == 1) {
- LOGPBVC_CAT(bvc, DLLC, LOGL_NOTICE, "link_info deleted while flushing stored messages\n");
- msgb_free(stored_msg);
- return -1;
- }
-
- rc = gbprox_relay2sgsn(cfg, stored_msg,
- msgb_bvci(stored_msg), link_info->sgsn_nsei);
-
- if (rc < 0)
- LOGPBVC_CAT(bvc, DLLC, LOGL_ERROR,
- "failed to send stored message "
- "(%s)\n",
- tmp_parse_ctx.llc_msg_name ?
- tmp_parse_ctx.llc_msg_name : "BSSGP");
- msgb_free(stored_msg);
- }
-
- return 0;
-}
-
-static int gbproxy_gsm48_to_bvc(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info* link_info,
- uint16_t bvci,
- struct msgb *msg /* Takes msg ownership */)
-{
- int rc;
-
- /* Workaround to avoid N(U) collisions and to enable a restart
- * of the IMSI acquisition procedure. This will work unless the
- * SGSN has an initial V(UT) within [256-32, 256+n_retries]
- * (see GSM 04.64, 8.4.2). */
- gprs_push_llc_ui(msg, 0, GPRS_SAPI_GMM, link_info->vu_gen_tx_bss);
- link_info->vu_gen_tx_bss = (link_info->vu_gen_tx_bss + 1) % 512;
-
- gprs_push_bssgp_dl_unitdata(msg, link_info->tlli.current);
- msg->l3h = msg->data;
-
- rc = gbprox_relay2peer(msg, bvc, bvci);
- msgb_free(msg);
- return rc;
-}
-
-static void gbproxy_acquire_imsi(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info* link_info,
- uint16_t bvci)
-{
- struct msgb *idreq_msg;
-
- /* Send IDENT REQ */
- idreq_msg = gsm48_msgb_alloc_name("GSM 04.08 ACQ IMSI");
- gprs_put_identity_req(idreq_msg, GSM_MI_TYPE_IMSI);
- gbproxy_gsm48_to_bvc(bvc, link_info, bvci, idreq_msg);
-}
-
-static void gbproxy_tx_detach_acc(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info* link_info,
- uint16_t bvci)
-{
- struct msgb *detacc_msg;
-
- /* Send DETACH ACC */
- detacc_msg = gsm48_msgb_alloc_name("GSM 04.08 DET ACC");
- gprs_put_mo_detach_acc(detacc_msg);
- gbproxy_gsm48_to_bvc(bvc, link_info, bvci, detacc_msg);
-}
-
-/* Return != 0 iff msg still needs to be processed */
-static int gbproxy_imsi_acquisition(struct gbproxy_bvc *bvc,
- struct msgb *msg,
- time_t now,
- struct gbproxy_link_info* link_info,
- struct gprs_gb_parse_context *parse_ctx)
-{
- struct msgb *stored_msg;
- OSMO_ASSERT(bvc);
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- if (!link_info)
- return 1;
-
- if (!link_info->imsi_acq_pending && link_info->imsi_len > 0)
- return 1;
-
- if (parse_ctx->g48_hdr)
- switch (parse_ctx->g48_hdr->msg_type)
- {
- case GSM48_MT_GMM_RA_UPD_REQ:
- case GSM48_MT_GMM_ATTACH_REQ:
- if (gbproxy_restart_imsi_acquisition(link_info)) {
- LOGPBVC_CAT(bvc, DLLC, LOGL_INFO,
- " IMSI acquisition was in progress "
- "when receiving an %s.\n",
- parse_ctx->llc_msg_name);
- }
- break;
- case GSM48_MT_GMM_DETACH_REQ:
- /* Nothing has been sent to the SGSN yet */
- if (link_info->imsi_acq_pending) {
- LOGPBVC_CAT(bvc, DLLC, LOGL_INFO,
- "IMSI acquisition was in progress "
- "when receiving a DETACH_REQ.\n");
- }
- if (!parse_ctx->invalidate_tlli) {
- LOGPBVC_CAT(bvc, DLLC, LOGL_INFO,
- "IMSI not yet acquired, "
- "faking a DETACH_ACC.\n");
- gbproxy_tx_detach_acc(bvc, link_info, msgb_bvci(msg));
- parse_ctx->invalidate_tlli = 1;
- }
- gbproxy_reset_imsi_acquisition(link_info);
- gbproxy_update_link_state_after(bvc, link_info, now,
- parse_ctx);
- return 0;
- }
-
- if (link_info->imsi_acq_pending && link_info->imsi_len > 0) {
- int is_ident_resp =
- parse_ctx->g48_hdr &&
- gsm48_hdr_pdisc(parse_ctx->g48_hdr) == GSM48_PDISC_MM_GPRS &&
- gsm48_hdr_msg_type(parse_ctx->g48_hdr) == GSM48_MT_GMM_ID_RESP;
-
- LOGPBVC_CAT(bvc, DLLC, LOGL_DEBUG,
- "IMSI acquisition succeeded, "
- "flushing stored messages\n");
- /* The IMSI is now available. If flushing the messages fails,
- * then link_info has been deleted and we should return
- * immediately. */
- if (gbproxy_flush_stored_messages(bvc, now, link_info) < 0)
- return 0;
-
- gbproxy_reset_imsi_acquisition(link_info);
-
- /* This message is most probably the response to the ident
- * request sent by gbproxy_acquire_imsi(). Don't forward it to
- * the SGSN. */
- return !is_ident_resp;
- }
-
- /* The message cannot be processed since the IMSI is still missing */
-
- /* If queue is getting too large, drop oldest msgb before adding new one */
- if (cfg->stored_msgs_max_len > 0) {
- int exceeded_max_len = link_info->stored_msgs_len
- + 1 - cfg->stored_msgs_max_len;
-
- for (; exceeded_max_len > 0; exceeded_max_len--) {
- struct msgb *msgb_drop;
- msgb_drop = msgb_dequeue_count(&link_info->stored_msgs,
- &link_info->stored_msgs_len);
- LOGPBVC_CAT(bvc, DLLC, LOGL_INFO,
- "Dropping stored msgb from list "
- "(!acq imsi, length %d, max_len exceeded)\n",
- link_info->stored_msgs_len);
-
- msgb_free(msgb_drop);
- }
- }
-
- /* Enqueue unpatched messages */
- LOGPBVC_CAT(bvc, DLLC, LOGL_INFO,
- "IMSI acquisition in progress, "
- "storing message (%s)\n",
- parse_ctx->llc_msg_name ? parse_ctx->llc_msg_name : "BSSGP");
-
- stored_msg = bssgp_msgb_copy(msg, "process_bssgp_ul");
- msgb_enqueue_count(&link_info->stored_msgs, stored_msg,
- &link_info->stored_msgs_len);
-
- if (!link_info->imsi_acq_pending) {
- LOGPBVC_CAT(bvc, DLLC, LOGL_INFO,
- "IMSI is required but not available, "
- "initiating identification procedure (%s)\n",
- parse_ctx->llc_msg_name ? parse_ctx->llc_msg_name : "BSSGP");
-
- gbproxy_acquire_imsi(bvc, link_info, msgb_bvci(msg));
-
- /* There is no explicit retransmission handling, the
- * implementation relies on the MS doing proper retransmissions
- * of the triggering message instead */
-
- link_info->imsi_acq_pending = true;
- }
-
- return 0;
-}
-
-struct gbproxy_bvc *gbproxy_find_bvc(struct gbproxy_config *cfg,
- struct msgb *msg,
- struct gprs_gb_parse_context *parse_ctx)
-{
- struct gbproxy_bvc *bvc = NULL;
-
- if (msgb_bvci(msg) >= 2)
- bvc = gbproxy_bvc_by_bvci(cfg, msgb_bvci(msg));
-
- if (!bvc && !parse_ctx->to_bss)
- bvc = gbproxy_bvc_by_nsei(cfg, msgb_nsei(msg));
-
- if (!bvc)
- bvc = gbproxy_bvc_by_bssgp_tlv(cfg, &parse_ctx->bssgp_tp);
-
- if (!bvc) {
- LOGP(DLLC, LOGL_INFO,
- "NSE(%05u/%s) patching: didn't find bvc for message, "
- "PDU %d\n",
- msgb_nsei(msg), parse_ctx->to_bss ? "BSS" : "SGSN",
- parse_ctx->pdu_type);
- /* Increment counter */
- rate_ctr_inc(&cfg->ctrg->ctr[GBPROX_GLOB_CTR_PATCH_PEER_ERR]);
- }
- return bvc;
-}
-
-/* patch BSSGP message */
-static int gbprox_process_bssgp_ul(struct gbproxy_config *cfg,
- struct msgb *msg,
- struct gbproxy_bvc *bvc)
-{
- struct gprs_gb_parse_context parse_ctx = {0};
- int rc;
- int len_change = 0;
- time_t now;
- struct timespec ts = {0,};
- struct gbproxy_link_info *link_info = NULL;
- uint32_t sgsn_nsei = cfg->nsip_sgsn_nsei;
-
- if (!cfg->core_plmn.mcc && !cfg->core_plmn.mnc && !cfg->core_apn &&
- !cfg->acquire_imsi && !cfg->patch_ptmsi && !cfg->route_to_sgsn2)
- return 1;
-
- parse_ctx.to_bss = 0;
- parse_ctx.peer_nsei = msgb_nsei(msg);
-
- /* Parse BSSGP/LLC */
- rc = gprs_gb_parse_bssgp(msgb_bssgph(msg), msgb_bssgp_len(msg),
- &parse_ctx);
-
- if (!rc && !parse_ctx.need_decryption) {
- LOGP(DGPRS, LOGL_ERROR,
- "NSE(%05u/BSS) patching: failed to parse invalid %s message\n",
- msgb_nsei(msg), gprs_gb_message_name(&parse_ctx, "NS_UNITDATA"));
- gprs_gb_log_parse_context(LOGL_NOTICE, &parse_ctx, "NS_UNITDATA");
- LOGP(DGPRS, LOGL_NOTICE,
- "NSE(%05u/BSS) invalid message was: %s\n",
- msgb_nsei(msg), msgb_hexdump(msg));
- return 0;
- }
-
- /* Get bvc */
- if (!bvc)
- bvc = gbproxy_find_bvc(cfg, msg, &parse_ctx);
-
- if (!bvc)
- return 0;
-
-
- osmo_clock_gettime(CLOCK_MONOTONIC, &ts);
- now = ts.tv_sec;
-
- gbprox_update_current_raid(parse_ctx.bssgp_raid_enc, bvc,
- parse_ctx.llc_msg_name);
-
- gprs_gb_log_parse_context(LOGL_DEBUG, &parse_ctx, "NS_UNITDATA");
-
- link_info = gbproxy_update_link_state_ul(bvc, now, &parse_ctx);
-
- if (parse_ctx.g48_hdr) {
- switch (parse_ctx.g48_hdr->msg_type) {
- case GSM48_MT_GMM_ATTACH_REQ:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_ATTACH_REQS]);
- break;
- case GSM48_MT_GMM_DETACH_REQ:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_DETACH_REQS]);
- break;
- case GSM48_MT_GMM_ATTACH_COMPL:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_ATTACH_COMPLS]);
- break;
- case GSM48_MT_GMM_RA_UPD_REQ:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_RA_UPD_REQS]);
- break;
- case GSM48_MT_GMM_RA_UPD_COMPL:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_RA_UPD_COMPLS]);
- break;
- case GSM48_MT_GMM_STATUS:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_GMM_STATUS_BSS]);
- break;
- case GSM48_MT_GSM_ACT_PDP_REQ:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_PDP_ACT_REQS]);
- break;
- case GSM48_MT_GSM_DEACT_PDP_REQ:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_PDP_DEACT_REQS]);
- break;
-
- default:
- break;
- }
- }
-
- if (link_info && cfg->route_to_sgsn2) {
- if (cfg->acquire_imsi && link_info->imsi_len == 0)
- sgsn_nsei = 0xffff;
- else if (gbproxy_imsi_matches(cfg, GBPROX_MATCH_ROUTING,
- link_info))
- sgsn_nsei = cfg->nsip_sgsn2_nsei;
- }
-
- if (link_info)
- link_info->sgsn_nsei = sgsn_nsei;
-
- /* Handle IMSI acquisition */
- if (cfg->acquire_imsi) {
- rc = gbproxy_imsi_acquisition(bvc, msg, now, link_info,
- &parse_ctx);
- if (rc <= 0)
- return rc;
- }
-
- gbproxy_patch_bssgp(msg, msgb_bssgph(msg), msgb_bssgp_len(msg),
- bvc, link_info, &len_change, &parse_ctx);
-
- gbproxy_update_link_state_after(bvc, link_info, now, &parse_ctx);
-
- if (sgsn_nsei != cfg->nsip_sgsn_nsei) {
- /* Send message directly to the selected SGSN */
- rc = gbprox_relay2sgsn(cfg, msg, msgb_bvci(msg), sgsn_nsei);
- /* Don't let the calling code handle the transmission */
- return 0;
- }
-
- return 1;
-}
-
-/* patch BSSGP message to use core_plmn.mcc/mnc on the SGSN side */
-static void gbprox_process_bssgp_dl(struct gbproxy_config *cfg,
- struct msgb *msg,
- struct gbproxy_bvc *bvc)
-{
- struct gprs_gb_parse_context parse_ctx = {0};
- int rc;
- int len_change = 0;
- time_t now;
- struct timespec ts = {0,};
- struct gbproxy_link_info *link_info = NULL;
-
- if (!cfg->core_plmn.mcc && !cfg->core_plmn.mnc && !cfg->core_apn &&
- !cfg->acquire_imsi && !cfg->patch_ptmsi && !cfg->route_to_sgsn2)
- return;
-
- parse_ctx.to_bss = 1;
- parse_ctx.peer_nsei = msgb_nsei(msg);
-
- rc = gprs_gb_parse_bssgp(msgb_bssgph(msg), msgb_bssgp_len(msg),
- &parse_ctx);
-
- if (!rc && !parse_ctx.need_decryption) {
- LOGP(DGPRS, LOGL_ERROR,
- "NSE(%05u/SGSN) patching: failed to parse invalid %s message\n",
- msgb_nsei(msg), gprs_gb_message_name(&parse_ctx, "NS_UNITDATA"));
- gprs_gb_log_parse_context(LOGL_NOTICE, &parse_ctx, "NS_UNITDATA");
- LOGP(DGPRS, LOGL_NOTICE,
- "NSE(%05u/SGSN) invalid message was: %s\n",
- msgb_nsei(msg), msgb_hexdump(msg));
- return;
- }
-
- /* Get bvc */
- if (!bvc)
- bvc = gbproxy_find_bvc(cfg, msg, &parse_ctx);
-
- if (!bvc)
- return;
-
- osmo_clock_gettime(CLOCK_MONOTONIC, &ts);
- now = ts.tv_sec;
-
- if (parse_ctx.g48_hdr) {
- switch (parse_ctx.g48_hdr->msg_type) {
- case GSM48_MT_GMM_ATTACH_ACK:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_ATTACH_ACKS]);
- break;
- case GSM48_MT_GMM_ATTACH_REJ:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_ATTACH_REJS]);
- break;
- case GSM48_MT_GMM_DETACH_ACK:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_DETACH_ACKS]);
- break;
- case GSM48_MT_GMM_RA_UPD_ACK:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_RA_UPD_ACKS]);
- break;
- case GSM48_MT_GMM_RA_UPD_REJ:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_RA_UPD_REJS]);
- break;
- case GSM48_MT_GMM_STATUS:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_GMM_STATUS_SGSN]);
- break;
- case GSM48_MT_GSM_ACT_PDP_ACK:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_PDP_ACT_ACKS]);
- break;
- case GSM48_MT_GSM_ACT_PDP_REJ:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_PDP_ACT_REJS]);
- break;
- case GSM48_MT_GSM_DEACT_PDP_ACK:
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_PDP_DEACT_ACKS]);
- break;
-
- default:
- break;
- }
- }
-
- gprs_gb_log_parse_context(LOGL_DEBUG, &parse_ctx, "NS_UNITDATA");
-
- link_info = gbproxy_update_link_state_dl(bvc, now, &parse_ctx);
-
- gbproxy_patch_bssgp(msg, msgb_bssgph(msg), msgb_bssgp_len(msg),
- bvc, link_info, &len_change, &parse_ctx);
-
- gbproxy_update_link_state_after(bvc, link_info, now, &parse_ctx);
-
- return;
-}
-
/* feed a message down the NS-VC associated with the specified bvc */
static int gbprox_relay2sgsn(struct gbproxy_config *cfg, struct msgb *old_msg,
uint16_t ns_bvci, uint16_t sgsn_nsei)
@@ -924,9 +244,6 @@ static int gbprox_rx_ptp_from_bss(struct gbproxy_config *cfg,
uint16_t ns_bvci)
{
struct gbproxy_bvc *bvc;
- struct bssgp_normal_hdr *bgph = (struct bssgp_normal_hdr *) msgb_bssgph(msg);
- uint8_t pdu_type = bgph->pdu_type;
- int rc;
bvc = gbproxy_bvc_by_bvci(cfg, ns_bvci);
if (!bvc) {
@@ -941,23 +258,6 @@ static int gbprox_rx_ptp_from_bss(struct gbproxy_config *cfg,
/* TODO: Should we discard this message if the check fails */
check_bvc_nsei(bvc, nsei);
- rc = gbprox_process_bssgp_ul(cfg, msg, bvc);
- if (!rc)
- return 0;
-
- switch (pdu_type) {
- case BSSGP_PDUT_FLOW_CONTROL_BVC:
- if (!cfg->route_to_sgsn2)
- break;
-
- /* Send a copy to the secondary SGSN */
- gbprox_relay2sgsn(cfg, msg, ns_bvci, cfg->nsip_sgsn2_nsei);
- break;
- default:
- break;
- }
-
-
return gbprox_relay2sgsn(cfg, msg, ns_bvci, cfg->nsip_sgsn_nsei);
}
@@ -967,8 +267,6 @@ static int gbprox_rx_ptp_from_sgsn(struct gbproxy_config *cfg,
uint16_t ns_bvci)
{
struct gbproxy_bvc *bvc;
- struct bssgp_normal_hdr *bgph = (struct bssgp_normal_hdr *) msgb_bssgph(msg);
- uint8_t pdu_type = bgph->pdu_type;
bvc = gbproxy_bvc_by_bvci(cfg, ns_bvci);
@@ -991,29 +289,12 @@ static int gbprox_rx_ptp_from_sgsn(struct gbproxy_config *cfg,
return bssgp_tx_status(BSSGP_CAUSE_BVCI_BLOCKED, &ns_bvci, msg);
}
- switch (pdu_type) {
- case BSSGP_PDUT_FLOW_CONTROL_BVC_ACK:
- case BSSGP_PDUT_BVC_BLOCK_ACK:
- case BSSGP_PDUT_BVC_UNBLOCK_ACK:
- if (cfg->route_to_sgsn2 && nsei == cfg->nsip_sgsn2_nsei)
- /* Hide ACKs from the secondary SGSN, the primary SGSN
- * is responsible to send them. */
- return 0;
- break;
- default:
- break;
- }
-
- /* Optionally patch the message */
- gbprox_process_bssgp_dl(cfg, msg, bvc);
-
return gbprox_relay2peer(msg, bvc, ns_bvci);
}
/* process a BVC-RESET message from the BSS side */
static int gbprox_rx_bvc_reset_from_bss(struct gbproxy_config *cfg, struct msgb *msg,
- uint16_t nsei, struct tlv_parsed *tp,
- int *copy_to_sgsn2)
+ uint16_t nsei, struct tlv_parsed *tp)
{
struct gbproxy_bvc *from_bvc = NULL;
uint16_t bvci;
@@ -1087,8 +368,6 @@ static int gbprox_rx_bvc_reset_from_bss(struct gbproxy_config *cfg, struct msgb
gsm48_parse_ra(&raid, from_bvc->ra);
LOGPBVC(from_bvc, LOGL_INFO, "Cell ID %s\n", osmo_rai_name(&raid));
}
- if (cfg->route_to_sgsn2)
- *copy_to_sgsn2 = 1;
}
/* continue processing / relaying to SGSN[s] */
return 1;
@@ -1105,7 +384,6 @@ static int gbprox_rx_sig_from_bss(struct gbproxy_config *cfg,
int data_len = msgb_bssgp_len(msg) - sizeof(*bgph);
struct gbproxy_bvc *from_bvc = NULL;
struct gprs_ra_id raid;
- int copy_to_sgsn2 = 0;
int rc;
if (ns_bvci != 0 && ns_bvci != 1) {
@@ -1147,22 +425,13 @@ static int gbprox_rx_sig_from_bss(struct gbproxy_config *cfg,
/* FIXME: This only supports one BSS per RA */
break;
case BSSGP_PDUT_BVC_RESET:
- rc = gbprox_rx_bvc_reset_from_bss(cfg, msg, nsei, &tp, &copy_to_sgsn2);
+ rc = gbprox_rx_bvc_reset_from_bss(cfg, msg, nsei, &tp);
/* if function retruns 0, we terminate processing here */
if (rc == 0)
return 0;
break;
}
- /* Normally, we can simply pass on all signalling messages from BSS to
- * SGSN */
- rc = gbprox_process_bssgp_ul(cfg, msg, from_bvc);
- if (!rc)
- return 0;
-
- if (copy_to_sgsn2)
- gbprox_relay2sgsn(cfg, msg, ns_bvci, cfg->nsip_sgsn2_nsei);
-
return gbprox_relay2sgsn(cfg, msg, ns_bvci, cfg->nsip_sgsn_nsei);
err_no_bvc:
LOGP(DGPRS, LOGL_ERROR, "NSE(%05u/BSS) cannot find bvc based on NSEI\n",
@@ -1337,7 +606,6 @@ static int gbprox_rx_sig_from_sgsn(struct gbproxy_config *cfg,
}
msg = bssgp_msgb_copy(orig_msg, "rx_sig_from_sgsn");
- gbprox_process_bssgp_dl(cfg, msg, NULL);
/* Update message info */
bgph = (struct bssgp_normal_hdr *) msgb_bssgph(msg);
data_len = msgb_bssgp_len(orig_msg) - sizeof(*bgph);
@@ -1348,8 +616,6 @@ static int gbprox_rx_sig_from_sgsn(struct gbproxy_config *cfg,
rc = rx_reset_from_sgsn(cfg, msg, orig_msg, &tp, nsei, ns_bvci);
break;
case BSSGP_PDUT_BVC_RESET_ACK:
- if (cfg->route_to_sgsn2 && nsei == cfg->nsip_sgsn2_nsei)
- break;
/* simple case: BVCI IE is mandatory */
if (!TLVP_PRES_LEN(&tp, BSSGP_IE_BVCI, 2))
goto err_mand_ie;
@@ -1462,8 +728,7 @@ err_no_bvc:
static int gbproxy_is_sgsn_nsei(struct gbproxy_config *cfg, uint16_t nsei)
{
- return nsei == cfg->nsip_sgsn_nsei ||
- (cfg->route_to_sgsn2 && nsei == cfg->nsip_sgsn2_nsei);
+ return nsei == cfg->nsip_sgsn_nsei;
}
int gbprox_bssgp_send_cb(void *ctx, struct msgb *msg)
diff --git a/src/gbproxy/gb_proxy_ctrl.c b/src/gbproxy/gb_proxy_ctrl.c
index 157695d2..21e56dd0 100644
--- a/src/gbproxy/gb_proxy_ctrl.c
+++ b/src/gbproxy/gb_proxy_ctrl.c
@@ -64,10 +64,6 @@ static int get_nsvc_state(struct ctrl_cmd *cmd, void *data)
nse = gprs_ns2_nse_by_nsei(nsi, cfg->nsip_sgsn_nsei);
if (nse)
gprs_ns2_nse_foreach_nsvc(nse, &ctrl_nsvc_state_cb, cmd);
- /* NS-VCs for SGSN2 */
- nse = gprs_ns2_nse_by_nsei(nsi, cfg->nsip_sgsn2_nsei);
- if (nse)
- gprs_ns2_nse_foreach_nsvc(nse, &ctrl_nsvc_state_cb, cmd);
/* NS-VCs for BSS peers */
hash_for_each(cfg->bss_nses, i, nse_peer, list) {
diff --git a/src/gbproxy/gb_proxy_patch.c b/src/gbproxy/gb_proxy_patch.c
deleted file mode 100644
index e78d31b2..00000000
--- a/src/gbproxy/gb_proxy_patch.c
+++ /dev/null
@@ -1,482 +0,0 @@
-/* Gb-proxy message patching */
-
-/* (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 <osmocom/gprs/gprs_msgb.h>
-#include <osmocom/sgsn/gb_proxy.h>
-
-#include <osmocom/sgsn/gprs_utils.h>
-#include <osmocom/sgsn/gprs_gb_parse.h>
-
-#include <osmocom/sgsn/debug.h>
-
-#include <osmocom/gprs/protocol/gsm_08_18.h>
-#include <osmocom/core/rate_ctr.h>
-#include <osmocom/gsm/apn.h>
-
-extern void *tall_sgsn_ctx;
-
-/* patch RA identifier in place */
-static void gbproxy_patch_raid(struct gsm48_ra_id *raid_enc, struct gbproxy_bvc *bvc,
- int to_bss, const char *log_text)
-{
- OSMO_ASSERT(bvc);
- struct gbproxy_patch_state *state = &bvc->patch_state;
- struct osmo_plmn_id old_plmn;
- struct gprs_ra_id raid;
- enum gbproxy_bvc_ctr counter =
- to_bss ?
- GBPROX_PEER_CTR_RAID_PATCHED_SGSN :
- GBPROX_PEER_CTR_RAID_PATCHED_BSS;
-
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- if (!state->local_plmn.mcc || !state->local_plmn.mnc)
- return;
-
- gsm48_parse_ra(&raid, (uint8_t *)raid_enc);
-
- old_plmn = (struct osmo_plmn_id){
- .mcc = raid.mcc,
- .mnc = raid.mnc,
- .mnc_3_digits = raid.mnc_3_digits,
- };
-
- if (!to_bss) {
- /* BSS -> SGSN */
- if (state->local_plmn.mcc)
- raid.mcc = cfg->core_plmn.mcc;
-
- if (state->local_plmn.mnc) {
- raid.mnc = cfg->core_plmn.mnc;
- raid.mnc_3_digits = cfg->core_plmn.mnc_3_digits;
- }
- } else {
- /* SGSN -> BSS */
- if (state->local_plmn.mcc)
- raid.mcc = state->local_plmn.mcc;
-
- if (state->local_plmn.mnc) {
- raid.mnc = state->local_plmn.mnc;
- raid.mnc_3_digits = state->local_plmn.mnc_3_digits;
- }
- }
-
- LOGPBVC(bvc, LOGL_DEBUG,
- "Patching %s to %s: "
- "%s-%d-%d -> %s\n",
- log_text,
- to_bss ? "BSS" : "SGSN",
- osmo_plmn_name(&old_plmn), raid.lac, raid.rac,
- osmo_rai_name(&raid));
-
- gsm48_encode_ra(raid_enc, &raid);
- rate_ctr_inc(&bvc->ctrg->ctr[counter]);
-}
-
-static void gbproxy_patch_apn_ie(struct msgb *msg,
- uint8_t *apn_ie, size_t apn_ie_len,
- struct gbproxy_bvc *bvc,
- size_t *new_apn_ie_len, const char *log_text)
-{
- struct apn_ie_hdr {
- uint8_t iei;
- uint8_t apn_len;
- uint8_t apn[0];
- } *hdr = (void *)apn_ie;
-
- size_t apn_len = hdr->apn_len;
- uint8_t *apn = hdr->apn;
- OSMO_ASSERT(bvc);
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- OSMO_ASSERT(apn_ie_len == apn_len + sizeof(struct apn_ie_hdr));
- OSMO_ASSERT(apn_ie_len > 2 && apn_ie_len <= 102);
-
- if (cfg->core_apn_size == 0) {
- char str1[110];
- /* Remove the IE */
- LOGPBVC(bvc, LOGL_DEBUG,
- "Patching %s to SGSN: Removing APN '%s'\n",
- log_text,
- osmo_apn_to_str(str1, apn, apn_len));
-
- *new_apn_ie_len = 0;
- msgb_resize_area(msg, apn_ie, apn_ie_len, 0);
- } else {
- /* Resize the IE */
- char str1[110];
- char str2[110];
-
- OSMO_ASSERT(cfg->core_apn_size <= 100);
-
- LOGPBVC(bvc, LOGL_DEBUG,
- "Patching %s to SGSN: "
- "Replacing APN '%s' -> '%s'\n",
- log_text,
- osmo_apn_to_str(str1, apn, apn_len),
- osmo_apn_to_str(str2, cfg->core_apn,
- cfg->core_apn_size));
-
- *new_apn_ie_len = cfg->core_apn_size + 2;
- msgb_resize_area(msg, apn, apn_len, cfg->core_apn_size);
- memcpy(apn, cfg->core_apn, cfg->core_apn_size);
- hdr->apn_len = cfg->core_apn_size;
- }
-
- rate_ctr_inc(&bvc->ctrg->ctr[GBPROX_PEER_CTR_APN_PATCHED]);
-}
-
-static int gbproxy_patch_tlli(uint8_t *tlli_enc,
- struct gbproxy_bvc *bvc,
- uint32_t new_tlli,
- int to_bss, const char *log_text)
-{
- uint32_t tlli_be;
- uint32_t tlli;
- enum gbproxy_bvc_ctr counter =
- to_bss ?
- GBPROX_PEER_CTR_TLLI_PATCHED_SGSN :
- GBPROX_PEER_CTR_TLLI_PATCHED_BSS;
- OSMO_ASSERT(bvc);
-
- memcpy(&tlli_be, tlli_enc, sizeof(tlli_be));
- tlli = ntohl(tlli_be);
-
- if (tlli == new_tlli)
- return 0;
-
- LOGPBVC(bvc, LOGL_DEBUG,
- "Patching %ss: "
- "Replacing %08x -> %08x\n",
- log_text, tlli, new_tlli);
-
- tlli_be = htonl(new_tlli);
- memcpy(tlli_enc, &tlli_be, sizeof(tlli_be));
-
- rate_ctr_inc(&bvc->ctrg->ctr[counter]);
-
- return 1;
-}
-
-static int gbproxy_patch_ptmsi(uint8_t *ptmsi_enc,
- struct gbproxy_bvc *bvc,
- uint32_t new_ptmsi,
- int to_bss, const char *log_text)
-{
- uint32_t ptmsi_be;
- uint32_t ptmsi;
- enum gbproxy_bvc_ctr counter =
- to_bss ?
- GBPROX_PEER_CTR_PTMSI_PATCHED_SGSN :
- GBPROX_PEER_CTR_PTMSI_PATCHED_BSS;
- OSMO_ASSERT(bvc);
-
- memcpy(&ptmsi_be, ptmsi_enc, sizeof(ptmsi_be));
- ptmsi = ntohl(ptmsi_be);
-
- if (ptmsi == new_ptmsi)
- return 0;
-
- LOGPBVC(bvc, LOGL_DEBUG,
- "Patching %ss: "
- "Replacing %08x -> %08x\n",
- log_text, ptmsi, new_ptmsi);
-
- ptmsi_be = htonl(new_ptmsi);
- memcpy(ptmsi_enc, &ptmsi_be, sizeof(ptmsi_be));
-
- rate_ctr_inc(&bvc->ctrg->ctr[counter]);
-
- return 1;
-}
-
-int gbproxy_patch_llc(struct msgb *msg, uint8_t *llc, size_t llc_len,
- struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info, int *len_change,
- struct gprs_gb_parse_context *parse_ctx)
-{
- struct gprs_llc_hdr_parsed *ghp = &parse_ctx->llc_hdr_parsed;
- int have_patched = 0;
- int fcs;
- OSMO_ASSERT(bvc);
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- if (parse_ctx->ptmsi_enc && link_info &&
- !parse_ctx->old_raid_is_foreign && cfg->patch_ptmsi) {
- uint32_t ptmsi;
- if (parse_ctx->to_bss)
- ptmsi = link_info->tlli.ptmsi;
- else
- ptmsi = link_info->sgsn_tlli.ptmsi;
-
- if (ptmsi != GSM_RESERVED_TMSI) {
- if (gbproxy_patch_ptmsi(parse_ctx->ptmsi_enc, bvc,
- ptmsi, parse_ctx->to_bss, "P-TMSI"))
- have_patched = 1;
- } else {
- /* TODO: invalidate old RAI if present (see below) */
- }
- }
-
- if (parse_ctx->new_ptmsi_enc && link_info && cfg->patch_ptmsi) {
- uint32_t ptmsi;
- if (parse_ctx->to_bss)
- ptmsi = link_info->tlli.ptmsi;
- else
- ptmsi = link_info->sgsn_tlli.ptmsi;
-
- OSMO_ASSERT(ptmsi);
- if (gbproxy_patch_ptmsi(parse_ctx->new_ptmsi_enc, bvc,
- ptmsi, parse_ctx->to_bss, "new P-TMSI"))
- have_patched = 1;
- }
-
- if (parse_ctx->raid_enc) {
- gbproxy_patch_raid((struct gsm48_ra_id *)parse_ctx->raid_enc, bvc, parse_ctx->to_bss,
- parse_ctx->llc_msg_name);
- have_patched = 1;
- }
-
- if (parse_ctx->old_raid_enc && !parse_ctx->old_raid_is_foreign) {
- /* TODO: Patch to invalid if P-TMSI unknown. */
- gbproxy_patch_raid((struct gsm48_ra_id *)parse_ctx->old_raid_enc, bvc, parse_ctx->to_bss,
- parse_ctx->llc_msg_name);
- have_patched = 1;
- }
-
- if (parse_ctx->apn_ie &&
- cfg->core_apn &&
- !parse_ctx->to_bss &&
- gbproxy_imsi_matches(cfg, GBPROX_MATCH_PATCHING, link_info) &&
- cfg->core_apn) {
- size_t new_len;
- gbproxy_patch_apn_ie(msg,
- parse_ctx->apn_ie, parse_ctx->apn_ie_len,
- bvc, &new_len, parse_ctx->llc_msg_name);
- *len_change += (int)new_len - (int)parse_ctx->apn_ie_len;
-
- have_patched = 1;
- }
-
- if (have_patched) {
- llc_len += *len_change;
- ghp->crc_length += *len_change;
-
- /* Fix FCS */
- fcs = gprs_llc_fcs(llc, ghp->crc_length);
- LOGPBVC_CAT(bvc, DLLC, LOGL_DEBUG, "Updated LLC message, CRC: %06x -> %06x\n",
- ghp->fcs, fcs);
-
- llc[llc_len - 3] = fcs & 0xff;
- llc[llc_len - 2] = (fcs >> 8) & 0xff;
- llc[llc_len - 1] = (fcs >> 16) & 0xff;
- }
-
- return have_patched;
-}
-
-/* patch BSSGP message to use core_plmn.mcc/mnc on the SGSN side */
-void gbproxy_patch_bssgp(struct msgb *msg, uint8_t *bssgp, size_t bssgp_len,
- struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info, int *len_change,
- struct gprs_gb_parse_context *parse_ctx)
-{
- const char *err_info = NULL;
- int err_ctr = -1;
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- if (parse_ctx->bssgp_raid_enc)
- gbproxy_patch_raid((struct gsm48_ra_id *)parse_ctx->bssgp_raid_enc, bvc,
- parse_ctx->to_bss, "BSSGP");
-
- if (parse_ctx->need_decryption &&
- (cfg->patch_ptmsi || cfg->core_apn)) {
- /* Patching LLC messages has been requested
- * explicitly, but the message (including the
- * type) is encrypted, so we possibly fail to
- * patch the LLC part of the message. */
- err_ctr = GBPROX_PEER_CTR_PATCH_CRYPT_ERR;
- err_info = "GMM message is encrypted";
- goto patch_error;
- }
-
- if (!link_info && parse_ctx->tlli_enc && parse_ctx->to_bss) {
- /* Happens with unknown (not cached) TLLI coming from
- * the SGSN */
- /* TODO: What shall be done with the message in this case? */
- err_ctr = GBPROX_PEER_CTR_TLLI_UNKNOWN;
- err_info = "TLLI sent by the SGSN is unknown";
- goto patch_error;
- }
-
- if (!link_info)
- return;
-
- if (parse_ctx->tlli_enc && cfg->patch_ptmsi) {
- uint32_t tlli = gbproxy_map_tlli(parse_ctx->tlli,
- link_info, parse_ctx->to_bss);
-
- if (tlli) {
- gbproxy_patch_tlli(parse_ctx->tlli_enc, bvc, tlli,
- parse_ctx->to_bss, "TLLI");
- parse_ctx->tlli = tlli;
- } else {
- /* Internal error */
- err_ctr = GBPROX_PEER_CTR_PATCH_ERR;
- err_info = "Replacement TLLI is 0";
- goto patch_error;
- }
- }
-
- if (parse_ctx->bssgp_ptmsi_enc && cfg->patch_ptmsi) {
- uint32_t ptmsi;
- if (parse_ctx->to_bss)
- ptmsi = link_info->tlli.ptmsi;
- else
- ptmsi = link_info->sgsn_tlli.ptmsi;
-
- if (ptmsi != GSM_RESERVED_TMSI)
- gbproxy_patch_ptmsi(
- parse_ctx->bssgp_ptmsi_enc, bvc,
- ptmsi, parse_ctx->to_bss, "BSSGP P-TMSI");
- }
-
- if (parse_ctx->llc) {
- uint8_t *llc = parse_ctx->llc;
- size_t llc_len = parse_ctx->llc_len;
- int llc_len_change = 0;
-
- gbproxy_patch_llc(msg, llc, llc_len, bvc, link_info,
- &llc_len_change, parse_ctx);
- /* Note that the APN might have been resized here, but no
- * pointer int the parse_ctx will refer to an adress after the
- * APN. So it's possible to patch first and do the TLLI
- * handling afterwards. */
-
- if (llc_len_change) {
- llc_len += llc_len_change;
-
- /* Fix LLC IE len */
- /* TODO: This is a kludge, but the a pointer to the
- * start of the IE is not available here */
- if (llc[-2] == BSSGP_IE_LLC_PDU && llc[-1] & 0x80) {
- /* most probably a one byte length */
- if (llc_len > 127) {
- err_info = "Cannot increase size";
- err_ctr = GBPROX_PEER_CTR_PATCH_ERR;
- goto patch_error;
- }
- llc[-1] = llc_len | 0x80;
- } else {
- llc[-2] = (llc_len >> 8) & 0x7f;
- llc[-1] = llc_len & 0xff;
- }
- *len_change += llc_len_change;
- }
- /* Note that the tp struct might contain invalid pointers here
- * if the LLC field has changed its size */
- parse_ctx->llc_len = llc_len;
- }
- return;
-
-patch_error:
- OSMO_ASSERT(err_ctr >= 0);
- rate_ctr_inc(&bvc->ctrg->ctr[err_ctr]);
- LOGPBVC(bvc, LOGL_ERROR,
- "NSE(%05u/%s) failed to patch BSSGP message as requested: %s.\n",
- msgb_nsei(msg), parse_ctx->to_bss ? "SGSN" : "BSS",
- err_info);
-}
-
-void gbproxy_clear_patch_filter(struct gbproxy_match *match)
-{
- if (match->enable) {
- regfree(&match->re_comp);
- match->enable = false;
- }
- talloc_free(match->re_str);
- match->re_str = NULL;
-}
-
-int gbproxy_set_patch_filter(struct gbproxy_match *match, const char *filter,
- const char **err_msg)
-{
- static char err_buf[300];
- int rc;
-
- gbproxy_clear_patch_filter(match);
-
- if (!filter)
- return 0;
-
- rc = regcomp(&match->re_comp, filter,
- REG_EXTENDED | REG_NOSUB | REG_ICASE);
-
- if (rc == 0) {
- match->enable = true;
- match->re_str = talloc_strdup(tall_sgsn_ctx, filter);
- return 0;
- }
-
- if (err_msg) {
- regerror(rc, &match->re_comp,
- err_buf, sizeof(err_buf));
- *err_msg = err_buf;
- }
-
- return -1;
-}
-
-int gbproxy_check_imsi(struct gbproxy_match *match,
- const uint8_t *imsi, size_t imsi_len)
-{
- int rc;
- struct osmo_mobile_identity mi;
-
- if (!match->enable)
- return 1;
-
- rc = osmo_mobile_identity_decode(&mi, imsi, imsi_len, false);
- if (rc || mi.type != GSM_MI_TYPE_IMSI) {
- LOGP(DGPRS, LOGL_NOTICE, "Invalid IMSI %s\n",
- osmo_hexdump(imsi, imsi_len));
- return -1;
- }
-
- LOGP(DGPRS, LOGL_DEBUG, "Checking IMSI '%s' (%d)\n", mi.imsi, rc);
-
- rc = regexec(&match->re_comp, mi.imsi, 0, NULL, 0);
- if (rc == REG_NOMATCH) {
- LOGP(DGPRS, LOGL_INFO,
- "IMSI '%s' doesn't match pattern '%s'\n",
- mi.imsi, match->re_str);
- return 0;
- }
-
- return 1;
-}
diff --git a/src/gbproxy/gb_proxy_peer.c b/src/gbproxy/gb_proxy_peer.c
index f5a4376c..052e5770 100644
--- a/src/gbproxy/gb_proxy_peer.c
+++ b/src/gbproxy/gb_proxy_peer.c
@@ -41,34 +41,6 @@ static const struct rate_ctr_desc bvc_ctr_description[] = {
{ "dropped", "BVC blocked, dropped packet " },
{ "inv-nsei", "NSEI mismatch " },
{ "tx-err", "NS Transmission error " },
- { "raid-mod:bss", "RAID patched (BSS )" },
- { "raid-mod:sgsn", "RAID patched (SGSN)" },
- { "apn-mod:sgsn", "APN patched " },
- { "tlli-mod:bss", "TLLI patched (BSS )" },
- { "tlli-mod:sgsn", "TLLI patched (SGSN)" },
- { "ptmsi-mod:bss", "P-TMSI patched (BSS )" },
- { "ptmsi-mod:sgsn","P-TMSI patched (SGSN)" },
- { "mod-crypt-err", "Patch error: encrypted " },
- { "mod-err", "Patch error: other " },
- { "attach-reqs", "Attach Request count " },
- { "attach-rejs", "Attach Reject count " },
- { "attach-acks", "Attach Accept count " },
- { "attach-cpls", "Attach Completed count " },
- { "ra-upd-reqs", "RoutingArea Update Request count" },
- { "ra-upd-rejs", "RoutingArea Update Reject count " },
- { "ra-upd-acks", "RoutingArea Update Accept count " },
- { "ra-upd-cpls", "RoutingArea Update Compltd count" },
- { "gmm-status", "GMM Status count (BSS)" },
- { "gmm-status", "GMM Status count (SGSN)" },
- { "detach-reqs", "Detach Request count " },
- { "detach-acks", "Detach Accept count " },
- { "pdp-act-reqs", "PDP Activation Request count " },
- { "pdp-act-rejs", "PDP Activation Reject count " },
- { "pdp-act-acks", "PDP Activation Accept count " },
- { "pdp-deact-reqs","PDP Deactivation Request count " },
- { "pdp-deact-acks","PDP Deactivation Accept count " },
- { "tlli-unknown", "TLLI from SGSN unknown " },
- { "tlli-cache", "TLLI cache size " },
};
osmo_static_assert(ARRAY_SIZE(bvc_ctr_description) == GBPROX_PEER_CTR_LAST, everything_described);
@@ -136,89 +108,6 @@ struct gbproxy_bvc *gbproxy_bvc_by_rai(struct gbproxy_config *cfg,
return NULL;
}
-/* look-up a bvc by its Location Area Identification (LAI) */
-/* FIXME: this doesn't make sense, as LA can span multiple bvcs! */
-struct gbproxy_bvc *gbproxy_bvc_by_lai(struct gbproxy_config *cfg,
- const uint8_t *la)
-{
- struct gbproxy_nse *nse;
- int i, j;
-
- hash_for_each(cfg->bss_nses, i, nse, list) {
- struct gbproxy_bvc *bvc;
- hash_for_each(nse->bvcs, j, bvc, list) {
- if (!memcmp(bvc->ra, la, 5))
- return bvc;
- }
- }
- return NULL;
-}
-
-/* look-up a bvc by its Location Area Code (LAC) */
-/* FIXME: this doesn't make sense, as LAC can span multiple bvcs! */
-struct gbproxy_bvc *gbproxy_bvc_by_lac(struct gbproxy_config *cfg,
- const uint8_t *la)
-{
- struct gbproxy_nse *nse;
- int i, j;
-
- hash_for_each(cfg->bss_nses, i, nse, list) {
- struct gbproxy_bvc *bvc;
- hash_for_each(nse->bvcs, j, bvc, list) {
- if (!memcmp(bvc->ra + 3, la + 3, 2))
- return bvc;
- }
- }
- return NULL;
-}
-
-struct gbproxy_bvc *gbproxy_bvc_by_bssgp_tlv(struct gbproxy_config *cfg,
- struct tlv_parsed *tp)
-{
- if (TLVP_PRES_LEN(tp, BSSGP_IE_BVCI, 2)) {
- uint16_t bvci;
-
- bvci = ntohs(tlvp_val16_unal(tp, BSSGP_IE_BVCI));
- if (bvci >= 2)
- return gbproxy_bvc_by_bvci(cfg, bvci);
- }
-
- /* FIXME: this doesn't make sense, as RA can span multiple bvcs! */
- if (TLVP_PRES_LEN(tp, BSSGP_IE_ROUTEING_AREA, 6)) {
- uint8_t *rai = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_ROUTEING_AREA);
- /* Only compare LAC part, since MCC/MNC are possibly patched.
- * Since the LAC of different BSS must be different when
- * MCC/MNC are patched, collisions shouldn't happen. */
- return gbproxy_bvc_by_lac(cfg, rai);
- }
-
- /* FIXME: this doesn't make sense, as LA can span multiple bvcs! */
- if (TLVP_PRES_LEN(tp, BSSGP_IE_LOCATION_AREA, 5)) {
- uint8_t *lai = (uint8_t *)TLVP_VAL(tp, BSSGP_IE_LOCATION_AREA);
- return gbproxy_bvc_by_lac(cfg, lai);
- }
-
- return NULL;
-}
-
-static void clean_stale_timer_cb(void *data)
-{
- time_t now;
- struct timespec ts = {0,};
- struct gbproxy_bvc *bvc = (struct gbproxy_bvc *) data;
- OSMO_ASSERT(bvc);
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- osmo_clock_gettime(CLOCK_MONOTONIC, &ts);
- now = ts.tv_sec;
- gbproxy_remove_stale_link_infos(bvc, now);
- if (cfg->clean_stale_timer_freq != 0)
- osmo_timer_schedule(&bvc->clean_stale_timer,
- cfg->clean_stale_timer_freq, 0);
-}
-
struct gbproxy_bvc *gbproxy_bvc_alloc(struct gbproxy_nse *nse, uint16_t bvci)
{
struct gbproxy_bvc *bvc;
@@ -240,13 +129,6 @@ struct gbproxy_bvc *gbproxy_bvc_alloc(struct gbproxy_nse *nse, uint16_t bvci)
hash_add(nse->bvcs, &bvc->list, bvc->bvci);
- INIT_LLIST_HEAD(&bvc->patch_state.logical_links);
-
- osmo_timer_setup(&bvc->clean_stale_timer, clean_stale_timer_cb, bvc);
- if (cfg->clean_stale_timer_freq != 0)
- osmo_timer_schedule(&bvc->clean_stale_timer,
- cfg->clean_stale_timer_freq, 0);
-
return bvc;
}
@@ -256,8 +138,6 @@ void gbproxy_bvc_free(struct gbproxy_bvc *bvc)
return;
hash_del(&bvc->list);
- osmo_timer_del(&bvc->clean_stale_timer);
- gbproxy_delete_link_infos(bvc);
rate_ctr_group_free(bvc->ctrg);
bvc->ctrg = NULL;
diff --git a/src/gbproxy/gb_proxy_tlli.c b/src/gbproxy/gb_proxy_tlli.c
deleted file mode 100644
index 0ea3a930..00000000
--- a/src/gbproxy/gb_proxy_tlli.c
+++ /dev/null
@@ -1,746 +0,0 @@
-/* Gb-proxy TLLI state handling */
-
-/* (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 <osmocom/gsm/gsm48.h>
-
-#include <osmocom/sgsn/gb_proxy.h>
-
-#include <osmocom/sgsn/gprs_utils.h>
-#include <osmocom/sgsn/gprs_gb_parse.h>
-
-#include <osmocom/sgsn/debug.h>
-
-#include <osmocom/gsm/gsm_utils.h>
-
-#include <osmocom/core/rate_ctr.h>
-#include <osmocom/core/talloc.h>
-
-struct gbproxy_link_info *gbproxy_link_info_by_tlli(struct gbproxy_bvc *bvc,
- uint32_t tlli)
-{
- struct gbproxy_link_info *link_info;
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- if (!tlli)
- return NULL;
-
- llist_for_each_entry(link_info, &state->logical_links, list)
- if (link_info->tlli.current == tlli ||
- link_info->tlli.assigned == tlli)
- return link_info;
-
- return NULL;
-}
-
-struct gbproxy_link_info *gbproxy_link_info_by_ptmsi(
- struct gbproxy_bvc *bvc,
- uint32_t ptmsi)
-{
- struct gbproxy_link_info *link_info;
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- if (ptmsi == GSM_RESERVED_TMSI)
- return NULL;
-
- llist_for_each_entry(link_info, &state->logical_links, list)
- if (link_info->tlli.ptmsi == ptmsi)
- return link_info;
-
- return NULL;
-}
-
-struct gbproxy_link_info *gbproxy_link_info_by_any_sgsn_tlli(
- struct gbproxy_bvc *bvc,
- uint32_t tlli)
-{
- struct gbproxy_link_info *link_info;
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- if (!tlli)
- return NULL;
-
- /* Don't care about the NSEI */
- llist_for_each_entry(link_info, &state->logical_links, list)
- if (link_info->sgsn_tlli.current == tlli ||
- link_info->sgsn_tlli.assigned == tlli)
- return link_info;
-
- return NULL;
-}
-
-struct gbproxy_link_info *gbproxy_link_info_by_sgsn_tlli(
- struct gbproxy_bvc *bvc,
- uint32_t tlli, uint32_t sgsn_nsei)
-{
- struct gbproxy_link_info *link_info;
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- if (!tlli)
- return NULL;
-
- llist_for_each_entry(link_info, &state->logical_links, list)
- if ((link_info->sgsn_tlli.current == tlli ||
- link_info->sgsn_tlli.assigned == tlli) &&
- link_info->sgsn_nsei == sgsn_nsei)
- return link_info;
-
- return NULL;
-}
-
-struct gbproxy_link_info *gbproxy_link_info_by_imsi(
- struct gbproxy_bvc *bvc,
- const uint8_t *imsi,
- size_t imsi_len)
-{
- struct gbproxy_link_info *link_info;
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- if (!gprs_is_mi_imsi(imsi, imsi_len))
- return NULL;
-
- llist_for_each_entry(link_info, &state->logical_links, list) {
- if (link_info->imsi_len != imsi_len)
- continue;
- if (memcmp(link_info->imsi, imsi, imsi_len) != 0)
- continue;
-
- return link_info;
- }
-
- return NULL;
-}
-
-void gbproxy_link_info_discard_messages(struct gbproxy_link_info *link_info)
-{
- struct msgb *msg, *nxt;
-
- llist_for_each_entry_safe(msg, nxt, &link_info->stored_msgs, list) {
- llist_del(&msg->list);
- msgb_free(msg);
- }
-}
-
-void gbproxy_delete_link_info(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info)
-{
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- gbproxy_link_info_discard_messages(link_info);
-
- llist_del(&link_info->list);
- talloc_free(link_info);
- state->logical_link_count -= 1;
-
- bvc->ctrg->ctr[GBPROX_PEER_CTR_TLLI_CACHE_SIZE].current =
- state->logical_link_count;
-}
-
-void gbproxy_delete_link_infos(struct gbproxy_bvc *bvc)
-{
- struct gbproxy_link_info *link_info, *nxt;
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- llist_for_each_entry_safe(link_info, nxt, &state->logical_links, list)
- gbproxy_delete_link_info(bvc, link_info);
-
- OSMO_ASSERT(state->logical_link_count == 0);
- OSMO_ASSERT(llist_empty(&state->logical_links));
-}
-
-void gbproxy_attach_link_info(struct gbproxy_bvc *bvc, time_t now,
- struct gbproxy_link_info *link_info)
-{
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- link_info->timestamp = now;
- llist_add(&link_info->list, &state->logical_links);
- state->logical_link_count += 1;
-
- bvc->ctrg->ctr[GBPROX_PEER_CTR_TLLI_CACHE_SIZE].current =
- state->logical_link_count;
-}
-
-int gbproxy_remove_stale_link_infos(struct gbproxy_bvc *bvc, time_t now)
-{
- OSMO_ASSERT(bvc);
- struct gbproxy_patch_state *state = &bvc->patch_state;
- int exceeded_max_len = 0;
- int deleted_count = 0;
- int check_for_age;
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- if (cfg->tlli_max_len > 0)
- exceeded_max_len =
- state->logical_link_count - cfg->tlli_max_len;
-
- check_for_age = cfg->tlli_max_age > 0;
-
- for (; exceeded_max_len > 0; exceeded_max_len--) {
- struct gbproxy_link_info *link_info;
- OSMO_ASSERT(!llist_empty(&state->logical_links));
- link_info = llist_entry(state->logical_links.prev,
- struct gbproxy_link_info,
- list);
- LOGPBVC(bvc, LOGL_INFO,
- "Removing TLLI %08x from list "
- "(stale, length %d, max_len exceeded)\n",
- link_info->tlli.current, state->logical_link_count);
-
- gbproxy_delete_link_info(bvc, link_info);
- deleted_count += 1;
- }
-
- while (check_for_age && !llist_empty(&state->logical_links)) {
- time_t age;
- struct gbproxy_link_info *link_info;
- link_info = llist_entry(state->logical_links.prev,
- struct gbproxy_link_info,
- list);
- age = now - link_info->timestamp;
- /* age < 0 only happens after system time jumps, discard entry */
- if (age <= cfg->tlli_max_age && age >= 0) {
- check_for_age = 0;
- continue;
- }
-
- LOGPBVC(bvc, LOGL_INFO,
- "Removing TLLI %08x from list "
- "(stale, age %d, max_age exceeded)\n",
- link_info->tlli.current, (int)age);
-
- gbproxy_delete_link_info(bvc, link_info);
- deleted_count += 1;
- }
-
- return deleted_count;
-}
-
-struct gbproxy_link_info *gbproxy_link_info_alloc( struct gbproxy_bvc *bvc)
-{
- struct gbproxy_link_info *link_info;
-
- link_info = talloc_zero(bvc, struct gbproxy_link_info);
- link_info->tlli.ptmsi = GSM_RESERVED_TMSI;
- link_info->sgsn_tlli.ptmsi = GSM_RESERVED_TMSI;
-
- link_info->vu_gen_tx_bss = GBPROXY_INIT_VU_GEN_TX;
-
- INIT_LLIST_HEAD(&link_info->stored_msgs);
-
- return link_info;
-}
-
-void gbproxy_detach_link_info(
- struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info)
-{
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- llist_del(&link_info->list);
- OSMO_ASSERT(state->logical_link_count > 0);
- state->logical_link_count -= 1;
-
- bvc->ctrg->ctr[GBPROX_PEER_CTR_TLLI_CACHE_SIZE].current =
- state->logical_link_count;
-}
-
-void gbproxy_update_link_info(struct gbproxy_link_info *link_info,
- const uint8_t *imsi, size_t imsi_len)
-{
- if (!gprs_is_mi_imsi(imsi, imsi_len))
- return;
-
- link_info->imsi_len = imsi_len;
- link_info->imsi =
- talloc_realloc_size(link_info, link_info->imsi, imsi_len);
- OSMO_ASSERT(link_info->imsi != NULL);
- memcpy(link_info->imsi, imsi, imsi_len);
-}
-
-void gbproxy_reassign_tlli(struct gbproxy_tlli_state *tlli_state,
- struct gbproxy_bvc *bvc, uint32_t new_tlli)
-{
- OSMO_ASSERT(bvc);
- if (new_tlli == tlli_state->current)
- return;
-
- LOGPBVC(bvc, LOGL_INFO,
- "The TLLI has been reassigned from %08x to %08x\n",
- tlli_state->current, new_tlli);
-
- /* Remember assigned TLLI */
- tlli_state->assigned = new_tlli;
- tlli_state->bss_validated = false;
- tlli_state->net_validated = false;
-}
-
-uint32_t gbproxy_map_tlli(uint32_t other_tlli,
- struct gbproxy_link_info *link_info, int to_bss)
-{
- uint32_t tlli = 0;
- struct gbproxy_tlli_state *src, *dst;
- if (to_bss) {
- src = &link_info->sgsn_tlli;
- dst = &link_info->tlli;
- } else {
- src = &link_info->tlli;
- dst = &link_info->sgsn_tlli;
- }
- if (src->current == other_tlli)
- tlli = dst->current;
- else if (src->assigned == other_tlli)
- tlli = dst->assigned;
-
- return tlli;
-}
-
-static void gbproxy_validate_tlli(struct gbproxy_tlli_state *tlli_state,
- uint32_t tlli, int to_bss)
-{
- LOGP(DGPRS, LOGL_DEBUG,
- "%s({current = %08x, assigned = %08x, net_vld = %d, bss_vld = %d}, %08x)\n",
- __func__, tlli_state->current, tlli_state->assigned,
- tlli_state->net_validated, tlli_state->bss_validated, tlli);
-
- if (!tlli_state->assigned || tlli_state->assigned != tlli)
- return;
-
- /* TODO: Is this ok? Check spec */
- if (gprs_tlli_type(tlli) != TLLI_LOCAL)
- return;
-
- /* See GSM 04.08, 4.7.1.5 */
- if (to_bss)
- tlli_state->net_validated = true;
- else
- tlli_state->bss_validated = true;
-
- if (!tlli_state->bss_validated || !tlli_state->net_validated)
- return;
-
- LOGP(DGPRS, LOGL_INFO,
- "The TLLI %08x has been validated (was %08x)\n",
- tlli_state->assigned, tlli_state->current);
-
- tlli_state->current = tlli;
- tlli_state->assigned = 0;
-}
-
-static void gbproxy_touch_link_info(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info,
- time_t now)
-{
- gbproxy_detach_link_info(bvc, link_info);
- gbproxy_attach_link_info(bvc, now, link_info);
-}
-
-static int gbproxy_unregister_link_info(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info)
-{
- OSMO_ASSERT(bvc);
- if (!link_info)
- return 1;
-
- if (link_info->tlli.ptmsi == GSM_RESERVED_TMSI && !link_info->imsi_len) {
- LOGPBVC(bvc, LOGL_INFO,
- "Removing TLLI %08x from list (P-TMSI or IMSI are not set)\n",
- link_info->tlli.current);
- gbproxy_delete_link_info(bvc, link_info);
- return 1;
- }
-
- link_info->tlli.current = 0;
- link_info->tlli.assigned = 0;
- link_info->sgsn_tlli.current = 0;
- link_info->sgsn_tlli.assigned = 0;
-
- link_info->is_deregistered = true;
-
- gbproxy_reset_link(link_info);
-
- return 0;
-}
-
-int gbproxy_imsi_matches(struct gbproxy_config *cfg,
- enum gbproxy_match_id match_id,
- struct gbproxy_link_info *link_info)
-{
- struct gbproxy_match *match;
- OSMO_ASSERT(match_id >= 0 && match_id < ARRAY_SIZE(cfg->matches));
-
- match = &cfg->matches[match_id];
- if (!match->enable)
- return 1;
-
- return link_info != NULL && link_info->is_matching[match_id];
-}
-
-static void gbproxy_assign_imsi(struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info,
- struct gprs_gb_parse_context *parse_ctx)
-{
- int imsi_matches;
- struct gbproxy_link_info *other_link_info;
- enum gbproxy_match_id match_id;
- OSMO_ASSERT(bvc);
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- /* Make sure that there is a second entry with the same IMSI */
- other_link_info = gbproxy_link_info_by_imsi(
- bvc, parse_ctx->imsi, parse_ctx->imsi_len);
-
- if (other_link_info && other_link_info != link_info) {
- struct osmo_mobile_identity mi;
- if (osmo_mobile_identity_decode(&mi, parse_ctx->imsi, parse_ctx->imsi_len, false)
- || mi.type != GSM_MI_TYPE_IMSI) {
- LOGPBVC(bvc, LOGL_ERROR, "Failed to decode Mobile Identity\n");
- } else {
- LOGPBVC(bvc, LOGL_INFO,
- "Removing TLLI %08x from list (IMSI %s re-used)\n",
- other_link_info->tlli.current, mi.imsi);
- gbproxy_delete_link_info(bvc, other_link_info);
- }
- }
-
- /* Update the IMSI field */
- gbproxy_update_link_info(link_info,
- parse_ctx->imsi, parse_ctx->imsi_len);
-
- /* Check, whether the IMSI matches */
- OSMO_ASSERT(ARRAY_SIZE(link_info->is_matching) ==
- ARRAY_SIZE(cfg->matches));
- for (match_id = 0; match_id < ARRAY_SIZE(link_info->is_matching);
- ++match_id) {
- imsi_matches = gbproxy_check_imsi(
- &cfg->matches[match_id],
- parse_ctx->imsi, parse_ctx->imsi_len);
- if (imsi_matches >= 0)
- link_info->is_matching[match_id] = imsi_matches ? true : false;
- }
-}
-
-static int gbproxy_tlli_match(const struct gbproxy_tlli_state *a,
- const struct gbproxy_tlli_state *b)
-{
- if (a->current && a->current == b->current)
- return 1;
-
- if (a->assigned && a->assigned == b->assigned)
- return 1;
-
- if (a->ptmsi != GSM_RESERVED_TMSI && a->ptmsi == b->ptmsi)
- return 1;
-
- return 0;
-}
-
-static void gbproxy_remove_matching_link_infos(
- struct gbproxy_bvc *bvc, struct gbproxy_link_info *link_info)
-{
- OSMO_ASSERT(bvc);
- struct gbproxy_link_info *info, *nxt;
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
- /* Make sure that there is no second entry with the same P-TMSI or TLLI */
- llist_for_each_entry_safe(info, nxt, &state->logical_links, list) {
- if (info == link_info)
- continue;
-
- if (!gbproxy_tlli_match(&link_info->tlli, &info->tlli) &&
- (link_info->sgsn_nsei != info->sgsn_nsei ||
- !gbproxy_tlli_match(&link_info->sgsn_tlli, &info->sgsn_tlli)))
- continue;
-
- LOGPBVC(bvc, LOGL_INFO,
- "Removing TLLI %08x from list (P-TMSI/TLLI re-used)\n",
- info->tlli.current);
- gbproxy_delete_link_info(bvc, info);
- }
-}
-
-static struct gbproxy_link_info *gbproxy_get_link_info_ul(
- struct gbproxy_bvc *bvc,
- int *tlli_is_valid,
- struct gprs_gb_parse_context *parse_ctx)
-{
- struct gbproxy_link_info *link_info = NULL;
-
- if (parse_ctx->tlli_enc) {
- link_info = gbproxy_link_info_by_tlli(bvc, parse_ctx->tlli);
-
- if (link_info) {
- *tlli_is_valid = 1;
- return link_info;
- }
- }
-
- *tlli_is_valid = 0;
-
- if (!link_info && parse_ctx->imsi) {
- link_info = gbproxy_link_info_by_imsi(
- bvc, parse_ctx->imsi, parse_ctx->imsi_len);
- }
-
- if (!link_info && parse_ctx->ptmsi_enc && !parse_ctx->old_raid_is_foreign) {
- uint32_t bss_ptmsi;
- gprs_parse_tmsi(parse_ctx->ptmsi_enc, &bss_ptmsi);
- link_info = gbproxy_link_info_by_ptmsi(bvc, bss_ptmsi);
- }
-
- if (!link_info)
- return NULL;
-
- link_info->is_deregistered = false;
-
- return link_info;
-}
-
-struct gbproxy_link_info *gbproxy_update_link_state_ul(
- struct gbproxy_bvc *bvc,
- time_t now,
- struct gprs_gb_parse_context *parse_ctx)
-{
- struct gbproxy_link_info *link_info;
- int tlli_is_valid;
- OSMO_ASSERT(bvc);
-
- link_info = gbproxy_get_link_info_ul(bvc, &tlli_is_valid, parse_ctx);
-
- if (parse_ctx->tlli_enc && parse_ctx->llc) {
- uint32_t sgsn_tlli;
-
- if (!link_info) {
- LOGPBVC(bvc, LOGL_INFO, "Adding TLLI %08x to list\n",
- parse_ctx->tlli);
- link_info = gbproxy_link_info_alloc(bvc);
- gbproxy_attach_link_info(bvc, now, link_info);
-
- /* Setup TLLIs */
- sgsn_tlli = gbproxy_make_sgsn_tlli(bvc, link_info,
- parse_ctx->tlli);
- link_info->sgsn_tlli.current = sgsn_tlli;
- link_info->tlli.current = parse_ctx->tlli;
- } else if (!tlli_is_valid) {
- /* New TLLI (info found by IMSI or P-TMSI) */
- link_info->tlli.current = parse_ctx->tlli;
- link_info->tlli.assigned = 0;
- link_info->sgsn_tlli.current =
- gbproxy_make_sgsn_tlli(bvc, link_info,
- parse_ctx->tlli);
- link_info->sgsn_tlli.assigned = 0;
- gbproxy_touch_link_info(bvc, link_info, now);
- } else {
- sgsn_tlli = gbproxy_map_tlli(parse_ctx->tlli, link_info, 0);
- if (!sgsn_tlli)
- sgsn_tlli = gbproxy_make_sgsn_tlli(bvc, link_info,
- parse_ctx->tlli);
-
- gbproxy_validate_tlli(&link_info->tlli,
- parse_ctx->tlli, 0);
- gbproxy_validate_tlli(&link_info->sgsn_tlli,
- sgsn_tlli, 0);
- gbproxy_touch_link_info(bvc, link_info, now);
- }
- } else if (link_info) {
- gbproxy_touch_link_info(bvc, link_info, now);
- }
-
- if (parse_ctx->imsi && link_info && link_info->imsi_len == 0)
- gbproxy_assign_imsi(bvc, link_info, parse_ctx);
-
- return link_info;
-}
-
-static struct gbproxy_link_info *gbproxy_get_link_info_dl(
- struct gbproxy_bvc *bvc,
- struct gprs_gb_parse_context *parse_ctx)
-{
- struct gbproxy_link_info *link_info = NULL;
-
- /* Which key to use depends on its availability only, if that fails, do
- * not retry it with another key (e.g. IMSI). */
- if (parse_ctx->tlli_enc)
- link_info = gbproxy_link_info_by_sgsn_tlli(bvc, parse_ctx->tlli,
- parse_ctx->peer_nsei);
-
- /* TODO: Get link_info by (SGSN) P-TMSI if that is available (see
- * GSM 08.18, 7.2) instead of using the IMSI as key. */
- else if (parse_ctx->imsi)
- link_info = gbproxy_link_info_by_imsi(
- bvc, parse_ctx->imsi, parse_ctx->imsi_len);
-
- if (link_info)
- link_info->is_deregistered = false;
-
- return link_info;
-}
-
-struct gbproxy_link_info *gbproxy_update_link_state_dl(
- struct gbproxy_bvc *bvc,
- time_t now,
- struct gprs_gb_parse_context *parse_ctx)
-{
- struct gbproxy_link_info *link_info = NULL;
- OSMO_ASSERT(bvc);
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- link_info = gbproxy_get_link_info_dl(bvc, parse_ctx);
-
- if (parse_ctx->tlli_enc && parse_ctx->new_ptmsi_enc && link_info) {
- /* A new P-TMSI has been signalled in the message,
- * register new TLLI */
- uint32_t new_sgsn_ptmsi;
- uint32_t new_bss_ptmsi = GSM_RESERVED_TMSI;
- gprs_parse_tmsi(parse_ctx->new_ptmsi_enc, &new_sgsn_ptmsi);
-
- if (link_info->sgsn_tlli.ptmsi == new_sgsn_ptmsi)
- new_bss_ptmsi = link_info->tlli.ptmsi;
-
- if (new_bss_ptmsi == GSM_RESERVED_TMSI)
- new_bss_ptmsi = gbproxy_make_bss_ptmsi(bvc, new_sgsn_ptmsi);
-
- LOGPBVC(bvc, LOGL_INFO,
- "Got new PTMSI %08x from SGSN, using %08x for BSS\n",
- new_sgsn_ptmsi, new_bss_ptmsi);
- /* Setup PTMSIs */
- link_info->sgsn_tlli.ptmsi = new_sgsn_ptmsi;
- link_info->tlli.ptmsi = new_bss_ptmsi;
- } else if (parse_ctx->tlli_enc && parse_ctx->new_ptmsi_enc && !link_info &&
- !cfg->patch_ptmsi) {
- /* A new P-TMSI has been signalled in the message with an unknown
- * TLLI, create a new link_info */
- /* TODO: Add a test case for this branch */
- uint32_t new_ptmsi;
- gprs_parse_tmsi(parse_ctx->new_ptmsi_enc, &new_ptmsi);
-
- LOGPBVC(bvc, LOGL_INFO,
- "Adding TLLI %08x to list (SGSN, new P-TMSI is %08x)\n",
- parse_ctx->tlli, new_ptmsi);
-
- link_info = gbproxy_link_info_alloc(bvc);
- link_info->sgsn_tlli.current = parse_ctx->tlli;
- link_info->tlli.current = parse_ctx->tlli;
- link_info->sgsn_tlli.ptmsi = new_ptmsi;
- link_info->tlli.ptmsi = new_ptmsi;
- gbproxy_attach_link_info(bvc, now, link_info);
- } else if (parse_ctx->tlli_enc && parse_ctx->llc && !link_info &&
- !cfg->patch_ptmsi) {
- /* Unknown SGSN TLLI, create a new link_info */
- uint32_t new_ptmsi;
- link_info = gbproxy_link_info_alloc(bvc);
- LOGPBVC(bvc, LOGL_INFO, "Adding TLLI %08x to list (SGSN)\n",
- parse_ctx->tlli);
-
- gbproxy_attach_link_info(bvc, now, link_info);
-
- /* Setup TLLIs */
- link_info->sgsn_tlli.current = parse_ctx->tlli;
- link_info->tlli.current = parse_ctx->tlli;
-
- if (!parse_ctx->new_ptmsi_enc)
- return link_info;
- /* A new P-TMSI has been signalled in the message */
-
- gprs_parse_tmsi(parse_ctx->new_ptmsi_enc, &new_ptmsi);
- LOGPBVC(bvc, LOGL_INFO,
- "Assigning new P-TMSI %08x\n", new_ptmsi);
- /* Setup P-TMSIs */
- link_info->sgsn_tlli.ptmsi = new_ptmsi;
- link_info->tlli.ptmsi = new_ptmsi;
- } else if (parse_ctx->tlli_enc && parse_ctx->llc && link_info) {
- uint32_t bss_tlli = gbproxy_map_tlli(parse_ctx->tlli,
- link_info, 1);
- gbproxy_validate_tlli(&link_info->sgsn_tlli, parse_ctx->tlli, 1);
- gbproxy_validate_tlli(&link_info->tlli, bss_tlli, 1);
- gbproxy_touch_link_info(bvc, link_info, now);
- } else if (link_info) {
- gbproxy_touch_link_info(bvc, link_info, now);
- }
-
- if (parse_ctx->imsi && link_info && link_info->imsi_len == 0)
- gbproxy_assign_imsi(bvc, link_info, parse_ctx);
-
- return link_info;
-}
-
-int gbproxy_update_link_state_after(
- struct gbproxy_bvc *bvc,
- struct gbproxy_link_info *link_info,
- time_t now,
- struct gprs_gb_parse_context *parse_ctx)
-{
- int rc = 0;
- OSMO_ASSERT(bvc);
- OSMO_ASSERT(bvc->nse);
- struct gbproxy_config *cfg = bvc->nse->cfg;
- OSMO_ASSERT(cfg);
-
- if (parse_ctx->invalidate_tlli && link_info) {
- int keep_info =
- cfg->keep_link_infos == GBPROX_KEEP_ALWAYS ||
- (cfg->keep_link_infos == GBPROX_KEEP_REATTACH &&
- parse_ctx->await_reattach) ||
- (cfg->keep_link_infos == GBPROX_KEEP_IDENTIFIED &&
- link_info->imsi_len > 0);
- if (keep_info) {
- LOGPBVC(bvc, LOGL_INFO, "Unregistering TLLI %08x\n",
- link_info->tlli.current);
- rc = gbproxy_unregister_link_info(bvc, link_info);
- } else {
- LOGPBVC(bvc, LOGL_INFO, "Removing TLLI %08x from list\n",
- link_info->tlli.current);
- gbproxy_delete_link_info(bvc, link_info);
- rc = 1;
- }
- } else if (parse_ctx->to_bss && parse_ctx->tlli_enc &&
- parse_ctx->new_ptmsi_enc && link_info) {
- /* A new PTMSI has been signaled in the message,
- * register new TLLI */
- uint32_t new_sgsn_ptmsi = link_info->sgsn_tlli.ptmsi;
- uint32_t new_bss_ptmsi = link_info->tlli.ptmsi;
- uint32_t new_sgsn_tlli;
- uint32_t new_bss_tlli = 0;
-
- new_sgsn_tlli = gprs_tmsi2tlli(new_sgsn_ptmsi, TLLI_LOCAL);
- if (new_bss_ptmsi != GSM_RESERVED_TMSI)
- new_bss_tlli = gprs_tmsi2tlli(new_bss_ptmsi, TLLI_LOCAL);
- LOGPBVC(bvc, LOGL_INFO,
- "Assigning new TLLI %08x to SGSN, %08x to BSS\n",
- new_sgsn_tlli, new_bss_tlli);
-
- gbproxy_reassign_tlli(&link_info->sgsn_tlli,
- bvc, new_sgsn_tlli);
- gbproxy_reassign_tlli(&link_info->tlli,
- bvc, new_bss_tlli);
- gbproxy_remove_matching_link_infos(bvc, link_info);
- }
-
- gbproxy_remove_stale_link_infos(bvc, now);
-
- return rc;
-}
-
-
diff --git a/src/gbproxy/gb_proxy_vty.c b/src/gbproxy/gb_proxy_vty.c
index 47ac9b9a..da5710a7 100644
--- a/src/gbproxy/gb_proxy_vty.c
+++ b/src/gbproxy/gb_proxy_vty.c
@@ -54,20 +54,6 @@ static struct cmd_node gbproxy_node = {
1,
};
-static const struct value_string keep_modes[] = {
- {GBPROX_KEEP_NEVER, "never"},
- {GBPROX_KEEP_REATTACH, "re-attach"},
- {GBPROX_KEEP_IDENTIFIED, "identified"},
- {GBPROX_KEEP_ALWAYS, "always"},
- {0, NULL}
-};
-
-static const struct value_string match_ids[] = {
- {GBPROX_MATCH_PATCHING, "patching"},
- {GBPROX_MATCH_ROUTING, "routing"},
- {0, NULL}
-};
-
static void gbprox_vty_print_bvc(struct vty *vty, struct gbproxy_bvc *bvc)
{
struct gprs_ra_id raid;
@@ -83,62 +69,11 @@ static void gbprox_vty_print_bvc(struct vty *vty, struct gbproxy_bvc *bvc)
static int config_write_gbproxy(struct vty *vty)
{
- enum gbproxy_match_id match_id;
-
vty_out(vty, "gbproxy%s", VTY_NEWLINE);
vty_out(vty, " sgsn nsei %u%s", g_cfg->nsip_sgsn_nsei,
VTY_NEWLINE);
- if (g_cfg->core_plmn.mcc > 0)
- vty_out(vty, " core-mobile-country-code %s%s",
- osmo_mcc_name(g_cfg->core_plmn.mcc), VTY_NEWLINE);
- if (g_cfg->core_plmn.mnc > 0)
- vty_out(vty, " core-mobile-network-code %s%s",
- osmo_mnc_name(g_cfg->core_plmn.mnc, g_cfg->core_plmn.mnc_3_digits), VTY_NEWLINE);
-
- for (match_id = 0; match_id < ARRAY_SIZE(g_cfg->matches); ++match_id) {
- struct gbproxy_match *match = &g_cfg->matches[match_id];
- if (match->re_str)
- vty_out(vty, " match-imsi %s %s%s",
- get_value_string(match_ids, match_id),
- match->re_str, VTY_NEWLINE);
- }
-
- if (g_cfg->core_apn != NULL) {
- if (g_cfg->core_apn_size > 0) {
- char str[500] = {0};
- vty_out(vty, " core-access-point-name %s%s",
- osmo_apn_to_str(str, g_cfg->core_apn,
- g_cfg->core_apn_size),
- VTY_NEWLINE);
- } else {
- vty_out(vty, " core-access-point-name none%s",
- VTY_NEWLINE);
- }
- }
-
- if (g_cfg->route_to_sgsn2)
- vty_out(vty, " secondary-sgsn nsei %u%s", g_cfg->nsip_sgsn2_nsei,
- VTY_NEWLINE);
-
- if (g_cfg->clean_stale_timer_freq > 0)
- vty_out(vty, " link-list clean-stale-timer %u%s",
- g_cfg->clean_stale_timer_freq, VTY_NEWLINE);
- if (g_cfg->tlli_max_age > 0)
- vty_out(vty, " link-list max-age %d%s",
- g_cfg->tlli_max_age, VTY_NEWLINE);
- if (g_cfg->tlli_max_len > 0)
- vty_out(vty, " link-list max-length %d%s",
- g_cfg->tlli_max_len, VTY_NEWLINE);
- vty_out(vty, " link-list keep-mode %s%s",
- get_value_string(keep_modes, g_cfg->keep_link_infos),
- VTY_NEWLINE);
- if (g_cfg->stored_msgs_max_len > 0)
- vty_out(vty, " link stored-msgs-max-length %"PRIu32"%s",
- g_cfg->stored_msgs_max_len, VTY_NEWLINE);
-
-
return CMD_SUCCESS;
}
@@ -160,387 +95,10 @@ DEFUN(cfg_nsip_sgsn_nsei,
{
unsigned int nsei = atoi(argv[0]);
- if (g_cfg->route_to_sgsn2 && g_cfg->nsip_sgsn2_nsei == nsei) {
- vty_out(vty, "SGSN NSEI %d conflicts with secondary SGSN NSEI%s",
- nsei, VTY_NEWLINE);
- return CMD_WARNING;
- }
-
g_cfg->nsip_sgsn_nsei = nsei;
return CMD_SUCCESS;
}
-#define GBPROXY_CORE_MNC_STR "Use this network code for the core network\n"
-
-DEFUN(cfg_gbproxy_core_mnc,
- cfg_gbproxy_core_mnc_cmd,
- "core-mobile-network-code <1-999>",
- GBPROXY_CORE_MNC_STR "NCC value\n")
-{
- uint16_t mnc;
- bool mnc_3_digits;
- if (osmo_mnc_from_str(argv[0], &mnc, &mnc_3_digits)) {
- vty_out(vty, "%% Invalid MNC: %s%s", argv[0], VTY_NEWLINE);
- return CMD_WARNING;
- }
- g_cfg->core_plmn.mnc = mnc;
- g_cfg->core_plmn.mnc_3_digits = mnc_3_digits;
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_no_core_mnc,
- cfg_gbproxy_no_core_mnc_cmd,
- "no core-mobile-network-code",
- NO_STR GBPROXY_CORE_MNC_STR)
-{
- g_cfg->core_plmn.mnc = 0;
- g_cfg->core_plmn.mnc_3_digits = false;
- return CMD_SUCCESS;
-}
-
-#define GBPROXY_CORE_MCC_STR "Use this country code for the core network\n"
-
-DEFUN(cfg_gbproxy_core_mcc,
- cfg_gbproxy_core_mcc_cmd,
- "core-mobile-country-code <1-999>",
- GBPROXY_CORE_MCC_STR "MCC value\n")
-{
- g_cfg->core_plmn.mcc = atoi(argv[0]);
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_no_core_mcc,
- cfg_gbproxy_no_core_mcc_cmd,
- "no core-mobile-country-code",
- NO_STR GBPROXY_CORE_MCC_STR)
-{
- g_cfg->core_plmn.mcc = 0;
- return CMD_SUCCESS;
-}
-
-#define GBPROXY_MATCH_IMSI_STR "Restrict actions to certain IMSIs\n"
-
-DEFUN(cfg_gbproxy_match_imsi,
- cfg_gbproxy_match_imsi_cmd,
- "match-imsi (patching|routing) .REGEXP",
- GBPROXY_MATCH_IMSI_STR
- "Patch MS related information elements on match only\n"
- "Route to the secondary SGSN on match only\n"
- "Regular expression for the IMSI match\n")
-{
- const char *filter = argv[1];
- const char *err_msg = NULL;
- struct gbproxy_match *match;
- enum gbproxy_match_id match_id = get_string_value(match_ids, argv[0]);
-
- OSMO_ASSERT(match_id >= GBPROX_MATCH_PATCHING &&
- match_id < GBPROX_MATCH_LAST);
- match = &g_cfg->matches[match_id];
-
- if (gbproxy_set_patch_filter(match, filter, &err_msg) != 0) {
- vty_out(vty, "Match expression invalid: %s%s",
- err_msg, VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- g_cfg->acquire_imsi = true;
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_no_match_imsi,
- cfg_gbproxy_no_match_imsi_cmd,
- "no match-imsi",
- NO_STR GBPROXY_MATCH_IMSI_STR)
-{
- enum gbproxy_match_id match_id;
-
- for (match_id = 0; match_id < ARRAY_SIZE(g_cfg->matches); ++match_id)
- gbproxy_clear_patch_filter(&g_cfg->matches[match_id]);
-
- g_cfg->acquire_imsi = false;
-
- return CMD_SUCCESS;
-}
-
-#define GBPROXY_CORE_APN_STR "Use this access point name (APN) for the backbone\n"
-#define GBPROXY_CORE_APN_ARG_STR "Replace APN by this string\n" "Remove APN\n"
-
-static int set_core_apn(struct vty *vty, const char *apn)
-{
- int apn_len;
-
- if (!apn) {
- talloc_free(g_cfg->core_apn);
- g_cfg->core_apn = NULL;
- g_cfg->core_apn_size = 0;
- return CMD_SUCCESS;
- }
-
- apn_len = strlen(apn);
-
- if (apn_len >= 100) {
- vty_out(vty, "APN string too long (max 99 chars)%s",
- VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- if (apn_len == 0) {
- talloc_free(g_cfg->core_apn);
- /* TODO: replace NULL */
- g_cfg->core_apn = talloc_zero_size(NULL, 2);
- g_cfg->core_apn_size = 0;
- } else {
- /* TODO: replace NULL */
- g_cfg->core_apn =
- talloc_realloc_size(NULL, g_cfg->core_apn, apn_len + 1);
- g_cfg->core_apn_size =
- gprs_str_to_apn(g_cfg->core_apn, apn_len + 1, apn);
- }
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_core_apn,
- cfg_gbproxy_core_apn_cmd,
- "core-access-point-name (APN|none)",
- GBPROXY_CORE_APN_STR GBPROXY_CORE_APN_ARG_STR)
-{
- if (strcmp(argv[0], "none") == 0)
- return set_core_apn(vty, "");
- else
- return set_core_apn(vty, argv[0]);
-}
-
-DEFUN(cfg_gbproxy_no_core_apn,
- cfg_gbproxy_no_core_apn_cmd,
- "no core-access-point-name",
- NO_STR GBPROXY_CORE_APN_STR)
-{
- return set_core_apn(vty, NULL);
-}
-
-/* TODO: Remove the patch-ptmsi command, since P-TMSI patching is enabled
- * automatically when needed. This command is only left for manual testing
- * (e.g. doing P-TMSI patching without using a secondary SGSN)
- */
-#define GBPROXY_PATCH_PTMSI_STR "Patch P-TMSI/TLLI\n"
-
-DEFUN(cfg_gbproxy_patch_ptmsi,
- cfg_gbproxy_patch_ptmsi_cmd,
- "patch-ptmsi",
- GBPROXY_PATCH_PTMSI_STR)
-{
- g_cfg->patch_ptmsi = true;
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_no_patch_ptmsi,
- cfg_gbproxy_no_patch_ptmsi_cmd,
- "no patch-ptmsi",
- NO_STR GBPROXY_PATCH_PTMSI_STR)
-{
- g_cfg->patch_ptmsi = false;
-
- return CMD_SUCCESS;
-}
-
-/* TODO: Remove the acquire-imsi command, since that feature is enabled
- * automatically when IMSI matching is enabled. This command is only left for
- * manual testing (e.g. doing IMSI acquisition without IMSI based patching)
- */
-#define GBPROXY_ACQUIRE_IMSI_STR "Acquire the IMSI before establishing a LLC connection (Experimental)\n"
-
-DEFUN(cfg_gbproxy_acquire_imsi,
- cfg_gbproxy_acquire_imsi_cmd,
- "acquire-imsi",
- GBPROXY_ACQUIRE_IMSI_STR)
-{
- g_cfg->acquire_imsi = true;
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_no_acquire_imsi,
- cfg_gbproxy_no_acquire_imsi_cmd,
- "no acquire-imsi",
- NO_STR GBPROXY_ACQUIRE_IMSI_STR)
-{
- g_cfg->acquire_imsi = false;
-
- return CMD_SUCCESS;
-}
-
-#define GBPROXY_SECOND_SGSN_STR "Route matching LLC connections to a second SGSN (Experimental)\n"
-
-DEFUN(cfg_gbproxy_secondary_sgsn,
- cfg_gbproxy_secondary_sgsn_cmd,
- "secondary-sgsn nsei <0-65534>",
- GBPROXY_SECOND_SGSN_STR
- "NSEI to be used in the connection with the SGSN\n"
- "The NSEI\n")
-{
- unsigned int nsei = atoi(argv[0]);
-
- if (g_cfg->nsip_sgsn_nsei == nsei) {
- vty_out(vty, "Secondary SGSN NSEI %d conflicts with primary SGSN NSEI%s",
- nsei, VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- g_cfg->route_to_sgsn2 = true;
- g_cfg->nsip_sgsn2_nsei = nsei;
-
- g_cfg->patch_ptmsi = true;
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_no_secondary_sgsn,
- cfg_gbproxy_no_secondary_sgsn_cmd,
- "no secondary-sgsn",
- NO_STR GBPROXY_SECOND_SGSN_STR)
-{
- g_cfg->route_to_sgsn2 = false;
- g_cfg->nsip_sgsn2_nsei = 0xFFFF;
-
- g_cfg->patch_ptmsi = false;
-
- return CMD_SUCCESS;
-}
-
-#define GBPROXY_LINK_LIST_STR "Set TLLI list parameters\n"
-#define GBPROXY_LINK_STR "Set TLLI parameters\n"
-
-#define GBPROXY_CLEAN_STALE_TIMER_STR "Periodic timer to clean stale links\n"
-
-DEFUN(cfg_gbproxy_link_list_clean_stale_timer,
- cfg_gbproxy_link_list_clean_stale_timer_cmd,
- "link-list clean-stale-timer <1-999999>",
- GBPROXY_LINK_LIST_STR GBPROXY_CLEAN_STALE_TIMER_STR
- "Frequency at which the periodic timer is fired (in seconds)\n")
-{
- struct gbproxy_nse *nse;
- int i, j;
- g_cfg->clean_stale_timer_freq = (unsigned int) atoi(argv[0]);
-
- /* Re-schedule running timers soon in case prev frequency was really big
- and new frequency is desired to be lower. After initial run, periodic
- time is used. Use random() to avoid firing timers for all bvcs at
- the same time */
- hash_for_each(g_cfg->bss_nses, i, nse, list) {
- struct gbproxy_bvc *bvc;
- hash_for_each(nse->bvcs, j, bvc, list)
- osmo_timer_schedule(&bvc->clean_stale_timer,
- random() % 5, random() % 1000000);
- }
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_link_list_no_clean_stale_timer,
- cfg_gbproxy_link_list_no_clean_stale_timer_cmd,
- "no link-list clean-stale-timer",
- NO_STR GBPROXY_LINK_LIST_STR GBPROXY_CLEAN_STALE_TIMER_STR)
-
-{
- struct gbproxy_nse *nse;
- int i, j;
- g_cfg->clean_stale_timer_freq = 0;
-
- hash_for_each(g_cfg->bss_nses, i, nse, list) {
- struct gbproxy_bvc *bvc;
- hash_for_each(nse->bvcs, j, bvc, list)
- osmo_timer_del(&bvc->clean_stale_timer);
- }
-
- return CMD_SUCCESS;
-}
-
-#define GBPROXY_MAX_AGE_STR "Limit maximum age\n"
-
-DEFUN(cfg_gbproxy_link_list_max_age,
- cfg_gbproxy_link_list_max_age_cmd,
- "link-list max-age <1-999999>",
- GBPROXY_LINK_LIST_STR GBPROXY_MAX_AGE_STR
- "Maximum age in seconds\n")
-{
- g_cfg->tlli_max_age = atoi(argv[0]);
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_link_list_no_max_age,
- cfg_gbproxy_link_list_no_max_age_cmd,
- "no link-list max-age",
- NO_STR GBPROXY_LINK_LIST_STR GBPROXY_MAX_AGE_STR)
-{
- g_cfg->tlli_max_age = 0;
-
- return CMD_SUCCESS;
-}
-
-#define GBPROXY_MAX_LEN_STR "Limit list length\n"
-
-DEFUN(cfg_gbproxy_link_list_max_len,
- cfg_gbproxy_link_list_max_len_cmd,
- "link-list max-length <1-99999>",
- GBPROXY_LINK_LIST_STR GBPROXY_MAX_LEN_STR
- "Maximum number of logical links in the list\n")
-{
- g_cfg->tlli_max_len = atoi(argv[0]);
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_link_list_no_max_len,
- cfg_gbproxy_link_list_no_max_len_cmd,
- "no link-list max-length",
- NO_STR GBPROXY_LINK_LIST_STR GBPROXY_MAX_LEN_STR)
-{
- g_cfg->tlli_max_len = 0;
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_link_list_keep_mode,
- cfg_gbproxy_link_list_keep_mode_cmd,
- "link-list keep-mode (never|re-attach|identified|always)",
- GBPROXY_LINK_LIST_STR "How to keep entries for detached logical links\n"
- "Discard entry immediately after detachment\n"
- "Keep entry if a re-attachment has be requested\n"
- "Keep entry if it associated with an IMSI\n"
- "Don't discard entries after detachment\n")
-{
- int val = get_string_value(keep_modes, argv[0]);
- OSMO_ASSERT(val >= GBPROX_KEEP_NEVER && val <= GBPROX_KEEP_ALWAYS);
- g_cfg->keep_link_infos = val;
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_link_stored_msgs_max_len,
- cfg_gbproxy_link_stored_msgs_max_len_cmd,
- "link stored-msgs-max-length <1-99999>",
- GBPROXY_LINK_STR GBPROXY_MAX_LEN_STR
- "Maximum number of msgb stored in the logical link waiting to acquire its IMSI\n")
-{
- g_cfg->stored_msgs_max_len = (uint32_t) atoi(argv[0]);
-
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_gbproxy_link_no_stored_msgs_max_len,
- cfg_gbproxy_link_no_stored_msgs_max_len_cmd,
- "no link stored-msgs-max-length",
- NO_STR GBPROXY_LINK_STR GBPROXY_MAX_LEN_STR)
-{
- g_cfg->stored_msgs_max_len = 0;
-
- return CMD_SUCCESS;
-}
-
static void log_set_bvc_filter(struct log_target *target,
const uint16_t *bvci)
{
@@ -603,52 +161,12 @@ DEFUN(show_gbproxy_links, show_gbproxy_links_cmd, "show gbproxy links",
SHOW_STR "Display information about the Gb proxy\n" "Show logical links\n")
{
struct gbproxy_nse *nse;
- time_t now;
- struct timespec ts = {0,};
int i, j;
- osmo_clock_gettime(CLOCK_MONOTONIC, &ts);
- now = ts.tv_sec;
-
hash_for_each(g_cfg->bss_nses, i, nse, list) {
struct gbproxy_bvc *bvc;
hash_for_each(nse->bvcs, j, bvc, list) {
- struct gbproxy_link_info *link_info;
- struct gbproxy_patch_state *state = &bvc->patch_state;
-
gbprox_vty_print_bvc(vty, bvc);
-
- llist_for_each_entry(link_info, &state->logical_links, list) {
- time_t age = now - link_info->timestamp;
- struct osmo_mobile_identity mi;
- const char *imsi_str;
-
- 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)";
- }
- vty_out(vty, " TLLI %08x, IMSI %s, AGE %d",
- link_info->tlli.current, imsi_str, (int)age);
-
- if (link_info->stored_msgs_len)
- vty_out(vty, ", STORED %"PRIu32"/%"PRIu32,
- link_info->stored_msgs_len,
- g_cfg->stored_msgs_max_len);
-
- if (g_cfg->route_to_sgsn2)
- vty_out(vty, ", SGSN NSEI %d",
- link_info->sgsn_nsei);
-
- if (link_info->is_deregistered)
- vty_out(vty, ", DE-REGISTERED");
-
- vty_out(vty, "%s", VTY_NEWLINE);
- }
}
}
return CMD_SUCCESS;
@@ -744,182 +262,6 @@ DEFUN(delete_gb_nsei, delete_gb_nsei_cmd,
return CMD_SUCCESS;
}
-#define GBPROXY_DELETE_LINK_STR \
- "Delete a GBProxy logical link entry by NSEI and identification\nNSEI number\n"
-
-DEFUN(delete_gb_link_by_id, delete_gb_link_by_id_cmd,
- "delete-gbproxy-link <0-65534> (tlli|imsi|sgsn-nsei) IDENT",
- GBPROXY_DELETE_LINK_STR
- "Delete entries with a matching TLLI (hex)\n"
- "Delete entries with a matching IMSI\n"
- "Delete entries with a matching SGSN NSEI\n"
- "Identification to match\n")
-{
- const uint16_t nsei = atoi(argv[0]);
- enum {MATCH_TLLI = 't', MATCH_IMSI = 'i', MATCH_SGSN = 's'} match;
- uint32_t ident = 0;
- const char *imsi = NULL;
- struct gbproxy_bvc *bvc = 0;
- struct gbproxy_link_info *link_info, *nxt;
- struct gbproxy_patch_state *state;
- int found = 0;
-
- match = argv[1][0];
-
- switch (match) {
- case MATCH_TLLI: ident = strtoll(argv[2], NULL, 16); break;
- case MATCH_IMSI: imsi = argv[2]; break;
- case MATCH_SGSN: ident = strtoll(argv[2], NULL, 0); break;
- };
-
- bvc = gbproxy_bvc_by_nsei(g_cfg, nsei);
- if (!bvc) {
- vty_out(vty, "Didn't find bvc with NSEI %d%s",
- nsei, VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- state = &bvc->patch_state;
-
- llist_for_each_entry_safe(link_info, nxt, &state->logical_links, list) {
- struct osmo_mobile_identity mi;
-
- switch (match) {
- case MATCH_TLLI:
- if (link_info->tlli.current != ident)
- continue;
- break;
- case MATCH_SGSN:
- if (link_info->sgsn_nsei != ident)
- continue;
- break;
- case MATCH_IMSI:
- if (!link_info->imsi)
- continue;
- if (osmo_mobile_identity_decode(&mi, link_info->imsi, link_info->imsi_len, false)
- || mi.type != GSM_MI_TYPE_IMSI)
- continue;
- if (strcmp(mi.imsi, imsi) != 0)
- continue;
- break;
- }
-
- vty_out(vty, "Deleting link with TLLI %08x%s", link_info->tlli.current,
- VTY_NEWLINE);
- gbproxy_delete_link_info(bvc, link_info);
- found += 1;
- }
-
- if (!found && argc >= 2) {
- vty_out(vty, "Didn't find link entry with %s %s%s",
- argv[1], argv[2], VTY_NEWLINE);
- }
-
- return CMD_SUCCESS;
-}
-
-DEFUN(delete_gb_link, delete_gb_link_cmd,
- "delete-gbproxy-link <0-65534> (stale|de-registered)",
- GBPROXY_DELETE_LINK_STR
- "Delete stale entries\n"
- "Delete de-registered entries\n")
-{
- const uint16_t nsei = atoi(argv[0]);
- enum {MATCH_STALE = 's', MATCH_DEREGISTERED = 'd'} match;
- struct gbproxy_bvc *bvc = 0;
- struct gbproxy_link_info *link_info, *nxt;
- struct gbproxy_patch_state *state;
- time_t now;
- struct timespec ts = {0,};
-
- int found = 0;
-
- match = argv[1][0];
-
- bvc = gbproxy_bvc_by_nsei(g_cfg, nsei);
- if (!bvc) {
- vty_out(vty, "Didn't find bvc with NSEI %d%s",
- nsei, VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- state = &bvc->patch_state;
-
- osmo_clock_gettime(CLOCK_MONOTONIC, &ts);
- now = ts.tv_sec;
-
- if (match == MATCH_STALE) {
- found = gbproxy_remove_stale_link_infos(bvc, now);
- if (found)
- vty_out(vty, "Deleted %d stale logical link%s%s",
- found, found == 1 ? "" : "s", VTY_NEWLINE);
- } else {
- llist_for_each_entry_safe(link_info, nxt,
- &state->logical_links, list) {
- if (!link_info->is_deregistered)
- continue;
-
- gbproxy_delete_link_info(bvc, link_info);
- found += 1;
- }
- }
-
- if (found)
- vty_out(vty, "Deleted %d %s logical link%s%s",
- found, argv[1], found == 1 ? "" : "s", VTY_NEWLINE);
-
- return CMD_SUCCESS;
-}
-
-/*
- * legacy commands to provide an upgrade path from "broken" releases
- * or pre-releases
- */
-DEFUN_DEPRECATED(cfg_gbproxy_broken_apn_match,
- cfg_gbproxy_broken_apn_match_cmd,
- "core-access-point-name none match-imsi .REGEXP",
- GBPROXY_CORE_APN_STR GBPROXY_MATCH_IMSI_STR "Remove APN\n"
- "Patch MS related information elements on match only\n"
- "Route to the secondary SGSN on match only\n"
- "Regular expression for the IMSI match\n")
-{
- const char *filter = argv[0];
- const char *err_msg = NULL;
- struct gbproxy_match *match;
- enum gbproxy_match_id match_id = get_string_value(match_ids, "patching");
-
- /* apply APN none */
- set_core_apn(vty, "");
-
- /* do the matching... with copy and paste */
- OSMO_ASSERT(match_id >= GBPROX_MATCH_PATCHING &&
- match_id < GBPROX_MATCH_LAST);
- match = &g_cfg->matches[match_id];
-
- if (gbproxy_set_patch_filter(match, filter, &err_msg) != 0) {
- vty_out(vty, "Match expression invalid: %s%s",
- err_msg, VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- g_cfg->acquire_imsi = true;
-
- return CMD_SUCCESS;
-}
-
-#define GBPROXY_TLLI_LIST_STR "Set TLLI list parameters\n"
-#define GBPROXY_MAX_LEN_STR "Limit list length\n"
-DEFUN_DEPRECATED(cfg_gbproxy_depr_tlli_list_max_len,
- cfg_gbproxy_depr_tlli_list_max_len_cmd,
- "tlli-list max-length <1-99999>",
- GBPROXY_TLLI_LIST_STR GBPROXY_MAX_LEN_STR
- "Maximum number of TLLIs in the list\n")
-{
- g_cfg->tlli_max_len = atoi(argv[0]);
-
- return CMD_SUCCESS;
-}
-
int gbproxy_vty_init(void)
{
install_element_ve(&show_gbproxy_cmd);
@@ -928,39 +270,10 @@ int gbproxy_vty_init(void)
install_element(ENABLE_NODE, &delete_gb_bvci_cmd);
install_element(ENABLE_NODE, &delete_gb_nsei_cmd);
- install_element(ENABLE_NODE, &delete_gb_link_by_id_cmd);
- install_element(ENABLE_NODE, &delete_gb_link_cmd);
install_element(CONFIG_NODE, &cfg_gbproxy_cmd);
install_node(&gbproxy_node, config_write_gbproxy);
install_element(GBPROXY_NODE, &cfg_nsip_sgsn_nsei_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_core_mcc_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_core_mnc_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_match_imsi_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_core_apn_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_secondary_sgsn_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_patch_ptmsi_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_acquire_imsi_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_list_clean_stale_timer_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_list_max_age_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_list_max_len_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_list_keep_mode_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_stored_msgs_max_len_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_no_core_mcc_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_no_core_mnc_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_no_match_imsi_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_no_core_apn_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_no_secondary_sgsn_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_no_patch_ptmsi_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_no_acquire_imsi_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_list_no_clean_stale_timer_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_list_no_max_age_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_list_no_max_len_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_link_no_stored_msgs_max_len_cmd);
-
- /* broken or deprecated to allow an upgrade path */
- install_element(GBPROXY_NODE, &cfg_gbproxy_broken_apn_match_cmd);
- install_element(GBPROXY_NODE, &cfg_gbproxy_depr_tlli_list_max_len_cmd);
return 0;
}
diff --git a/tests/gbproxy/Makefile.am b/tests/gbproxy/Makefile.am
index b9585acc..180cceec 100644
--- a/tests/gbproxy/Makefile.am
+++ b/tests/gbproxy/Makefile.am
@@ -33,9 +33,7 @@ gbproxy_test_LDFLAGS = \
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 \
diff --git a/tests/gbproxy/gbproxy_test.c b/tests/gbproxy/gbproxy_test.c
index c47bb34f..d7479cc1 100644
--- a/tests/gbproxy/gbproxy_test.c
+++ b/tests/gbproxy/gbproxy_test.c
@@ -133,8 +133,6 @@ static int dump_peers(FILE *stream, int indent, time_t now,
struct gbproxy_bvc *peer;
int _peer;
hash_for_each(nse->bvcs, _peer, peer, 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",
@@ -161,67 +159,6 @@ static int dump_peers(FILE *stream, int indent, time_t now,
}
}
- 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;
@@ -234,244 +171,6 @@ const uint8_t *convert_ra(struct gprs_ra_id *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
-};
-
#define NS_ALLOC_HEADROOM 128
#define NS_ALLOC_SIZE 3072
static int gprs_ns2_callback(struct osmo_prim_hdr *oph, void *ctx);
@@ -549,106 +248,6 @@ int gprs_ns2_recv_prim(struct gprs_ns2_inst *nsi, struct osmo_prim_hdr *oph)
return 0;
}
-static void send_bssgp_ul_unitdata(
- struct gprs_ns2_inst *nsi, const char *text,
- uint16_t nsei, 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",
- nsei, nsbvci, msg, bssgp_msg_size);
-}
-
-static void send_bssgp_dl_unitdata(
- struct gprs_ns2_inst *nsi, const char *text,
- uint16_t nsei, 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",
- nsei, nsbvci, msg, bssgp_msg_size);
-}
-
static void send_bssgp_reset(struct gprs_ns2_inst *nsi,
uint16_t nsei, uint16_t bvci)
{
@@ -682,232 +281,6 @@ static void send_bssgp_reset_ack(struct gprs_ns2_inst *nsi,
send_ns_unitdata(nsi, "BVC_RESET_ACK", nsei, 0, msg, sizeof(msg));
}
-static void send_bssgp_suspend(struct gprs_ns2_inst *nsi,
- uint16_t nsei,
- 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", nsei, 0, msg, sizeof(msg));
-}
-
-static void send_bssgp_suspend_ack(struct gprs_ns2_inst *nsi,
- uint16_t nsei,
- 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", nsei, 0, msg, sizeof(msg));
-}
-
-static void send_bssgp_llc_discarded(struct gprs_ns2_inst *nsi,
- uint16_t nsei,
- 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", nsei, 0, msg, sizeof(msg));
-}
-
-static void send_bssgp_paging(struct gprs_ns2_inst *nsi,
- uint16_t nsei,
- 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", nsei, 0, msg, bssgp_msg_size);
-}
-
-static void send_bssgp_flow_control_bvc(struct gprs_ns2_inst *nsi,
- uint16_t nsei,
- 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", nsei, bvci,
- msg, sizeof(msg));
-}
-
-static void send_bssgp_flow_control_bvc_ack(struct gprs_ns2_inst *nsi,
- uint16_t nsei,
- 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", nsei, bvci,
- msg, sizeof(msg));
-}
-
-static void send_llc_ul_ui(
- struct gprs_ns2_inst *nsi, const char *text,
- uint16_t nsei, 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",
- nsei, nsbvci, tlli, raid, cell_id,
- llc_msg, llc_msg_size);
-}
-
-static void send_llc_dl_ui(
- struct gprs_ns2_inst *nsi, const char *text,
- uint16_t nsei, 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",
- nsei, nsbvci, tlli,
- with_racap_drx, imsi, imsi_size,
- llc_msg, llc_msg_size);
-}
-
-
/* STATUS indications */
static void send_ns_avail(struct gprs_ns2_inst *nsi,
uint16_t sgsn_nsei)
@@ -967,8 +340,6 @@ static int gbprox_test_bssgp_send_cb(void *ctx, struct msgb *msg)
if (nsei == cfg->nsip_sgsn_nsei)
printf("Message for SGSN");
- else if (nsei == cfg->nsip_sgsn2_nsei)
- printf("Message for SGSN2");
else
printf("Message for BSS");
printf(" (NSEI=%d BVCI=%d):\n%s\n\n", nsei, bvci, msgb_hexdump(msg));
@@ -1045,149 +416,6 @@ static int gprs_ns2_callback(struct osmo_prim_hdr *oph, void *ctx)
return gprs_ns2_prim_cb(oph, ctx);
}
-/* 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 test_gbproxy()
{
struct gprs_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
@@ -1394,3274 +622,6 @@ static void test_gbproxy_ident_changes()
nsi = NULL;
}
-static void test_gbproxy_ra_patching()
-{
- struct gprs_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
- 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_bvc *peer;
- LLIST_HEAD(rcv_list);
- struct expect_result *expect_res;
-
- uint16_t bss_nsei[1] = { 0x1000 };
-
- OSMO_ASSERT(local_tlli == gprs_tmsi2tlli(ptmsi, TLLI_LOCAL));
-
- gbcfg.nsi = 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;
-
- bssgp_set_bssgp_callback(gbprox_test_bssgp_send_cb, &gbcfg);
-
- 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_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, bss_nsei[0]);
-
- received_messages = &rcv_list;
-
- setup_bssgp(nsi, bss_nsei[0], 0x1002);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- peer = gbproxy_bvc_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_NSEI, 0x1002);
-
- OSMO_ASSERT(expect_bssgp_msg(0x1000, 0, BSSGP_PDUT_BVC_RESET_ACK));
-
- send_bssgp_suspend(nsi, bss_nsei[0], 0xccd1758b, &rai_bss);
-
- OSMO_ASSERT(expect_bssgp_msg(SGSN_NSEI, 0, BSSGP_PDUT_SUSPEND));
-
- send_bssgp_suspend_ack(nsi, SGSN_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_bvc_by_rai(&gbcfg, convert_ra(&rai_bss)) != NULL);
- OSMO_ASSERT(gbproxy_bvc_by_rai(&gbcfg, convert_ra(&rai_sgsn)) == NULL);
- OSMO_ASSERT(gbproxy_bvc_by_rai(&gbcfg, convert_ra(&rai_unknown)) == NULL);
-
- OSMO_ASSERT(gbproxy_bvc_by_lai(&gbcfg, convert_ra(&rai_bss)) != NULL);
- OSMO_ASSERT(gbproxy_bvc_by_lai(&gbcfg, convert_ra(&rai_sgsn)) == NULL);
- OSMO_ASSERT(gbproxy_bvc_by_lai(&gbcfg, convert_ra(&rai_unknown)) == NULL);
-
- OSMO_ASSERT(gbproxy_bvc_by_lac(&gbcfg, convert_ra(&rai_bss)) != NULL);
- OSMO_ASSERT(gbproxy_bvc_by_lac(&gbcfg, convert_ra(&rai_sgsn)) != NULL);
- OSMO_ASSERT(gbproxy_bvc_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_nsei[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_nsei[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_NSEI, 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_nsei[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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_nsei[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_nsei[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_NSEI, 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_ns2_free(nsi);
- nsi = NULL;
-}
-
-static void test_gbproxy_ptmsi_assignment()
-{
- struct gprs_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
- 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_bvc *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
-
- uint16_t bss_nsei[1] = { 0x1000 };
-
- OSMO_ASSERT(local_tlli == gprs_tmsi2tlli(ptmsi, TLLI_LOCAL));
-
- gbcfg.nsi = 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;
-
- bssgp_set_bssgp_callback(gbprox_test_bssgp_send_cb, &gbcfg);
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, bss_nsei[0]);
- setup_bssgp(nsi, bss_nsei[0], 0x1002);
-
- peer = gbproxy_bvc_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, SGSN_NSEI, 0x1002);
-
- 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_ns2_free(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static void test_gbproxy_ptmsi_patching()
-{
- struct gprs_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
- 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_bvc *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
- int old_ctr;
-
- uint16_t bss_nsei[1] = { 0x1000 };
-
- 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));
-
- gbcfg.nsi = 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;
-
- bssgp_set_bssgp_callback(gbprox_test_bssgp_send_cb, &gbcfg);
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, bss_nsei[0]);
- setup_bssgp(nsi, bss_nsei[0], 0x1002);
-
- peer = gbproxy_bvc_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, SGSN_NSEI, 0x1002);
-
- 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[0], 0x1002,
- local_bss_tlli3, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend(nsi, bss_nsei[0], local_bss_tlli3, &rai_bss);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend_ack(nsi, SGSN_NSEI, 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_NSEI, 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_nsei[0], 0xeee1,
- local_bss_tlli3, 1, 12);
- dump_global(stdout, 0);
-
- /* Bad case: Invalid RAI */
- send_bssgp_suspend_ack(nsi, SGSN_NSEI, local_sgsn_tlli3, &rai_unknown);
-
- dump_global(stdout, 0);
-
- /* Bad case: Invalid MCC (LAC ok) */
- send_bssgp_suspend_ack(nsi, SGSN_NSEI, 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_NSEI, 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_NSEI, 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_nsei[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_NSEI, 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_ns2_free(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static void test_gbproxy_ptmsi_patching_bad_cases()
-{
- struct gprs_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
- 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_bvc *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
- uint16_t bss_nsei[] = { 0x1000 };
-
- OSMO_ASSERT(local_sgsn_tlli == gprs_tmsi2tlli(sgsn_ptmsi, TLLI_LOCAL));
- OSMO_ASSERT(local_bss_tlli == gprs_tmsi2tlli(bss_ptmsi, TLLI_LOCAL));
-
- gbcfg.nsi = 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;
-
- bssgp_set_bssgp_callback(gbprox_test_bssgp_send_cb, &gbcfg);
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, bss_nsei[0]);
- setup_bssgp(nsi, bss_nsei[0], 0x1002);
-
- peer = gbproxy_bvc_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, SGSN_NSEI, 0x1002);
-
- 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_ns2_free(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-
-static void test_gbproxy_imsi_acquisition()
-{
- struct gprs_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
- 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_bvc *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
- uint16_t bss_nsei[] = { 0x1000 };
-
- OSMO_ASSERT(local_sgsn_tlli == gprs_tmsi2tlli(sgsn_ptmsi, TLLI_LOCAL));
-
- gbcfg.nsi = 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;
-
- bssgp_set_bssgp_callback(gbprox_test_bssgp_send_cb, &gbcfg);
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, bss_nsei[0]);
- setup_bssgp(nsi, bss_nsei[0], 0x1002);
-
- peer = gbproxy_bvc_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, SGSN_NSEI, 0x1002);
-
- 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[0], 0x1002,
- local_bss_tlli, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_llc_discarded(nsi, SGSN_NSEI, 0x1002,
- local_sgsn_tlli, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend(nsi, bss_nsei[0], local_bss_tlli, &rai_bss);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend_ack(nsi, SGSN_NSEI, local_sgsn_tlli, &rai_sgsn);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- /* Bad case: Invalid BVCI */
- send_bssgp_llc_discarded(nsi, bss_nsei[0], 0xeee1,
- local_bss_tlli, 1, 12);
- dump_global(stdout, 0);
-
- /* Bad case: Invalid RAI */
- send_bssgp_suspend_ack(nsi, SGSN_NSEI, local_sgsn_tlli, &rai_unknown);
-
- dump_global(stdout, 0);
-
- /* Bad case: Invalid MCC (LAC ok) */
- send_bssgp_suspend_ack(nsi, SGSN_NSEI, local_sgsn_tlli,
- &rai_wrong_mcc_sgsn);
-
- dump_global(stdout, 0);
-
- /* Detach */
- send_llc_ul_ui(nsi, "DETACH REQ", bss_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_nsei[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_nsei[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_nsei[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_nsei[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_nsei[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_ns2_free(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static void test_gbproxy_secondary_sgsn()
-{
- struct gprs_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
- 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_bvc *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
-
- const char *err_msg = NULL;
- const char *filter_re = "999999";
- uint16_t bss_nsei[] = { 0x1000 };
-
- OSMO_ASSERT(local_sgsn_tlli == gprs_tmsi2tlli(sgsn_ptmsi, TLLI_LOCAL));
- OSMO_ASSERT(local_sgsn_tlli2 == gprs_tmsi2tlli(sgsn_ptmsi2, TLLI_LOCAL));
-
- gbcfg.nsi = 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);
- }
-
- bssgp_set_bssgp_callback(gbprox_test_bssgp_send_cb, &gbcfg);
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN 1 ---\n\n");
-
- connect_sgsn(nsi, SGSN_NSEI);
-
- printf("--- Initialise SGSN 2 ---\n\n");
-
- connect_sgsn(nsi, SGSN2_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, bss_nsei[0]);
- setup_bssgp(nsi, bss_nsei[0], 0x0);
- send_bssgp_reset_ack(nsi, SGSN_NSEI, 0x0);
- setup_bssgp(nsi, bss_nsei[0], 0x1002);
- send_bssgp_reset_ack(nsi, SGSN_NSEI, 0x1002);
- send_bssgp_reset_ack(nsi, SGSN2_NSEI, 0x1002);
-
- peer = gbproxy_bvc_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- dump_global(stdout, 0);
- dump_peers(stdout, 0, 0, &gbcfg);
-
- printf("--- Flow control ---\n\n");
-
- send_bssgp_flow_control_bvc(nsi, bss_nsei[0], 0x1002, 1);
- send_bssgp_flow_control_bvc_ack(nsi, SGSN_NSEI, 0x1002, 1);
- send_bssgp_flow_control_bvc_ack(nsi, SGSN2_NSEI, 0x1002, 1);
-
- printf("--- Establish GPRS connection (SGSN 1) ---\n\n");
-
- send_llc_ul_ui(nsi, "ATTACH REQUEST", bss_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[0], 0x1002,
- local_bss_tlli, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_llc_discarded(nsi, SGSN_NSEI, 0x1002,
- local_sgsn_tlli, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend(nsi, bss_nsei[0], local_bss_tlli, &rai_bss);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend_ack(nsi, SGSN_NSEI, 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_nsei[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_nsei[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", SGSN2_NSEI, 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_nsei[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", SGSN2_NSEI, 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_nsei[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", SGSN2_NSEI, 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_nsei[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)", SGSN2_NSEI, 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_nsei[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)", SGSN2_NSEI, 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_nsei[0], 0x1002,
- local_bss_tlli2, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_llc_discarded(nsi, SGSN2_NSEI, 0x1002,
- local_sgsn_tlli2, 1, 12);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend(nsi, bss_nsei[0], local_bss_tlli2, &rai_bss);
-
- dump_peers(stdout, 0, 0, &gbcfg);
-
- send_bssgp_suspend_ack(nsi, SGSN2_NSEI, 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_nsei[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_nsei[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", SGSN2_NSEI, 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_nsei[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)", SGSN2_NSEI, 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_nsei[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", SGSN2_NSEI, 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_nsei[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_NSEI, 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_nsei[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", SGSN2_NSEI, 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_nsei[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", SGSN2_NSEI, 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_ns2_free(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-static void test_gbproxy_keep_info()
-{
- struct gprs_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
- 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_bvc *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
- uint16_t bss_nsei[] = { 0x1000 };
-
- LLIST_HEAD(rcv_list);
-
- OSMO_ASSERT(local_tlli == gprs_tmsi2tlli(ptmsi, TLLI_LOCAL));
-
- gbcfg.nsi = 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;
-
- bssgp_set_bssgp_callback(gbprox_test_bssgp_send_cb, &gbcfg);
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, bss_nsei[0]);
- setup_bssgp(nsi, bss_nsei[0], 0x1002);
-
- peer = gbproxy_bvc_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, SGSN_NSEI, 0x1002);
-
- 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_NSEI, 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_nsei[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_nsei[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_nsei[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_NSEI, 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_nsei[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_nsei[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_nsei[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_NSEI, 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_nsei[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_ns2_free(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
-struct gbproxy_link_info *register_tlli(
- struct gbproxy_bvc *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->nse->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_nse *nse;
- struct gbproxy_bvc *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);
- nse = gbproxy_nse_by_nsei_or_new(&cfg, 0);
-
- 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_bvc_alloc(nse, 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_bvc_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_bvc_alloc(nse, 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_bvc_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_bvc_alloc(nse, 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_bvc_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_bvc_alloc(nse, 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_bvc_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_bvc_alloc(nse, 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_bvc_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_ns2_inst *nsi = gprs_ns2_instantiate(tall_sgsn_ctx, gprs_ns2_callback, &gbcfg);
- 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_bvc *peer;
- unsigned bss_nu = 0;
- unsigned sgsn_nu = 0;
- uint16_t bss_nsei[] = { 0x1000 };
-
- OSMO_ASSERT(local_tlli == gprs_tmsi2tlli(ptmsi, TLLI_LOCAL));
-
- gbcfg.nsi = 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;
-
- bssgp_set_bssgp_callback(gbprox_test_bssgp_send_cb, &gbcfg);
-
- printf("=== %s ===\n", __func__);
- printf("--- Initialise SGSN ---\n\n");
-
- connect_sgsn(nsi, SGSN_NSEI);
-
- printf("--- Initialise BSS 1 ---\n\n");
-
- setup_ns(nsi, bss_nsei[0]);
- setup_bssgp(nsi, bss_nsei[0], 0x1002);
-
- peer = gbproxy_bvc_by_nsei(&gbcfg, 0x1000);
- OSMO_ASSERT(peer != NULL);
-
- send_bssgp_reset_ack(nsi, SGSN_NSEI, 0x1002);
-
- 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_nsei[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_NSEI, 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_nsei[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_nsei[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_ns2_free(nsi);
- nsi = NULL;
-
- cleanup_test();
-}
-
/* See OS#3178 "gbproxy: failed to parse invalid BSSGP-UNITDATA message" */
static void test_gbproxy_parse_bssgp_unitdata()
{
@@ -4784,16 +744,6 @@ int main(int argc, char **argv)
gbproxy_init_config(&gbcfg);
test_gbproxy();
test_gbproxy_ident_changes();
- test_gbproxy_ra_patching();
- test_gbproxy_imsi_matching();
- test_gbproxy_ptmsi_assignment();
- 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. */
diff --git a/tests/gbproxy/gbproxy_test.ok b/tests/gbproxy/gbproxy_test.ok
index 978d91fa..75bea984 100644
--- a/tests/gbproxy/gbproxy_test.ok
+++ b/tests/gbproxy/gbproxy_test.ok
@@ -38,7 +38,6 @@ Message for SGSN (NSEI=256 BVCI=0):
Peers:
NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
PROCESSING BVC_RESET_ACK from NSEI 256
23 04 82 10 02
@@ -82,9 +81,7 @@ Message for SGSN (NSEI=256 BVCI=0):
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 NSEI 256
23 04 82 20 02
@@ -115,11 +112,8 @@ Message for SGSN (NSEI=256 BVCI=0):
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
NSEI 4096, BVCI 4114, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
PROCESSING BVC_RESET_ACK from NSEI 256
23 04 82 10 12
@@ -150,11 +144,8 @@ Message for SGSN (NSEI=256 BVCI=0):
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
NSEI 4096, BVCI 4114, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
PROCESSING BVC_RESET_ACK from NSEI 256
23 04 82 10 02
@@ -185,11 +176,8 @@ Message for SGSN (NSEI=256 BVCI=0):
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
NSEI 4096, BVCI 4114, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
PROCESSING BVC_RESET_ACK from NSEI 256
23 04 82 10 02
@@ -305,11 +293,8 @@ Message for SGSN (NSEI=256 BVCI=0):
Peers:
NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- TLLI-Cache: 0
NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
NSEI 4096, BVCI 4114, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
Gbproxy global:
PROCESSING BVC_RESET_ACK from NSEI 256
23 04 82 10 02
@@ -365,9 +350,7 @@ Message for SGSN (NSEI=256 BVCI=0):
Peers:
NSEI 8192, BVCI 8194, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- TLLI-Cache: 0
NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
Gbproxy global:
Invalid BVC Identifier : 1
=== test_gbproxy_ident_changes ===
@@ -423,7 +406,6 @@ Message for BSS (NSEI=4096 BVCI=0):
Peers:
NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
--- Setup BVCI 2 ---
Setup BSSGP: BVCI 0x2002(8194)
@@ -454,9 +436,7 @@ Message for BSS (NSEI=4096 BVCI=0):
Peers:
NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
--- Send message from BSS 1 to SGSN and back, BVCI 1 ---
PROCESSING (null) from NSEI 4096
@@ -555,9 +535,7 @@ Message for BSS (NSEI=8192 BVCI=0):
Peers:
NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- TLLI-Cache: 0
NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
- TLLI-Cache: 0
--- Setup BVCI 3 ---
Setup BSSGP: BVCI 0x3002(12290)
@@ -589,11 +567,8 @@ Message for BSS (NSEI=8192 BVCI=0):
Peers:
NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- 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
- TLLI-Cache: 0
--- Send message from BSS 1 to SGSN and back, BVCI 1 ---
PROCESSING (null) from NSEI 8192
@@ -637,12 +612,9 @@ Message for SGSN (NSEI=256 BVCI=8194):
Peers:
NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- 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
- TLLI-Cache: 0
PROCESSING (null) from NSEI 256
@@ -658,12 +630,9 @@ Message for BSS (NSEI=4096 BVCI=8194):
Peers:
NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- 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
- TLLI-Cache: 0
--- Send message from BSS 1 to SGSN and back, BVCI 3 ---
PROCESSING (null) from NSEI 4096
@@ -694,5232 +663,9 @@ Gbproxy global:
Peers:
NSEI 8192, BVCI 4098, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- TLLI-Cache: 0
NSEI 8192, BVCI 12290, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- TLLI-Cache: 0
NSEI 4096, BVCI 8194, not blocked, RAI 112-332-16464-96
NSEI mismatch : 1
- TLLI-Cache: 0
-=== test_gbproxy_ra_patching ===
---- Initialise SGSN ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-Message for SGSN (NSEI=256 BVCI=0):
-22 04 82 00 00 07 81 08
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: NSEI 0x1000(4096)
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- RAID patched (BSS ): 1
- TLLI-Cache: 0
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-NS2 UD REQUEST, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 23 04 82 10 02
-
-PROCESSING BVC_SUSPEND from NSEI 4096
-0b 1f 84 cc d1 75 8b 1b 86 11 22 33 40 50 60
-
-NS2 CALLBACK, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 cc d1 75 8b 1b 86 11 22 33 40 50 60
-
-NS2 UD REQUEST, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 cc d1 75 8b 1b 86 21 63 54 40 50 60
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 0b 1f 84 cc d1 75 8b 1b 86 21 63 54 40 50 60
-
-PROCESSING BVC_SUSPEND_ACK from NSEI 256
-0c 1f 84 cc d1 75 8b 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 cc d1 75 8b 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 cc d1 75 8b 1b 86 11 22 33 40 50 60 1d 81 01
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 0c 1f 84 cc d1 75 8b 1b 86 11 22 33 40 50 60 1d 81 01
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING IDENT REQUEST from NSEI 256
-00 bb c5 46 79 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 bb c5 46 79 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 bb c5 46 79 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 bb c5 46 79 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-PROCESSING IDENT RESPONSE from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING ATTACH ACCEPT from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING ATTACH COMPLETE from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING ACT PDP CTX REQ (REPLACE APN) from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 76, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 81, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING GMM INFO from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING ACT PDP CTX REQ (REPLACE APN) from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 76, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 81, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING ACT PDP CTX REQ (REMOVE APN) from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 76, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 71, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING DETACH ACC from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 85, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 85, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING RA UPD ACC from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 87, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 87, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING ACT PDP CTX REQ (REMOVE APN) from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 76, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 71, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-TLLI is already detached, shouldn't patch
-PROCESSING ACT PDP CTX REQ from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 76, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 76, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-Invalid RAI, shouldn't patch
-PROCESSING BVC_SUSPEND_ACK from NSEI 256
-0c 1f 84 cc d1 75 8b 1b 86 00 f1 99 00 63 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 cc d1 75 8b 1b 86 00 f1 99 00 63 60 1d 81 01
-
-Message for SGSN (NSEI=256 BVCI=0):
-41 07 81 21 15 92 0c 1f 84 cc d1 75 8b 1b 86 00 f1 99 00 63 60 1d 81 01
-
-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 IMSI/TMSI matching ===
-
-=== test_gbproxy_ptmsi_assignment ===
---- Initialise SGSN ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-Message for SGSN (NSEI=256 BVCI=0):
-22 04 82 00 00 07 81 08
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: NSEI 0x1000(4096)
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-NS2 UD REQUEST, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 23 04 82 10 02
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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_ptmsi_patching ===
---- Initialise SGSN ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-Message for SGSN (NSEI=256 BVCI=0):
-22 04 82 00 00 07 81 08
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: NSEI 0x1000(4096)
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-NS2 UD REQUEST, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 23 04 82 10 02
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 76, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 81, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 38, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 38, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING XID (DL) from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 70, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 70, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING LL11 DNS QUERY (UL) from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 89, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 89, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING LL11 DNS RESP (DL) from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 267, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 267, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 85, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 85, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING RA UDP ACC (P-TMSI 2) from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 87, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 87, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 85, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 85, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING RA UDP ACC (P-TMSI 3) from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 87, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 87, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING GMM INFO from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-2c 1f 84 c0 de ad 03 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 c0 de ad 03 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 UD REQUEST, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 e0 54 32 10 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 2c 1f 84 e0 54 32 10 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-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 NSEI 4096
-0b 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60
-
-NS2 CALLBACK, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60
-
-NS2 UD REQUEST, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 e0 54 32 10 1b 86 21 63 54 40 50 60
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 0b 1f 84 e0 54 32 10 1b 86 21 63 54 40 50 60
-
-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 NSEI 256
-0c 1f 84 e0 54 32 10 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 e0 54 32 10 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 34, bvci 0x0000
-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
-
-NS2 UD REQUEST, prim 0, msg length 34, bvci 0x0000
-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
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-2c 1f 84 c0 de ad 03 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 c0 de ad 03 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-NS2 UD REQUEST, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 e0 54 32 10 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 2c 1f 84 e0 54 32 10 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-Gbproxy global:
-PROCESSING BVC_SUSPEND_ACK from NSEI 256
-0c 1f 84 e0 54 32 10 1b 86 00 f1 99 00 63 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 e0 54 32 10 1b 86 00 f1 99 00 63 60 1d 81 01
-
-Message for SGSN (NSEI=256 BVCI=0):
-41 07 81 21 15 92 0c 1f 84 e0 54 32 10 1b 86 00 f1 99 00 63 60 1d 81 01
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- Patch error: no peer : 1
-PROCESSING BVC_SUSPEND_ACK from NSEI 256
-0c 1f 84 e0 54 32 10 1b 86 99 69 54 40 50 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 e0 54 32 10 1b 86 99 69 54 40 50 60 1d 81 01
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- Patch error: no peer : 1
-PROCESSING GMM INFO from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 58, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 58, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING GMM INFO from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING DETACH REQ from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-Message for SGSN (NSEI=256 BVCI=0):
-22 04 82 00 00 07 81 08
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: NSEI 0x1000(4096)
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-NS2 UD REQUEST, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 23 04 82 10 02
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-Message for SGSN (NSEI=256 BVCI=0):
-22 04 82 00 00 07 81 08
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: NSEI 0x1000(4096)
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-NS2 UD REQUEST, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 23 04 82 10 02
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 38, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 38, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING XID (DL) from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 70, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 70, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING LL11 DNS QUERY (UL) from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 89, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 89, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING LL11 DNS RESP (DL) from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 267, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 267, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-2c 1f 84 c0 de ad 01 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 c0 de ad 01 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 UD REQUEST, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-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 NSEI 256
-2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-Message for SGSN (NSEI=256 BVCI=0):
-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
-
-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 NSEI 4096
-0b 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60
-
-NS2 CALLBACK, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60
-
-NS2 UD REQUEST, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 0b 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60
-
-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 NSEI 256
-0c 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-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 NSEI 4096
-2c 1f 84 c0 de ad 01 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 c0 de ad 01 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-NS2 UD REQUEST, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 ef e2 b7 00 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 ee e1 25 83 00 00 0c
-
-Gbproxy global:
- BSSGP protocol error (SGSN): 1
-PROCESSING BVC_SUSPEND_ACK from NSEI 256
-0c 1f 84 ef e2 b7 00 1b 86 00 f1 99 00 63 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 ef e2 b7 00 1b 86 00 f1 99 00 63 60 1d 81 01
-
-Message for SGSN (NSEI=256 BVCI=0):
-41 07 81 21 15 92 0c 1f 84 ef e2 b7 00 1b 86 00 f1 99 00 63 60 1d 81 01
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- BSSGP protocol error (SGSN): 1
- Patch error: no peer : 1
-PROCESSING BVC_SUSPEND_ACK from NSEI 256
-0c 1f 84 ef e2 b7 00 1b 86 99 69 54 40 50 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 ef e2 b7 00 1b 86 99 69 54 40 50 60 1d 81 01
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-Gbproxy global:
- Invalid Routing Area Identifier : 1
- BSSGP protocol error (SGSN): 1
- Patch error: no peer : 1
-PROCESSING DETACH REQ from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 85, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-PROCESSING IDENT RESPONSE from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 85, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 87, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 87, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 c0 de ad 01 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 06 00 11 f5 c0
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 c0 de ad 01 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 06 00 11 f5 c0
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-PROCESSING ATTACH REQUEST from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 15 01 8f 47 9e
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 15 01 8f 47 9e
-
-PROCESSING DETACH REQ from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 09 08 06 00 da 80 ca
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 09 08 06 00 da 80 ca
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 be ef 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 06 00 11 f5 c0
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 be ef 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 06 00 11 f5 c0
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 85, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-PROCESSING RA UPD REQ from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 85, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 15 01 8f 47 9e
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 15 01 8f 47 9e
-
-PROCESSING DETACH REQ from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 09 08 06 00 da 80 ca
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 09 08 06 00 da 80 ca
-
-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 ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-Message for SGSN (NSEI=256 BVCI=0):
-22 04 82 00 00 07 81 08
-
---- Initialise SGSN 2 ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: NSEI 0x1000(4096)
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x0000(0)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 00 00
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-Message for SGSN2 (NSEI=258 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 21 63 54 40 50 60 10 00
-
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-NS2 UD REQUEST, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 23 04 82 10 02
-
-PROCESSING BVC_RESET_ACK from NSEI 258
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Gbproxy global:
- 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 NSEI 4096
-26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-NS2 CALLBACK, prim 0, msg length 24, bvci 0x1002
-26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 26 1e 81 01 05 82 01 dc 03 82 02 76 01 82 00 50 1c 82 02 58 06 82 00 03
-
-PROCESSING FLOW_CONTROL_BVC_ACK from NSEI 256
-27 1e 81 01
-
-NS2 CALLBACK, prim 0, msg length 4, bvci 0x1002
-27 1e 81 01
-
-NS2 UD REQUEST, prim 0, msg length 4, bvci 0x1002
-27 1e 81 01
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 27 1e 81 01
-
-PROCESSING FLOW_CONTROL_BVC_ACK from NSEI 258
-27 1e 81 01
-
-NS2 CALLBACK, prim 0, msg length 4, bvci 0x1002
-27 1e 81 01
-
---- Establish GPRS connection (SGSN 1) ---
-
-PROCESSING ATTACH REQUEST from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 78 de ad 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 38, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 38, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING XID (DL) from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 70, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 70, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING LL11 DNS QUERY (UL) from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 89, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 89, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING LL11 DNS RESP (DL) from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 267, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 267, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-2c 1f 84 c0 de ad 01 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 c0 de ad 01 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 UD REQUEST, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-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 NSEI 256
-2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 ef e2 b7 00 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-Message for SGSN (NSEI=256 BVCI=0):
-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
-
-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 NSEI 4096
-0b 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60
-
-NS2 CALLBACK, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60
-
-NS2 UD REQUEST, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 0b 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60
-
-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 NSEI 256
-0c 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 ef e2 b7 00 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 0c 1f 84 c0 de ad 01 1b 86 11 22 33 40 50 60 1d 81 01
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 be ef 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 be ef 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 258
-00 78 de ad 02 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 78 de ad 02 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 be ef 00 50 20 16 82 02 58 0e 89 41 c0 0d 08 15 01 0c a6 18
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 258
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 258
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 38, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 38, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING XID (DL) from NSEI 258
-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
-
-NS2 CALLBACK, prim 0, msg length 70, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 70, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING LL11 DNS QUERY (UL) from NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 89, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 89, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING LL11 DNS RESP (DL) from NSEI 258
-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
-
-NS2 CALLBACK, prim 0, msg length 267, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 267, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-2c 1f 84 c0 de ad 03 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 c0 de ad 03 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 UD REQUEST, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 e0 98 76 54 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-Message for SGSN2 (NSEI=258 BVCI=0):
-[L2]> [L3]> 2c 1f 84 e0 98 76 54 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-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 NSEI 258
-2c 1f 84 e0 98 76 54 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-NS2 CALLBACK, prim 0, msg length 19, bvci 0x0000
-2c 1f 84 e0 98 76 54 0f 81 01 04 82 10 02 25 83 00 00 0c
-
-Message for SGSN2 (NSEI=258 BVCI=0):
-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
-
-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 NSEI 4096
-0b 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60
-
-NS2 CALLBACK, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60
-
-NS2 UD REQUEST, prim 0, msg length 15, bvci 0x0000
-0b 1f 84 e0 98 76 54 1b 86 21 63 54 40 50 60
-
-Message for SGSN2 (NSEI=258 BVCI=0):
-[L2]> [L3]> 0b 1f 84 e0 98 76 54 1b 86 21 63 54 40 50 60
-
-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 NSEI 258
-0c 1f 84 e0 98 76 54 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 e0 98 76 54 1b 86 21 63 54 40 50 60 1d 81 01
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 0c 1f 84 c0 de ad 03 1b 86 11 22 33 40 50 60 1d 81 01
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 fe ed 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 fe ed 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 258
-00 78 de ad 04 00 50 20 16 82 02 58 0e 89 41 c0 19 08 15 01 a2 f2 a4
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 78 de ad 04 00 50 20 16 82 02 58 0e 89 41 c0 19 08 15 01 a2 f2 a4
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 fe ed 00 50 20 16 82 02 58 0e 89 41 c0 19 08 15 01 a2 f2 a4
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 fe ed 00 50 20 16 82 02 58 0e 89 41 c0 19 08 15 01 a2 f2 a4
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 258
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 258
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 258
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN2 (NSEI=258 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 258
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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:
- BSSGP protocol error (SGSN): 2
- Patch error: no peer : 1
-=== test_gbproxy_keep_info ===
---- Initialise SGSN ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-Message for SGSN (NSEI=256 BVCI=0):
-22 04 82 00 00 07 81 08
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: NSEI 0x1000(4096)
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-NS2 UD REQUEST, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 23 04 82 10 02
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 af e2 b7 00 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 40, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 44, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 69, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 69, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 69, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 69, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 78, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 78, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 69, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 69, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 85, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 85, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-PROCESSING RA UDP REJ from NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 68, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 68, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 69, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 69, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 69, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 69, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 78, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 78, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 69, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 69, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 66, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 66, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 88, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 88, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 69, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 69, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 67, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 67, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 44, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 06 00 29 4a 68
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 05 08 06 00 29 4a 68
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 af e2 b7 00 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 256
-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
-
-NS2 CALLBACK, prim 0, msg length 69, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 69, bvci 0x1002
-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
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 31, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-NS2 UD REQUEST, prim 0, msg length 31, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-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 ---
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-Message for SGSN (NSEI=256 BVCI=0):
-22 04 82 00 00 07 81 08
-
---- Initialise BSS 1 ---
-
-Setup NS-VC: NSEI 0x1000(4096)
-
-NS2 CALLBACK, prim 2, bvci 0x0000
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 00 00 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for BSS (NSEI=4096 BVCI=0):
-23 04 82 00 00
-
-Setup BSSGP: BVCI 0x1002(4098)
-
-PROCESSING BVC_RESET from NSEI 4096
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 CALLBACK, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-NS2 UD REQUEST, prim 0, msg length 18, bvci 0x0000
-22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-Message for SGSN (NSEI=256 BVCI=0):
-[L2]> [L3]> 22 04 82 10 02 07 81 08 08 88 11 22 33 40 50 60 10 00
-
-PROCESSING BVC_RESET_ACK from NSEI 256
-23 04 82 10 02
-
-NS2 CALLBACK, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-NS2 UD REQUEST, prim 0, msg length 5, bvci 0x0000
-23 04 82 10 02
-
-Message for BSS (NSEI=4096 BVCI=0):
-[L2]> [L3]> 23 04 82 10 02
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 75, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 24, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 00 09 41 c4 01 08 15 01 b7 f8 36
-
-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 NSEI 256
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 CALLBACK, prim 0, msg length 23, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-NS2 UD REQUEST, prim 0, msg length 23, bvci 0x1002
-00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-Message for BSS (NSEI=4096 BVCI=4098):
-[L2]> [L3]> 00 80 00 de ad 00 50 20 16 82 02 58 0e 89 41 c0 01 08 15 01 ff 6c ba
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 32, bvci 0x1002
-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
-
-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 NSEI 4096
-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
-
-NS2 CALLBACK, prim 0, msg length 40, bvci 0x1002
-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
-
-NS2 UD REQUEST, prim 0, msg length 75, bvci 0x1002
-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
-
-Message for SGSN (NSEI=256 BVCI=4098):
-[L2]> [L3]> 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
-
-Peers:
- NSEI 4096, BVCI 4098, not blocked, RAI 112-332-16464-96
- Attach Request count : 1
- TLLI-Cache: 0
-Gbproxy global:
===== GbProxy test END