]> The Tcpdump Group git mirrors - tcpdump/commit
Don't directly fetch multi-byte integers from packets.
authorGuy Harris <[email protected]>
Sun, 21 Feb 2010 08:27:00 +0000 (00:27 -0800)
committerGuy Harris <[email protected]>
Sun, 21 Feb 2010 08:27:00 +0000 (00:27 -0800)
commite8b523758959c1854689d71c7a4686c631e5501c
tree67d50632c8f8f0410d2a8d227a78709a7aca1ca2
parentb00042a8ae3656f01e022bf6df1eb761e6323d3d
Don't directly fetch multi-byte integers from packets.

Use the EXTRACT_ macros to extract multi-byte integral values from
packets, rather than just dereferencing pointers into the packet; there
is no guarantee that the packet data will be aligned on the right
boundary, and there is no guarantee that, if they're not, a direct
access will work correctly.
15 files changed:
print-ap1394.c
print-arcnet.c
print-bt.c
print-dccp.c
print-enc.c
print-esp.c
print-ether.c
print-icmp6.c
print-ospf.c
print-pflog.c
print-ppp.c
print-sll.c
print-symantec.c
print-tcp.c
print-token.c