proto: Support class-e addressing in netifd
authorDave Taht <dave@taht.net>
Sun, 9 Dec 2018 04:52:33 +0000 (04:52 +0000)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sun, 16 Dec 2018 18:16:44 +0000 (18:16 +0000)
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>
proto.c

diff --git a/proto.c b/proto.c
index 6047735..2819e30 100644 (file)
--- 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)