[Bug 223208] [pf] pf.conf syntax (:peer) rules load incorrectly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 12 02:32:34 UTC 2017


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

Kristof Provost <kp at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |In Progress

--- Comment #8 from Kristof Provost <kp at freebsd.org> ---
(In reply to Kristof Provost from comment #7)
I still don't fully understand why this happens only if the tun0 interface has
an IPv6 address assigned, but this fixes it.

diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index a47dfd04103..d9abd9a0610 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1392,6 +1396,7 @@ ifa_lookup(const char *ifa_name, int flags)
                                set_ipmask(n, 128);
                }
                n->ifindex = p->ifindex;
+               n->ifname = strdup(p->ifname);

                n->next = NULL;
                n->tail = n;

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


More information about the freebsd-pf mailing list