]> The Tcpdump Group git mirrors - tcpdump/commit
Fix heuristic not to be byte-order-dependent.
authorGuy Harris <[email protected]>
Mon, 27 Apr 2015 00:09:16 +0000 (17:09 -0700)
committerGuy Harris <[email protected]>
Mon, 27 Apr 2015 00:09:16 +0000 (17:09 -0700)
commitc4ba5098d63f1f511d87dbf65e5b5d118e4e43d4
tree728ebf6c11d3d62c7d3da64e08952682fcf5aa62
parent7ac62c7158038962fe00f7b916cb144759d6382f
Fix heuristic not to be byte-order-dependent.

I'm *guessing* that the item being fetched is big-endian; the "vt"
protocol might be old enough that they developed it on (non-Sun386i) Sun
workstations, assuming they didn't just say "this is an Internet
protocol, hence fields are big-endian").

That also prevents problems on platforms that don't support unaligned
accesses.
print-udp.c