aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders <anders.broman@ericsson.com>2017-10-30 22:23:07 +0100
committerAnders Broman <a.broman58@gmail.com>2017-10-30 22:06:18 +0000
commit90867dd8e37c3e348ad2ecac9f30679666fb9fbe (patch)
tree626f6bbfa695fdf4d0f432a22069c23a93277a1c
parentd21eb05ebadd011083b3f9da3dfd320a55c7bc52 (diff)
[BSSGP] Add PEI
Change-Id: I64d1924aba3c11fa72fbb12121bd09bcf21d598d Reviewed-on: https://code.wireshark.org/review/24193 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-bssgp.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bssgp.c b/epan/dissectors/packet-bssgp.c
index b6834a526e..99d27d1800 100644
--- a/epan/dissectors/packet-bssgp.c
+++ b/epan/dissectors/packet-bssgp.c
@@ -210,6 +210,7 @@ static int hf_bssgp_tunpo_minutes = -1;
static int hf_bssgp_tunpo_seconds = -1;
static int hf_bssgp_ec_dl_coveradge_class = -1;
static int hf_bssgp_ec_ul_coveradge_class = -1;
+static int hf_bssgp_pei = -1;
static int hf_bssgp_paging_attempt_count = -1;
static int hf_bssgp_intended_num_of_pag_attempts = -1;
static int hf_bssgp_extended_feature_bitmap = -1;
@@ -3545,7 +3546,13 @@ de_bssgp_coveradge_class(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_
/*
* 11.3.125 Paging Attempt Information
*/
- static const value_string bssgp_paging_attempt_count_vals[] = {
+static const value_string bssgp_pei_vals[] = {
+ { 0x0, "Positioning event not triggered" },
+ { 0x1, "Positioning event triggered" },
+ { 0, NULL }
+
+};
+static const value_string bssgp_paging_attempt_count_vals[] = {
{ 0x0, "1st paging attempt" },
{ 0x1, "2nd paging attempt" },
{ 0x2, "3rd paging attempt" },
@@ -3571,6 +3578,7 @@ static const value_string bssgp_intended_num_of_pag_attempts_vals[] = {
{ 0, NULL }
};
+
static guint16
de_bssgp_pag_attempt_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_)
{
@@ -3578,6 +3586,7 @@ de_bssgp_pag_attempt_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U
curr_offset = offset;
+ proto_tree_add_item(tree, hf_bssgp_pei, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_bssgp_intended_num_of_pag_attempts, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_bssgp_paging_attempt_count, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
curr_offset++;
@@ -7504,6 +7513,11 @@ proto_register_bssgp(void)
FT_UINT8, BASE_DEC, VALS(bssgp_ggsn_pgw_location_vals), 0x0,
NULL, HFILL } },
+ { &hf_bssgp_pei,
+ { "Positioning Event Indicator(PEI)", "bssgp.pei",
+ FT_UINT8, BASE_DEC, VALS(bssgp_pei_vals), 0x80,
+ NULL, HFILL } },
+
{ &hf_bssgp_paging_attempt_count,
{ "Paging Attempt Count", "bssgp.paging_attempt_count",
FT_UINT8, BASE_HEX, VALS(bssgp_paging_attempt_count_vals), 0x7,