]> The Tcpdump Group git mirrors - tcpdump/commit
Mark various IPv4 and IPv6 headers as unaligned.
authorGuy Harris <[email protected]>
Tue, 31 Aug 2010 17:03:47 +0000 (10:03 -0700)
committerGuy Harris <[email protected]>
Tue, 31 Aug 2010 17:03:47 +0000 (10:03 -0700)
commit53412397f6ce23f1c189e27adc81ec44ec94d2ef
tree64c20bff5a4c0a9bae63fc0dfd6df398ddc8f9d7
parent4be7a37b2c0d897a2fd575e2eb18b62a49328b39
Mark various IPv4 and IPv6 headers as unaligned.

This prevents GCC on SPARC from generating code that assumes those
structures are aligned naturally, which they are not guaranteed to be.

Move some #defines from interface.h to tcpdump-stdinc.h to make them
available to code that doesn't include interface.h.

Move the declaration of nextproto6_cksum() to ip6.h, so that only files
that use it get it declared, and thus so that you don't need to define
"struct ip6_hdr" in everything that includes interface.h.  Don't include
ip6.h in tcpdump-stdinc.h.
interface.h
ip.h
ip6.h
tcpdump-stdinc.h