]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r309563: pflog: Correctly initialise subrulenr
authorkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 14 Dec 2016 21:30:35 +0000 (21:30 +0000)
committerkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 14 Dec 2016 21:30:35 +0000 (21:30 +0000)
commite3e55f520dc51b95938bb0245901c08f460fb285
tree090049811bf6e55235b1571f8524693e7cc78717
parentbe26d89d37312df99bd857984b094cf8085ff594
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@310094 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netpfil/pf/if_pflog.c