summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDave Taht <dave@taht.net>2018-12-09 04:52:33 +0000
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2018-12-16 18:16:44 +0000
commitcd089c52de96e47cf99410f66701e04e24155b9a (patch)
tree2d3258c74c505a99daf852d035f0dcc9be50ddd6
parent1ac1c78b30dec00f940cc0d1de7b5fc08d8b4226 (diff)
proto: Support class-e addressing in netifd
Signed-off-by: Dave Taht <dave.taht@gmail.com> Acked-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> Acked-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--proto.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/proto.c b/proto.c
index 6047735..2819e30 100644
--- a/proto.c
+++ b/proto.c
@@ -131,11 +131,7 @@ parse_addr(struct interface *iface, const char *str, bool v6, int mask,
if (!parse_ip_and_netmask(af, str, &addr->addr, &addr->mask))
goto error;
- if (!v6) {
- if (IN_EXPERIMENTAL(ntohl(addr->addr.in.s_addr)))
- goto error;
-
- } else if (IN6_IS_ADDR_MULTICAST(&addr->addr.in6))
+ if (!v6 && IN6_IS_ADDR_MULTICAST(&addr->addr.in6))
goto error;
if (broadcast)