]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pfctl: Another set skip <group> fix
authorKristof Provost <kp@FreeBSD.org>
Mon, 11 Jan 2021 13:09:08 +0000 (14:09 +0100)
committerKristof Provost <kp@FreeBSD.org>
Thu, 14 Jan 2021 08:39:57 +0000 (09:39 +0100)
commitf9b0587dc2f98800f9f72944fd66a695200c554b
treeb1fd4cc7932d480cc2b6acc52479a932f8d72624
parent49038d1723a9d45e064f482d510230ed5395b675
pfctl: Another set skip <group> fix

When retrieving the list of group members we cannot simply use
ifa_lookup(), because it expects the interface to have an IP (v4 or v6)
address. This means that interfaces with no address are not found.
This presents as interfacing being alternately marked as skip and not
whenever the rules are re-loaded.

Happily we only need to fix ifa_grouplookup(). Teach it to also accept
AF_LINK (i.e. interface) node_hosts.

PR:      250994
MFC after: 3 days

(cherry picked from commit 0c156a3c32cd0d9168570da5686ddc96abcbbc5a)
sbin/pfctl/pfctl_parser.c