diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-09-14 07:10:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-09-14 07:10:13 +0000 |
commit | 1d42c94b05cf2e4ec056d780b919a05159a17b72 (patch) | |
tree | f03564f0bad20129e2a6ef83bc198287372a9cae /packet-lmi.c | |
parent | e32028f6cd3ea4a18a7364fbb32affb4077217d0 (diff) | |
download | wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.tar.gz wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.tar.bz2 wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.zip |
Make the resolution for time values be nanoseconds rather than
microseconds.
Fix some "signed vs. unsigned" comparison warnings.
svn path=/trunk/; revision=3934
Diffstat (limited to 'packet-lmi.c')
-rw-r--r-- | packet-lmi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-lmi.c b/packet-lmi.c index 67fa7749e3..2b3055a75f 100644 --- a/packet-lmi.c +++ b/packet-lmi.c @@ -2,12 +2,11 @@ * Routines for Frame Relay Local Management Interface (LMI) disassembly * Copyright 2001, Jeffrey C. Foster <jfoste@woodward.com> * - * $Id: packet-lmi.c,v 1.5 2001/06/18 02:17:48 guy Exp $ + * $Id: packet-lmi.c,v 1.6 2001/09/14 07:10:05 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs <gerald@zing.org> + * By Gerald Combs <gerald@ethereal.com> * Copyright 1998 - * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -160,7 +159,7 @@ dissect_lmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_uint(lmi_tree, hf_lmi_msg_type, tvb, 1, 1, tvb_get_guint8( tvb, 1)); /* Display the LMI elements */ - while( offset < tvb_length( tvb)){ + while (tvb_reported_length_remaining(tvb, offset) > 0) { ele_id = tvb_get_guint8( tvb, offset); len = tvb_get_guint8( tvb, offset + 1); |