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

Kristof Provost <[email protected]> changed:

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

--- Comment #8 from Kristof Provost <[email protected]> ---
(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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to "[email protected]"

Reply via email to