diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 17:05:11 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 22:50:39 +0200 |
commit | 12256b84a540434485b16433f83aa23928405560 (patch) | |
tree | e1ef59c861d62e6527ebe87f6527142f18cfef8d /pbrd | |
parent | babeld: Drop in_prefix() function (diff) | |
download | frr-12256b84a540434485b16433f83aa23928405560.tar.xz frr-12256b84a540434485b16433f83aa23928405560.zip |
*: Convert numeric 32 into IPV4_MAX_BITLEN for prefixlen
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'pbrd')
-rw-r--r-- | pbrd/pbr_zebra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c index 6c353d949..a2eecbbf5 100644 --- a/pbrd/pbr_zebra.c +++ b/pbrd/pbr_zebra.c @@ -460,7 +460,7 @@ void pbr_send_rnh(struct nexthop *nhop, bool reg) case NEXTHOP_TYPE_IPV4_IFINDEX: p.family = AF_INET; p.u.prefix4.s_addr = nhop->gate.ipv4.s_addr; - p.prefixlen = 32; + p.prefixlen = IPV4_MAX_BITLEN; break; case NEXTHOP_TYPE_IPV6: case NEXTHOP_TYPE_IPV6_IFINDEX: |