aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglores <gloria.pozuelo@bics.com>2016-03-03 17:46:25 +0100
committerMichael Mann <mmann78@netscape.net>2016-03-10 12:37:30 +0000
commit283d2c8c2dff6543a401abce3c54686cf1c6e9ad (patch)
tree168a10c69c1dc5d9419533837333bc90dc550478
parente13976339be6fa8ee06177b85268d29c81dc7995 (diff)
GTPv2 conversation time response
Change-Id: Ice7a08a47b091e4e47cd13b04b7dd7ed74a0f950 Reviewed-on: https://code.wireshark.org/review/14328 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/dissectors/packet-gtpv2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c
index 155ca442df..12647c0e1b 100644
--- a/epan/dissectors/packet-gtpv2.c
+++ b/epan/dissectors/packet-gtpv2.c
@@ -56,6 +56,7 @@ static int proto_gtpv2 = -1;
static int hf_gtpv2_response_in = -1;
static int hf_gtpv2_response_to = -1;
+static int hf_gtpv2_response_time = -1;
static int hf_gtpv2_spare_half_octet = -1;
static int hf_gtpv2_spare_bits = -1;
static int hf_gtpv2_flags = -1;
@@ -6247,8 +6248,13 @@ gtpv2_match_response(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, gin
it = proto_tree_add_uint(tree, hf_gtpv2_response_in, tvb, 0, 0, gcrp->rep_frame);
PROTO_ITEM_SET_GENERATED(it);
} else {
+ nstime_t ns;
+
it = proto_tree_add_uint(tree, hf_gtpv2_response_to, tvb, 0, 0, gcrp->req_frame);
PROTO_ITEM_SET_GENERATED(it);
+ nstime_delta(&ns, &pinfo->abs_ts, &gcrp->req_time);
+ it = proto_tree_add_time(tree, hf_gtpv2_response_time, tvb, 0, 0, &ns);
+ PROTO_ITEM_SET_GENERATED(it);
if (g_gtp_session && !PINFO_FD_VISITED(pinfo)) {
/* GTP session */
/* If it's not already in the list */
@@ -6546,6 +6552,11 @@ void proto_register_gtpv2(void)
FT_FRAMENUM, BASE_NONE, NULL, 0x0,
"This is a response to the GTP request in this frame", HFILL }
},
+ { &hf_gtpv2_response_time,
+ { "Response Time", "gtpv2.response_time",
+ FT_RELATIVE_TIME, BASE_NONE, NULL, 0x0,
+ "The time between the Request and the Response", HFILL }
+ },
{ &hf_gtpv2_spare_half_octet,
{"Spare half octet", "gtpv2.spare_half_octet",
FT_UINT8, BASE_DEC, NULL, 0x0,