The branch main has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=35f70f6a33ff9651974878ff9290dbb97d5f7888

commit 35f70f6a33ff9651974878ff9290dbb97d5f7888
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2025-06-27 12:40:21 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2025-07-02 07:40:53 +0000

    pfctl: Remove wildcard address on loopack remnants
    
    henning@ removed this functionality years ago, see the share/man/man4/lo.4
    revision 1.27.
    
    OK jca claudio
    
    Obtained from:  OpenBSD, kn <k...@openbsd.org>, 436479f1d8
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sbin/pfctl/pfctl_parser.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 401404865986..871a18ca6c28 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1756,15 +1756,8 @@ ifa_lookup(char *ifa_name, int flags)
                            sizeof(struct pf_addr));
                if (flags & PFI_AFLAG_NETWORK)
                        set_ipmask(n, unmask(&p->addr.v.a.mask));
-               else {
-                       if (n->af == AF_INET &&
-                           p->ifa_flags & IFF_LOOPBACK &&
-                           p->ifa_flags & IFF_LINK1)
-                               memcpy(&n->addr.v.a.mask, &p->addr.v.a.mask,
-                                   sizeof(struct pf_addr));
-                       else
-                               set_ipmask(n, -1);
-               }
+               else
+                       set_ipmask(n, -1);
                n->ifindex = p->ifindex;
                n->ifname = strdup(p->ifname);
 

Reply via email to