]> The Tcpdump Group git mirrors - tcpdump/commit
Use the nd_uintN_t types more.
authorGuy Harris <[email protected]>
Wed, 7 Oct 2015 07:14:20 +0000 (00:14 -0700)
committerGuy Harris <[email protected]>
Wed, 7 Oct 2015 07:14:20 +0000 (00:14 -0700)
commitbfe9582ec625704c427b441dfa3a57d7a99604b8
tree8eeb76ef1e57f5f8b8d645388a8c85cef1cf0b12
parent6f1c171a6aac53ad3db8f6f8b74a98a6a76580a1
Use the nd_uintN_t types more.

Define them in netdissect.h.

Use them in ip.h, and *don't* mark the structures as UNALIGNED; that
should no longer be necessary.

Add a new nd_ipv4 type to use as an IPv4 address; it represents the 4
bytes of IPv4 address as an array of unsigned chars, so that its natural
alignment is only on a byte boundary.

Those changes found some places where we weren't using
UNALIGNED_MEMCPY() to extract IPv4 addresses from packets; use it.
extract.h
ip.h
netdissect.h
print-esp.c
print-ip.c
print-rx.c
print-tcp.c