Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102817302
D31504.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
780 B
Referenced Files
None
Subscribers
None
D31504.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D31504: pf: always log nat rule and do it pre-rewrite
Attached
Detach File
Event Timeline
Log In to Comment