summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-01 16:53:21 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-01 16:53:21 +0200
commit13ccce6e7e5b6f7801910fca53c4c45502bf6213 (patch)
tree1137ab12737b73f976df3df678ab826a8d335c71 /ripngd
parent*: Replace IPV4_MAX_PREFIXLEN to IPV4_MAX_BITLEN (diff)
downloadfrr-13ccce6e7e5b6f7801910fca53c4c45502bf6213.tar.xz
frr-13ccce6e7e5b6f7801910fca53c4c45502bf6213.zip
*: Convert numeric 128 into IPV6_MAX_BITLEN for prefixlen
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripngd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index a0ea18f3e..cbd2c2289 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -1194,7 +1194,7 @@ static void ripng_response_process(struct ripng_packet *packet, int size,
/* - is the prefix length valid (i.e., between 0 and 128,
inclusive) */
- if (rte->prefixlen > 128) {
+ if (rte->prefixlen > IPV6_MAX_BITLEN) {
zlog_warn("Invalid prefix length %pI6/%d from %pI6%%%s",
&rte->addr, rte->prefixlen,
&from->sin6_addr, ifp->name);