aboutsummaryrefslogtreecommitdiff
path: root/sys/net/pfvar.h
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2024-01-02 14:52:39 +0000
committerKristof Provost <kp@FreeBSD.org>2024-01-04 22:08:08 +0000
commit948e8413aba0ee600ceb563cee048a6ef74a6a2c (patch)
tree7758a2dfce54e10b9ccfc64bd814ee48f41247c0 /sys/net/pfvar.h
parent5f840a1758b4bbb4892118f43f40c6487c17aeba (diff)
downloadsrc-948e8413aba0ee600ceb563cee048a6ef74a6a2c.tar.gz
src-948e8413aba0ee600ceb563cee048a6ef74a6a2c.zip
pflog: pass the action to pflog directly
If a packet is malformed, it is dropped by pf(4). The rule referenced in pflog(4) is the default rule. As the default rule is a pass rule, tcpdump printed "pass" although the packet was actually dropped. Use the actual action, rather than the rule's action, or an attempt at guessing the correct action. Inspired by OpenBSD's 'pflog(4) logs packet dropped by default rule with block.' commit. Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r--sys/net/pfvar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 48162b786a86..020b79ded94c 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1208,7 +1208,7 @@ void pf_state_export(struct pf_state_export *,
struct pf_kruleset;
struct pf_pdesc;
typedef int pflog_packet_t(struct pfi_kkif *, struct mbuf *, sa_family_t,
- u_int8_t, struct pf_krule *, struct pf_krule *, struct pf_kruleset *,
+ uint8_t, u_int8_t, struct pf_krule *, struct pf_krule *, struct pf_kruleset *,
struct pf_pdesc *, int);
extern pflog_packet_t *pflog_packet_ptr;