summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2018-12-17 18:26:11 +0000
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2018-12-17 18:26:11 +0000
commit2750ce2e0a9177e024823332853c76dbd0937c98 (patch)
tree97bc13607683978b7130db6bb35dddf742db3394
parentcd089c52de96e47cf99410f66701e04e24155b9a (diff)
downloadnetifd-2750ce2e0a9177e024823332853c76dbd0937c98.tar.gz
proto: fix logic inversion in previous commit
Rogue ! effectively disabled the ipv6 multicast check. Fix cd089c52 Why is it always the simple changes that catch you out? Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
-rw-r--r--proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto.c b/proto.c
index 2819e30..cbc92b1 100644
--- a/proto.c
+++ b/proto.c
@@ -131,7 +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 && IN6_IS_ADDR_MULTICAST(&addr->addr.in6))
+ if (v6 && IN6_IS_ADDR_MULTICAST(&addr->addr.in6))
goto error;
if (broadcast)