]> The Tcpdump Group git mirrors - tcpdump/blobdiff - ether.h
always use u_intXX_t for protocol format declaration. char/short/int may not
[tcpdump] / ether.h
diff --git a/ether.h b/ether.h
index 0056e550341957c3656e601cdda17297da21b8e7..c68f25c089ce0c63a9874481c5bad8923c7355e5 100644 (file)
--- a/ether.h
+++ b/ether.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/ether.h,v 1.3 2000-09-23 08:54:25 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/ether.h,v 1.4 2000-10-03 02:54:55 itojun Exp $ (LBL) */
 /*
  * Copyright (c) 1982, 1986, 1993
  *     The Regents of the University of California.  All rights reserved.
 /*
  * Copyright (c) 1982, 1986, 1993
  *     The Regents of the University of California.  All rights reserved.
  * Ethernet address - 6 octets
  */
 struct ether_addr {
  * Ethernet address - 6 octets
  */
 struct ether_addr {
-       u_char  ether_addr_octet[ETHER_ADDR_LEN];
+       u_int8_t        ether_addr_octet[ETHER_ADDR_LEN];
 };
 
 /*
  * Structure of a 10Mb/s Ethernet header.
  */
 struct ether_header {
 };
 
 /*
  * Structure of a 10Mb/s Ethernet header.
  */
 struct ether_header {
-       u_char  ether_dhost[ETHER_ADDR_LEN];
-       u_char  ether_shost[ETHER_ADDR_LEN];
-       u_short ether_type;
+       u_int8_t        ether_dhost[ETHER_ADDR_LEN];
+       u_int8_t        ether_shost[ETHER_ADDR_LEN];
+       u_int16_t       ether_type;
 };
 };