summaryrefslogtreecommitdiffstats
path: root/pbrd
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 /pbrd
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 'pbrd')
-rw-r--r--pbrd/pbr_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c
index eb41bf604..6c353d949 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -466,7 +466,7 @@ void pbr_send_rnh(struct nexthop *nhop, bool reg)
case NEXTHOP_TYPE_IPV6_IFINDEX:
p.family = AF_INET6;
memcpy(&p.u.prefix6, &nhop->gate.ipv6, 16);
- p.prefixlen = 128;
+ p.prefixlen = IPV6_MAX_BITLEN;
if (IN6_IS_ADDR_LINKLOCAL(&nhop->gate.ipv6))
/*
* Don't bother tracking link locals, just track their