]> The Tcpdump Group git mirrors - tcpdump/commit
pflog: use nd_ types in struct pfloghdr.
authorGuy Harris <[email protected]>
Mon, 21 Aug 2023 20:37:44 +0000 (13:37 -0700)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 13 Oct 2023 11:53:47 +0000 (13:53 +0200)
commit5f60f0fcabd8e85eda2446b75854f09812afc12b
tree2a990f25cc8a23a6281ae6be8787321b637cfeac
parent33dd94cbd7e2753eb7dbc6799c1a0de06e8a47e3
pflog: use nd_ types in struct pfloghdr.

This 1) makes sure that GET_ macros are used to extract data from the
structure (which they already were) and 2) avoids undefined behavior if
the structure isn't aligned on the appropriate memory boundary.

Fixes #1054.  (The SNMP issues are fixed by changes for #1012.)

(cherry picked from commit a0b785957c77e014b566949bf00ff746e2071813)
pflog.h
print-pflog.c