On powerpc64 tcpdump(8) could not parse wireguard packets.
authorbluhm <bluhm@openbsd.org>
Wed, 14 Apr 2021 19:34:56 +0000 (19:34 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 14 Apr 2021 19:34:56 +0000 (19:34 +0000)
commit7c09302a71611d9c0eb9dbd19aa8b21c92a27224
tree2f08b27cf31ef106e53d2a20c73161cfe689c729
parent4a00f2e1fd2428105e2ab87ccf7267c9732da136
On powerpc64 tcpdump(8) could not parse wireguard packets.
EXTRACT_LE_32BITS() converts the type from little endian to host
endian.  So we need the constants in host endianess.  This fixes
regress/sys/net/wg.
OK deraadt@ sthen@
usr.sbin/tcpdump/print-wg.c