diff options
author | itojun <itojun> | 2000-10-03 02:54:54 +0000 |
---|---|---|
committer | itojun <itojun> | 2000-10-03 02:54:54 +0000 |
commit | fb75d3cd5ad603bd255d9cdc20aeca674c6f3720 (patch) | |
tree | f7216518bb3fe268e2512bce0b8d68448d0aa976 /ntp.h | |
parent | cdaba7de64aab0672383804b7c80cc3678936b4f (diff) | |
download | tcpdump-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 ================= */ |