[Bug 214832] if_pflog subrulenr incorrectly set

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 5 21:52:17 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214832

--- Comment #3 from commit-hook at freebsd.org ---
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 at gmail.com

Changes:
  head/sys/netpfil/pf/if_pflog.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list