]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337643:
authorkp <kp@FreeBSD.org>
Sun, 19 Aug 2018 00:42:05 +0000 (00:42 +0000)
committerkp <kp@FreeBSD.org>
Sun, 19 Aug 2018 00:42:05 +0000 (00:42 +0000)
commitf6e138cd13690a57e94b816e673ee68faf28bd08
tree438b25cd4b671670c3d78599dec94e424cbbc4bf
parent02f8199a18902245444f96f92bed334497db0b0d
MFC r337643:

pf: Fix 'set skip on' for groups

The pfi_skip_if() function sometimes caused skipping of groups to work,
if the members of the group used the groupname as a name prefix.
This is often the case, e.g. group lo usually contains lo0, lo1, ...,
but not always.

Rather than relying on the name explicitly check for group memberships.

Obtained from: OpenBSD (pf_if.c,v 1.62, pf_if.c,v 1.63)
sys/netpfil/pf/pf_if.c