summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-04-25 19:44:57 +0000
committerhenning <henning@openbsd.org>2003-04-25 19:44:57 +0000
commit1c97da90602f850b4f30c2fd1b9f64f6fd097617 (patch)
treeb081890ac1fcbbc82a5b511a1e8d652dc326d297
parentalways widen the imputed netmask if it is narrower than the specified octets. (diff)
downloadwireguard-openbsd-1c97da90602f850b4f30c2fd1b9f64f6fd097617.tar.xz
wireguard-openbsd-1c97da90602f850b4f30c2fd1b9f64f6fd097617.zip
kill a workaround now that inet_net_pton acts reasonably
-rw-r--r--sbin/pfctl/pfctl_parser.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index bac60218d5f..6208994e8bf 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.150 2003/04/05 23:56:32 henning Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.151 2003/04/25 19:44:57 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1043,10 +1043,6 @@ host_v4(const char *s, int mask)
h->ifname = NULL;
h->af = AF_INET;
h->addr.v.a.addr.addr32[0] = ina.s_addr;
- /* inet_net_pton acts strange w/ multicast addresses, RFC1112 */
- if (mask == -1 && h->addr.v.a.addr.addr8[0] >= 224 &&
- h->addr.v.a.addr.addr8[0] < 240)
- bits = 32;
set_ipmask(h, bits);
h->next = NULL;
h->tail = h;