aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-e212.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2019-03-01 14:41:00 +0100
committerAnders Broman <a.broman58@gmail.com>2019-03-01 14:15:17 +0000
commit0bf337749e9a388e030543c60ff6412e481b32e0 (patch)
tree7adcfd1450e0257bd68101bec49521cc0ed0ea66 /epan/dissectors/packet-e212.c
parent349735613dc3e02340dc73a1dd5397310c4552c5 (diff)
IMSI based filtering for SCCP/RANAP
Bug: 9074 Change-Id: Iae7e233d03367678a6925c732bf4b6d78c211cd8 Reviewed-on: https://code.wireshark.org/review/32286 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-e212.c')
-rw-r--r--epan/dissectors/packet-e212.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/epan/dissectors/packet-e212.c b/epan/dissectors/packet-e212.c
index 18b8f380df..40970bcb9d 100644
--- a/epan/dissectors/packet-e212.c
+++ b/epan/dissectors/packet-e212.c
@@ -2873,6 +2873,7 @@ value_string_ext mcc_mnc_3digits_codes_ext = VALUE_STRING_EXT_INIT(mcc_mnc_3digi
static int proto_e212 = -1;
static int hf_E212_imsi = -1;
+static int hf_e212_assoc_imsi = -1;
static int hf_E212_mcc = -1;
static int hf_E212_mcc_lai = -1;
static int hf_E212_mcc_sai = -1;
@@ -3331,7 +3332,8 @@ dissect_e212_imsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offse
if (!is_imsi_string_valid(imsi_str)) {
expert_add_info(pinfo, item, &ei_E212_imsi_malformed);
}
-
+ item = proto_tree_add_string(tree, hf_e212_assoc_imsi, tvb, offset, length, imsi_str);
+ PROTO_ITEM_SET_GENERATED(item);
subtree = proto_item_add_subtree(item, ett_e212_imsi);
if(skip_first) {
@@ -3356,6 +3358,8 @@ dissect_e212_utf8_imsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
if (!is_imsi_string_valid(imsi_str)) {
expert_add_info(pinfo, item, &ei_E212_imsi_malformed);
}
+ item = proto_tree_add_string(tree, hf_e212_assoc_imsi, tvb, offset, length, imsi_str);
+ PROTO_ITEM_SET_GENERATED(item);
subtree = proto_item_add_subtree(item, ett_e212_imsi);
@@ -3383,6 +3387,12 @@ proto_register_e212(void)
FT_STRING, BASE_NONE, NULL, 0x0,
"International mobile subscriber identity(IMSI)", HFILL }
},
+ { &hf_e212_assoc_imsi,
+ { "Association IMSI", "e212.assoc.imsi",
+ FT_STRING, BASE_NONE, NULL, 0,
+ "Used to tie MSGs related to the same IMSI", HFILL}
+ },
+
{ &hf_E212_mcc,
{ "Mobile Country Code (MCC)","e212.mcc",
FT_UINT16, BASE_DEC|BASE_EXT_STRING, &E212_codes_ext, 0x0,