]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
RIPng: fixed misrejection of host routes
authorJan Moskyto Matejka <mq@ucw.cz>
Mon, 25 Jan 2016 09:29:06 +0000 (10:29 +0100)
committerJan Moskyto Matejka <mq@ucw.cz>
Mon, 25 Jan 2016 09:29:06 +0000 (10:29 +0100)
proto/rip/packets.c

index d6968c96f0d66319dceb561d7474d71c1cf460f0..e656af3798106495d2ff22c875e65a0f91d7b5ac 100644 (file)
@@ -170,7 +170,7 @@ rip_get_block(struct rip_proto *p, byte *pos, struct rip_block *rte)
       return 0;
     }
 
-    uint pxlen = (block->pxlen < IP6_MAX_PREFIX_LENGTH) ? block->pxlen : 255;
+    uint pxlen = (block->pxlen <= IP6_MAX_PREFIX_LENGTH) ? block->pxlen : 255;
     net_fill_ip6(&rte->net, ip6_ntoh(block->prefix), pxlen);
     rte->metric = block->metric;
     rte->tag = ntohs(block->tag);