tcpdump: Fix data alignment issue in WireGuard printer
authorvisa <visa@openbsd.org>
Thu, 16 Sep 2021 12:35:20 +0000 (12:35 +0000)
committervisa <visa@openbsd.org>
Thu, 16 Sep 2021 12:35:20 +0000 (12:35 +0000)
commit549eab54c481a9723ec27ef854ab4aaff2e31879
treec995913e41ad88c4230d08e3e630ecaf5716c5f6
parent6b3cd88aa8f259cf7d64b01f17b5747bdaae3b7f
tcpdump: Fix data alignment issue in WireGuard printer

Access 8-byte nonce as unaligned data to avoid a crash on strict
alignment architectures. With IP and UDP, payload alignment is
guaranteed to 4-byte boundary only.

Reported and tested by Peter J. Philipp

OK deraadt@
usr.sbin/tcpdump/print-wg.c