]> The Tcpdump Group git mirrors - tcpdump/commit
Handle DLT_PFLOG on all OSes.
authorGuy Harris <[email protected]>
Sun, 30 Jan 2022 06:30:33 +0000 (22:30 -0800)
committerGuy Harris <[email protected]>
Sun, 30 Jan 2022 06:30:33 +0000 (22:30 -0800)
commitfe762c04a6d3bbf7f1a21ebf825075e2fb201acc
tree122a84015317023db03bf20ff91d2370eff0b1dd
parent65f4c88d27fa3a333b7f5303c34d8d10999e1d4d
Handle DLT_PFLOG on all OSes.

Don't pad the pflog header with BPF_WORDALIGN(); round up to a multiple
of 4, instead, as that's what all but FreeBSD do, and FreeBSD used to do
that and should go back to doing so (kern/261566).

Don't rely on the OS's pflog include files to define direction types,
reason types, action types, or the layout of the header; instead, define
them ourselves in a header of our own, with #ifs to select the ones that
are only on some platforms.  That way, it'll handle some fields and
field values (the ones common to all OSes with pflog) on all OSes, even
ones without pflog.

That also expands the set of direction, reason, and action codes to what
various *BSDs and Darwin support.

Also, handle all the different AF_INET6 values in various *BSDs and
Darwin.
CMakeLists.txt
Makefile.in
cmakeconfig.h.in
config.h.in
configure
configure.ac
pflog.h [new file with mode: 0644]
print-pflog.c
print.c