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 /sharpd | |
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 'sharpd')
-rw-r--r-- | sharpd/sharp_vty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index 271696daf..f8c46894b 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -141,7 +141,7 @@ DEFPY(watch_nexthop_v4, watch_nexthop_v4_cmd, if (n) { type_import = false; - p.prefixlen = 32; + p.prefixlen = IPV4_MAX_BITLEN; p.u.prefix4 = nhop; p.family = AF_INET; } @@ -239,7 +239,7 @@ DEFPY (install_routes, if (start4.s_addr != INADDR_ANY) { prefix.family = AF_INET; - prefix.prefixlen = 32; + prefix.prefixlen = IPV4_MAX_BITLEN; prefix.u.prefix4 = start4; } else { prefix.family = AF_INET6; @@ -383,7 +383,7 @@ DEFPY (install_seg6_routes, if (start4.s_addr != INADDR_ANY) { prefix.family = AF_INET; - prefix.prefixlen = 32; + prefix.prefixlen = IPV4_MAX_BITLEN; prefix.u.prefix4 = start4; } else { prefix.family = AF_INET6; @@ -568,7 +568,7 @@ DEFPY (remove_routes, if (start4.s_addr != INADDR_ANY) { prefix.family = AF_INET; - prefix.prefixlen = 32; + prefix.prefixlen = IPV4_MAX_BITLEN; prefix.u.prefix4 = start4; } else { prefix.family = AF_INET6; @@ -878,7 +878,7 @@ DEFPY (neigh_discover, if (dst4.s_addr != INADDR_ANY) { prefix.family = AF_INET; - prefix.prefixlen = 32; + prefix.prefixlen = IPV4_MAX_BITLEN; prefix.u.prefix4 = dst4; } else { prefix.family = AF_INET6; |