diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-01-22 19:50:21 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-01-23 03:50:58 +0000 |
commit | 9141bd97001e4a728c88b2bc7507a2f8bd91cc90 (patch) | |
tree | f589699cd32e897619dc250c9ec2c891c02f12d0 /epan/dissectors/packet-finger.c | |
parent | 2fb43f3761f3bc813d85f3771b78a81007283871 (diff) |
Add more fields to packet_info structure and use them.
Add fields for the absolute time stamp (and another field for a presence
flag for the absolute time stamp) and the packet encapsulation for the
packet.
This lets us remove the field for the packet encapsulation in the
frame_data structure; do so.
Change-Id: Ifb910a9a192414e2a53086f3f7b97f39ed36aa39
Reviewed-on: https://code.wireshark.org/review/13499
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-finger.c')
-rw-r--r-- | epan/dissectors/packet-finger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-finger.c b/epan/dissectors/packet-finger.c index 6e58f8ac09..14583e5d05 100644 --- a/epan/dissectors/packet-finger.c +++ b/epan/dissectors/packet-finger.c @@ -86,7 +86,7 @@ dissect_finger(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, return -1; } else { finger_trans->req_frame = pinfo->fd->num; - finger_trans->req_time = pinfo->fd->abs_ts; + finger_trans->req_time = pinfo->abs_ts; } } else { pinfo->desegment_len = DESEGMENT_UNTIL_FIN; @@ -96,7 +96,7 @@ dissect_finger(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, } } else if (is_query && (finger_trans->req_frame == 0)) { finger_trans->req_frame = pinfo->fd->num; - finger_trans->req_time = pinfo->fd->abs_ts; + finger_trans->req_time = pinfo->abs_ts; } if (!is_query && (finger_trans->rep_frame == 0)) { @@ -138,7 +138,7 @@ dissect_finger(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, PROTO_ITEM_SET_GENERATED(ti); if (pinfo->fd->num == finger_trans->rep_frame) { - nstime_delta(&ns, &pinfo->fd->abs_ts, &finger_trans->req_time); + nstime_delta(&ns, &pinfo->abs_ts, &finger_trans->req_time); ti = proto_tree_add_time(finger_tree, hf_finger_response_time, tvb, 0, 0, &ns); PROTO_ITEM_SET_GENERATED(ti); } |