From 74d94167631ffd1b10709460510a1e3c8fc0e904 Mon Sep 17 00:00:00 2001 From: Jan Moskyto Matejka Date: Mon, 25 Jan 2016 10:29:06 +0100 Subject: [PATCH] RIPng: fixed misrejection of host routes --- proto/rip/packets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/rip/packets.c b/proto/rip/packets.c index d6968c96..e656af37 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);