aboutsummaryrefslogtreecommitdiffstats
path: root/ieee-float.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-02-04 08:21:35 +0000
committerGuy Harris <guy@alum.mit.edu>2001-02-04 08:21:35 +0000
commit52bf0149486ef55403e187bc60f95f9ccc79164d (patch)
tree8803f5a0a8996537df798dcc83005ad5f70708a5 /ieee-float.h
parentebba9ea2d093ff07e463de5ca83dfc10fe04a1db (diff)
downloadwireshark-52bf0149486ef55403e187bc60f95f9ccc79164d.tar.gz
wireshark-52bf0149486ef55403e187bc60f95f9ccc79164d.tar.bz2
wireshark-52bf0149486ef55403e187bc60f95f9ccc79164d.zip
Tvbuffify the RSVP dissector.
Display the message checksum, and check it if possible. Fix some IPv6 entries to be 16 bytes long, not 4 bytes long. Make the routine to fetch an IEEE floating point number and turn it into a "long" take a tvbuff pointer and offset rather than a pointer to data. svn path=/trunk/; revision=2987
Diffstat (limited to 'ieee-float.h')
-rw-r--r--ieee-float.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ieee-float.h b/ieee-float.h
index 1fb612971f..03d1629ddb 100644
--- a/ieee-float.h
+++ b/ieee-float.h
@@ -1,13 +1,13 @@
/**********************************************************************
*
- * ieee_float.h
+ * ieee-float.h
*
* Implements simple stuff to convert from IEEE float types
* to 32-bit longs
*
* (C) Ashok Narayanan, 2000
*
- * $Id: ieee-float.h,v 1.1 2000/03/09 18:31:50 ashokn Exp $
+ * $Id: ieee-float.h,v 1.2 2001/02/04 08:21:35 guy Exp $
*
* For license details, see the COPYING file with this distribution
*
@@ -42,14 +42,14 @@ static inline int ieee_float_is_zero (long number)
/*
* simple conversion: ieee floating point to long
*/
-static long pieee_to_long (const void *p)
+static long tvb_ieee_to_long (tvbuff_t *tvb, int offset)
{
long number;
long sign;
long exponent;
long mantissa;
- number = pntohl(p);
+ number = tvb_get_ntohl(tvb, offset);
sign = number & IEEE_SIGN_MASK;
exponent = number & IEEE_EXPONENT_MASK;
mantissa = number & IEEE_MANTISSA_MASK;