]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/libip/parseip.c
etheriwl: don't break controller on command flush timeout
[plan9front.git] / sys / src / libip / parseip.c
index ab7bfe0c845881705d7449d7b515416a12b34b7d..1bad8b01339eef50d0530c993552ff46f6935743 100644 (file)
@@ -156,7 +156,7 @@ parseipmask(uchar *to, char *from, int v4)
                x = parseip(to, from);
                if(memcmp(to, v4prefix, IPv4off) == 0)
                        memset(to, 0xff, IPv4off);
-               else if(v4)
+               else if(v4 && memcmp(to, IPallbits, IPv4off) != 0)
                        x = -1;
        }
        return x;