]> The Tcpdump Group git mirrors - tcpdump/commit
Don't use nd_ipv4 for non-packet data 813/head
authorBill Fenner <[email protected]>
Mon, 2 Dec 2019 02:25:50 +0000 (18:25 -0800)
committerBill Fenner <[email protected]>
Mon, 2 Dec 2019 12:18:28 +0000 (04:18 -0800)
commit485bd5fa51f3a80f10f6216205a0ef87af731e87
tree7cca0b8bf6813fcb4f745ccd38ea3c9491b6c408
parentcbd0d78fce1b7ef6019cb6cb7c3b2dc3393bdbd2
Don't use nd_ipv4 for non-packet data

nd_ipv4 was created for an unaligned field access inside of packet data,
so it should not be used for the rx_cache_entry.  Use uint32_t, and use
GET_IPV4_TO_NETWORK_ORDER instead of UNALIGNED_MEMCPY() to get the data
into them.
print-rx.c