Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2017 02:32:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        pf@FreeBSD.org
Subject:   [Bug 223208] [pf] pf.conf syntax (:peer) rules load incorrectly
Message-ID:  <bug-223208-16861-ETaXP5X6tH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223208-16861@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223208-16861@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223208

Kristof Provost <kp@freebsd.org> changed:

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

--- Comment #8 from Kristof Provost <kp@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 =3D p->ifindex;
+               n->ifname =3D strdup(p->ifname);

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223208-16861-ETaXP5X6tH>