diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2016-01-25 10:29:06 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2016-01-25 10:29:06 +0100 |
commit | 74d94167631ffd1b10709460510a1e3c8fc0e904 (patch) | |
tree | 9f42ec752fc9543087c32b6a884fe2cd8ef125f0 /proto | |
parent | 2fad92144ee2e3a818a7510554d2144e46c3a4c8 (diff) |
RIPng: fixed misrejection of host routes
Diffstat (limited to 'proto')
-rw-r--r-- | proto/rip/packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |