summaryrefslogtreecommitdiff
path: root/udp.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 /udp.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 'udp.h')
-rw-r--r--udp.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/udp.h b/udp.h
index d684f117..521fd947 100644
--- a/udp.h
+++ b/udp.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/udp.h,v 1.1 2000-09-23 08:26:39 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/udp.h,v 1.2 2000-10-03 02:55:03 itojun Exp $ (LBL) */
/*
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
@@ -39,8 +39,8 @@
* Per RFC 768, September, 1981.
*/
struct udphdr {
- u_short uh_sport; /* source port */
- u_short uh_dport; /* destination port */
- short uh_ulen; /* udp length */
- u_short uh_sum; /* udp checksum */
+ u_int16_t uh_sport; /* source port */
+ u_int16_t uh_dport; /* destination port */
+ u_int16_t uh_ulen; /* udp length */
+ u_int16_t uh_sum; /* udp checksum */
};