]> The Tcpdump Group git mirrors - tcpdump/commitdiff
pflog: support PF_MATCH on FreeBSD as well.
authorGuy Harris <[email protected]>
Mon, 9 Sep 2024 06:57:08 +0000 (23:57 -0700)
committerGuy Harris <[email protected]>
Mon, 9 Sep 2024 07:04:17 +0000 (00:04 -0700)
(backported from commit 2b4abccb0781839e3036cbcbd14ced1dcd38099f)

pflog.h
print-pflog.c

diff --git a/pflog.h b/pflog.h
index dda3e48603149328fc20ca3f1371f01b44c1c9a1..f5ffebf50b4a5441da3151ab6fe3327fbde4e614 100644 (file)
--- a/pflog.h
+++ b/pflog.h
@@ -92,6 +92,7 @@
 #define PF_SYNPROXY_DROP       10
 #if defined(__FreeBSD__)
 #define PF_DEFER               11
+#define PF_MATCH               12
 #elif defined(__OpenBSD__)
 #define PF_DEFER               11
 #define PF_MATCH               12
index 952806e190b7bbfc7ca6739a3b8502d7fcf45cee..787dbac1424d11d85ad5728b6539b13ce769fe93 100644 (file)
@@ -74,6 +74,7 @@ static const struct tok pf_actions[] = {
        { PF_SYNPROXY_DROP,     "synproxy-drop" },
 #if defined(__FreeBSD__)
        { PF_DEFER,             "defer" },
+       { PF_MATCH,             "match" },
 #elif defined(__OpenBSD__)
        { PF_DEFER,             "defer" },
        { PF_MATCH,             "match" },