From: Jan Moskyto Matejka Date: Mon, 25 Jan 2016 09:29:06 +0000 (+0100) Subject: RIPng: fixed misrejection of host routes X-Git-Tag: v2.0.0-pre0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74d94167631ffd1b10709460510a1e3c8fc0e904;p=thirdparty%2Fbird.git RIPng: fixed misrejection of host routes --- diff --git a/proto/rip/packets.c b/proto/rip/packets.c index d6968c96f..e656af379 100644 --- a/proto/rip/packets.c +++ b/proto/rip/packets.c @@ -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);