summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2018-09-07 14:16:23 +0000
committerkn <kn@cvs.openbsd.org>2018-09-07 14:16:23 +0000
commit469faee258e1f075ab6ef157030ea881b1b8fc28 (patch)
treee891952940244dbef511eea21cece7ead2bd03e4 /sbin
parent44763a2b25883fec9c4212267b1c7ef3d5b32b80 (diff)
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
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl_parser.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index fe9989a3dbb..4d5b03a33c7 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.330 2018/09/06 15:07:33 kn Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.331 2018/09/07 14:16:22 kn Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1583,15 +1583,8 @@ ifa_lookup(const 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->next = NULL;