X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/596742a577ad2c1e22ba8b70fbc63961b8c4e614..febd0bc5aa33b3de9b5864e8c5565fe7b63f519f:/ether.h diff --git a/ether.h b/ether.h index 96ddec79..64916789 100644 --- a/ether.h +++ b/ether.h @@ -1,4 +1,3 @@ -/* @(#) $Header: /tcpdump/master/tcpdump/ether.h,v 1.6 2000-10-09 03:24:24 guy Exp $ (LBL) */ /* * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. @@ -42,18 +41,17 @@ #define ETHER_ADDR_LEN 6 /* - * Structure of a DEC/Intel/Xerox or 802.3 Ethernet header. + * Structure of an Ethernet header. */ struct ether_header { - u_int8_t ether_dhost[ETHER_ADDR_LEN]; - u_int8_t ether_shost[ETHER_ADDR_LEN]; - u_int16_t ether_type; + uint8_t ether_dhost[ETHER_ADDR_LEN]; + uint8_t ether_shost[ETHER_ADDR_LEN]; + uint16_t ether_length_type; }; /* - * Length of a DEC/Intel/Xerox or 802.3 Ethernet header; note that some - * compilers may pad "struct ether_header" to a multiple of 4 bytes, - * for example, so "sizeof (struct ether_header)" may not give the right - * answer. + * Length of an Ethernet header; note that some compilers may pad + * "struct ether_header" to a multiple of 4 bytes, for example, so + * "sizeof (struct ether_header)" may not give the right answer. */ #define ETHER_HDRLEN 14