]> The Tcpdump Group git mirrors - tcpdump/commit
Some compilers may pad structures to a length that's a multiple of 2 or
authorguy <guy>
Mon, 9 Oct 2000 03:24:24 +0000 (03:24 +0000)
committerguy <guy>
Mon, 9 Oct 2000 03:24:24 +0000 (03:24 +0000)
commit596742a577ad2c1e22ba8b70fbc63961b8c4e614
tree4c10bd77546a12db41fbd8aad41d40f7df98148b
parentd16cf6488c6a3a8a4257311c80d5766ed8b7cdcb
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_arp), explicitly #define the
header length and use that #defined value.

We don't use "struct ether_addr" in any dissectors, so there's no need
to define it in "ether.h" - and, if compilers pad it to a multiple of 4
bytes, you can't use it anyway, as it'll be 8 bytes long, not 6 bytes
long.
ether.h
print-arp.c