]> The Tcpdump Group git mirrors - tcpdump/commit
Use EXTRACT_16BITS() and EXTRACT_32BITS() to fetch integral values.
authorGuy Harris <[email protected]>
Wed, 27 Jan 2010 01:56:36 +0000 (17:56 -0800)
committerGuy Harris <[email protected]>
Wed, 27 Jan 2010 01:56:36 +0000 (17:56 -0800)
commit67c76d583f34b21d225f01dfdbecbf8468dddbdd
tree1cea1ea3d4897840b39ce4a753c37a44e37021f4
parent0e5561f7c7a905295a126bb8f6c1b160e6ffc380
Use EXTRACT_16BITS() and EXTRACT_32BITS() to fetch integral values.

Use EXTRACT_16BITS() and EXTRACT_32BITS() to fetch 16-bit and 32-bit
big-endian quantities from the packet, as there's no guarantee that a
given 16-bit quantity will be aligned on a 2-byte boundary or that a
given 32-bit quantity will be aligned on a 4-byte boundary, nor is there
a guarantee that unaligned accesses will succeed (they might trap, or
they might not fetch an unaligned quantity).
print-forces.c