]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/f_u32.c
tc: fix ipv6 filter selector attribute for some prefix lengths
[mirror_iproute2.git] / tc / f_u32.c
index 5815be9cd23e6c9809f375886cb54f035e537bfe..14b95889608809a994b33e1727dce721482e2de6 100644 (file)
@@ -385,8 +385,7 @@ static int parse_ip6_addr(int *argc_p, char ***argv_p,
 
        plen = addr.bitlen;
        for (i = 0; i < plen; i += 32) {
-               /* if (((i + 31) & ~0x1F) <= plen) { */
-               if (i + 31 <= plen) {
+               if (i + 31 < plen) {
                        res = pack_key(sel, addr.data[i / 32],
                                       0xFFFFFFFF, off + 4 * (i / 32), offmask);
                        if (res < 0)