Page MenuHomeFreeBSD

D31504.diff
No OneTemporary

D31504.diff

diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -3629,6 +3629,11 @@
KASSERT(sk != NULL, ("%s: null sk", __func__));
KASSERT(nk != NULL, ("%s: null nk", __func__));
+ if (nr->log) {
+ PFLOG_PACKET(kif, m, af, direction, PFRES_MATCH, nr, a,
+ ruleset, pd, 1);
+ }
+
if (pd->ip_sum)
bip_sum = *pd->ip_sum;
@@ -3857,10 +3862,10 @@
/* apply actions for last matching pass/block rule */
pf_rule_to_actions(r, &pd->act);
- if (r->log || (nr != NULL && nr->log)) {
+ if (r->log) {
if (rewrite)
m_copyback(m, off, hdrlen, pd->hdr.any);
- PFLOG_PACKET(kif, m, af, direction, reason, r->log ? r : nr, a,
+ PFLOG_PACKET(kif, m, af, direction, reason, r, a,
ruleset, pd, 1);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 2:00 PM (18 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14698935
Default Alt Text
D31504.diff (780 B)

Event Timeline