summaryrefslogtreecommitdiff
path: root/print-ppp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-02-01 14:02:17 -0800
committerGuy Harris <guy@alum.mit.edu>2014-02-01 14:02:17 -0800
commit78f0dde7c972f65de116912d48fb09d0a296a53e (patch)
treebfc4bf0cb983f7efbe363afa691a2ebd16d216ab /print-ppp.c
parenta961192e4f66bc0e9d4a3981fe69589e4cec5538 (diff)
downloadtcpdump-78f0dde7c972f65de116912d48fb09d0a296a53e.tar.gz
Don't use the __attribute__((packed)) on most platforms.
It won't necessarily work with non-GCC-compatible compilers, so use it only on GCC-compatible compilers. Even with some GCC-compatible compilers (such as, err, umm, GCC), it doesn't do the right thing on some platforms, e.g. 64-bit SPARC, where the compiler generates code that assumes alignment even when using it. The only platforms I know of where an unaligned big-endian load can be done better than by loading bytes and shifting-and-ORing them together are MIPS and possibly Alpha, so only do it there.
Diffstat (limited to 'print-ppp.c')
0 files changed, 0 insertions, 0 deletions