diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-09-14 07:10:13 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-09-14 07:10:13 +0000 |
commit | ac3b47106ad1f890742eddb0421ee47b8a835917 (patch) | |
tree | f03564f0bad20129e2a6ef83bc198287372a9cae /packet-rx.c | |
parent | b2552bbd08807b250f8a20ed5b919bfdfed56e79 (diff) |
Make the resolution for time values be nanoseconds rather than
microseconds.
Fix some "signed vs. unsigned" comparison warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3934 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rx.c')
-rw-r--r-- | packet-rx.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/packet-rx.c b/packet-rx.c index b6d6948755..147adc51ec 100644 --- a/packet-rx.c +++ b/packet-rx.c @@ -4,7 +4,7 @@ * Based on routines from tcpdump patches by * Ken Hornstein <kenh@cmf.nrl.navy.mil> * - * $Id: packet-rx.c,v 1.25 2001/08/20 02:11:13 guy Exp $ + * $Id: packet-rx.c,v 1.26 2001/09/14 07:10:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -156,12 +156,12 @@ dissect_rx_response_encrypted(tvbuff_t *tvb, packet_info *pinfo, proto_tree *par /* epoch : 4 bytes */ { - struct timeval tv; - tv.tv_sec = tvb_get_ntohl(tvb, offset); - tv.tv_usec = 0; + nstime_t ts; + ts.secs = tvb_get_ntohl(tvb, offset); + ts.nsecs = 0; proto_tree_add_time(tree, hf_rx_epoch, tvb, - offset, 4, &tv); + offset, 4, &ts); offset += 4; } @@ -444,12 +444,12 @@ dissect_rx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) /* epoch : 4 bytes */ { - struct timeval tv; - tv.tv_sec = tvb_get_ntohl(tvb, offset); - tv.tv_usec = 0; + nstime_t ts;; + ts.secs = tvb_get_ntohl(tvb, offset); + ts.nsecs = 0; proto_tree_add_time(tree, hf_rx_epoch, tvb, - offset, 4, &tv); + offset, 4, &ts); offset += 4; } |