aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Karlsson <oakimk@gmail.com>2016-11-01 19:36:32 +0100
committerAnders Broman <a.broman58@gmail.com>2016-11-01 21:01:23 +0000
commitf269290252aaec71eca184292eb5ba1681c6e2e6 (patch)
tree0eff105744117051d40e39f552fa86f4eaaa8e18
parent9a187cca7412707fa6272f7addf70fec5eaa1489 (diff)
gtp: decoding correlation-id
Change-Id: Ie9d399c10b6599bfc463e27ca3cfcb3c06d8b588 Reviewed-on: https://code.wireshark.org/review/18605 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-gtp.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c
index 6300ac27d7..8ee4e686bf 100644
--- a/epan/dissectors/packet-gtp.c
+++ b/epan/dissectors/packet-gtp.c
@@ -252,6 +252,7 @@ static int hf_gtp_bssgp_ra_discriminator = -1;
static int hf_gtp_sapi = -1;
static int hf_gtp_xid_par_len = -1;
static int hf_gtp_rep_act_type = -1;
+static int hf_gtp_correlation_id = -1;
static int hf_gtp_earp_pvi = -1;
static int hf_gtp_earp_pl = -1;
static int hf_gtp_earp_pci = -1;
@@ -7093,8 +7094,8 @@ decode_gtp_corrl_id(tvbuff_t * tvb, int offset, packet_info * pinfo _U_, proto_t
offset++;
proto_tree_add_item(ext_tree, hf_gtp_ext_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset = offset + 2;
- /* TODO add decoding of data */
- proto_tree_add_expert(ext_tree, pinfo, &ei_gtp_undecoded, tvb, offset, length);
+
+ proto_tree_add_item(ext_tree, hf_gtp_correlation_id, tvb, offset, 1, ENC_BIG_ENDIAN);
return 3 + length;
@@ -9619,6 +9620,11 @@ proto_register_gtp(void)
FT_UINT8, BASE_DEC, VALS(chg_rep_act_type_vals), 0xFF,
NULL, HFILL}
},
+ {&hf_gtp_correlation_id,
+ { "Correlation-ID", "gtp.correlation_id",
+ FT_UINT8, BASE_DEC, NULL, 0,
+ NULL, HFILL}
+ },
{&hf_gtp_earp_pvi,
{ "PVI Pre-emption Vulnerability", "gtp.EARP_pre_emption_par_vulnerability",
FT_BOOLEAN, 8, TFS(&tfs_disabled_enabled), 0x01,