Summary: | if_pflog subrulenr incorrectly set | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | andywhite | ||||
Component: | kern | Assignee: | Kristof Provost <kp> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | bz, kp, net, sbruno | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | 11.0-RELEASE | Flags: | koobs:
maintainer-feedback?
(kp) koobs: mfc-stable11? koobs: mfc-stable10? koobs: mfc-stable9? |
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
URL: | https://svnweb.freebsd.org/base/releng/11.0/sys/netpfil/pf/if_pflog.c?view=markup#l224 | ||||||
Attachments: |
|
Description
andywhite
2016-11-25 21:24:06 UTC
Created attachment 177396 [details]
patch to fix subrulenr
Adding folks who have done stuff/things in pf A commit references this bug: Author: kp Date: Mon Dec 5 21:52:11 UTC 2016 New revision: 309563 URL: https://svnweb.freebsd.org/changeset/base/309563 Log: pflog: Correctly initialise subrulenr subrulenr is considered unset if it's set to -1, not if it's set to 1. See contrib/tcpdump/print-pflog.c pflog_print() for a user. This caused incorrect pflog output (tcpdump -n -e -ttt -i pflog0): rule 0..16777216(match) instead of the correct output of rule 0/0(match) PR: 214832 Submitted by: andywhite@gmail.com Changes: head/sys/netpfil/pf/if_pflog.c Assign to committer resolving. Are stable/{11,10,9} affected? I believe this affects everything. The bug seems to have been introduced with a merge from OpenBSD about five years ago. Considering the low severity, the proximity of the EOL date and the pain of merging pf fixes back to it I'm not planning to merge this back to stable/9. MFC to stable/10 and stable/11 will be done in a week or so. A commit references this bug: Author: kp Date: Wed Dec 14 21:29:12 UTC 2016 New revision: 310093 URL: https://svnweb.freebsd.org/changeset/base/310093 Log: MFC r309563: pflog: Correctly initialise subrulenr subrulenr is considered unset if it's set to -1, not if it's set to 1. See contrib/tcpdump/print-pflog.c pflog_print() for a user. This caused incorrect pflog output (tcpdump -n -e -ttt -i pflog0): rule 0..16777216(match) instead of the correct output of rule 0/0(match) PR: 214832 Submitted by: andywhite@gmail.com Changes: _U stable/11/ stable/11/sys/netpfil/pf/if_pflog.c A commit references this bug: Author: kp Date: Wed Dec 14 21:30:35 UTC 2016 New revision: 310094 URL: https://svnweb.freebsd.org/changeset/base/310094 Log: MFC r309563: pflog: Correctly initialise subrulenr subrulenr is considered unset if it's set to -1, not if it's set to 1. See contrib/tcpdump/print-pflog.c pflog_print() for a user. This caused incorrect pflog output (tcpdump -n -e -ttt -i pflog0): rule 0..16777216(match) instead of the correct output of rule 0/0(match) PR: 214832 Submitted by: andywhite@gmail.com Changes: _U stable/10/ stable/10/sys/netpfil/pf/if_pflog.c |