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>
This commit is contained in:
glores 2016-03-03 17:46:25 +01:00 committed by Michael Mann
parent e13976339b
commit 283d2c8c2d
1 changed files with 11 additions and 0 deletions

View File

@ -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,