diff options
author | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-07-08 01:52:19 +0000 |
---|---|---|
committer | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-07-08 01:52:19 +0000 |
commit | 5f3a54e0e16eec91d3726bd95b07a58597ef6171 (patch) | |
tree | 87f194f8463ac254ac03dcf960401b40878500eb /packet-ntp.c | |
parent | a16d3038d2c66e5eff55d9f8606f8874bb08f90e (diff) |
ntp.precision is a signed 8-bit integer, according to the code and to
RFC 2030. Make it an FT_INT8 field instead of FT_UINT8.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7979 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ntp.c')
-rw-r--r-- | packet-ntp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ntp.c b/packet-ntp.c index 6524f1f03f..fbee500729 100644 --- a/packet-ntp.c +++ b/packet-ntp.c @@ -2,7 +2,7 @@ * Routines for NTP packet dissection * Copyright 1999, Nathan Neulinger <nneul@umr.edu> * - * $Id: packet-ntp.c,v 1.37 2002/08/28 21:00:24 jmayer Exp $ + * $Id: packet-ntp.c,v 1.38 2003/07/08 01:52:19 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -320,7 +320,7 @@ dissect_ntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * local clock, in seconds to the nearest power of two. */ precision = tvb_get_guint8(tvb, 3); - proto_tree_add_uint_format(ntp_tree, hf_ntp_precision, tvb, 3, 1, + proto_tree_add_int_format(ntp_tree, hf_ntp_precision, tvb, 3, 1, precision, "Peer Clock Precision: %8.6f sec", pow(2, precision)); @@ -451,7 +451,7 @@ proto_register_ntp(void) "Peer Polling Interval", "ntp.ppoll", FT_UINT8, BASE_DEC, NULL, 0, "Peer Polling Interval", HFILL }}, { &hf_ntp_precision, { - "Peer Clock Precision", "ntp.precision", FT_UINT8, BASE_DEC, + "Peer Clock Precision", "ntp.precision", FT_INT8, BASE_DEC, NULL, 0, "Peer Clock Precision", HFILL }}, { &hf_ntp_rootdelay, { "Root Delay", "ntp.rootdelay", FT_DOUBLE, BASE_DEC, |