summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2014-08-12 14:42:06 +0000
committermikeb <mikeb@openbsd.org>2014-08-12 14:42:06 +0000
commit247e78d2b99f5d6d6137f0983ade1b6d55189a8a (patch)
treeb03d5a6b8292cc07bc46fb87f5505d1f84d85e87 /sys/net/pf_ioctl.c
parentApart from some minor code reshuffling the big change is that we (diff)
downloadwireguard-openbsd-247e78d2b99f5d6d6137f0983ade1b6d55189a8a.tar.xz
wireguard-openbsd-247e78d2b99f5d6d6137f0983ade1b6d55189a8a.zip
Make sure that pf_step_into_anchor always saves a pointer to the rule
that owns the anchor on the pf anchor stack. There's no reason why we should check for depth here. As a side effect this makes sure that the correct nested anchor gets it's counter bumped instead of the top most. For the save/restore symmetry pf_step_out_of_anchor is made to always restore previous value of the anchor rule. depth == 0 means what we a at the top (main ruleset). OK henning
Diffstat (limited to 'sys/net/pf_ioctl.c')
0 files changed, 0 insertions, 0 deletions