summaryrefslogtreecommitdiff
path: root/ntp.h
diff options
context:
space:
mode:
authoritojun <itojun>2000-10-03 02:54:54 +0000
committeritojun <itojun>2000-10-03 02:54:54 +0000
commitfb75d3cd5ad603bd255d9cdc20aeca674c6f3720 (patch)
treef7216518bb3fe268e2512bce0b8d68448d0aa976 /ntp.h
parentcdaba7de64aab0672383804b7c80cc3678936b4f (diff)
downloadtcpdump-fb75d3cd5ad603bd255d9cdc20aeca674c6f3720.tar.gz
always use u_intXX_t for protocol format declaration. char/short/int may not
come with exact size. while at it, correct signedness of ip/udp header field. nuke most of the use of bitfield. TODO: bitfield in namser.h
Diffstat (limited to 'ntp.h')
-rw-r--r--ntp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ntp.h b/ntp.h
index 8bf8d368..b315b508 100644
--- a/ntp.h
+++ b/ntp.h
@@ -1,4 +1,4 @@
-/* $Header: /tcpdump/master/tcpdump/ntp.h,v 1.3 1999-10-07 23:47:11 mcr Exp $ */
+/* $Header: /tcpdump/master/tcpdump/ntp.h,v 1.4 2000-10-03 02:54:57 itojun Exp $ */
/*
* Based on ntp.h from the U of MD implementation
@@ -33,8 +33,8 @@ struct l_fixedpt {
};
struct s_fixedpt {
- u_short int_part;
- u_short fraction;
+ u_int16_t int_part;
+ u_int16_t fraction;
};
/* ================= Table 3.3. Packet Variables ================= */