diff options
author | guy <guy> | 2000-10-09 02:59:39 +0000 |
---|---|---|
committer | guy <guy> | 2000-10-09 02:59:39 +0000 |
commit | d16cf6488c6a3a8a4257311c80d5766ed8b7cdcb (patch) | |
tree | 03f2771bfafd5a0bf5fd51733960a515047840ac /print-fddi.c | |
parent | 89cf9ca18a08c6281bf383f9f2bde7174488f8ab (diff) | |
download | tcpdump-d16cf6488c6a3a8a4257311c80d5766ed8b7cdcb.tar.gz |
Some compilers may pad structures to a length that's a multiple of 2 or
4 bytes, even though no member in the structure requires such an
alignment; don't use "sizeof (struct ether_header)" or "sizeof (struct
fddi_header)", explicitly #define the header length and use that
#defined value.
Diffstat (limited to 'print-fddi.c')
-rw-r--r-- | print-fddi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/print-fddi.c b/print-fddi.c index 92afbdfa..f1e0ecf8 100644 --- a/print-fddi.c +++ b/print-fddi.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-fddi.c,v 1.46 2000-10-06 04:23:11 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-fddi.c,v 1.47 2000-10-09 02:59:40 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -88,8 +88,6 @@ int fddi_bitswap = 1; * - vj */ -#define FDDI_HDRLEN (sizeof(struct fddi_header)) - static u_char fddi_bit_swap[] = { 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, |