diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-11-17 14:19:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-17 14:19:58 +0200 |
| commit | 564a8bca2c6513a59f84de74a52646b0feea241b (patch) | |
| tree | 43c39b1f2a20f7b2b676fdf2e33d5b2b5d567813 /sharpd/sharp_vty.c | |
| parent | 0e2e4ec1811d4ec46592a3a50b47b96c52c4e81f (diff) | |
| parent | 58b2e8c5b0000c52a0b6dac87ec896a8b7b18a3c (diff) | |
Merge pull request #17445 from cscarpitta/fix/sharp-use-ipv6-max-bitlen
sharpd: Convert numeric 128 into IPV6_MAX_BITLEN for prefixlen
Diffstat (limited to 'sharpd/sharp_vty.c')
| -rw-r--r-- | sharpd/sharp_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index e5b8c6d027..cb554835c0 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -503,7 +503,7 @@ DEFPY (install_seg6local_routes, sg.r.opaque[0] = '\0'; sg.r.inst = 0; sg.r.orig_prefix.family = AF_INET6; - sg.r.orig_prefix.prefixlen = 128; + sg.r.orig_prefix.prefixlen = IPV6_MAX_BITLEN; sg.r.orig_prefix.u.prefix6 = start6; if (!vrf_name) @@ -945,7 +945,7 @@ DEFPY (neigh_discover, prefix.u.prefix4 = dst4; } else { prefix.family = AF_INET6; - prefix.prefixlen = 128; + prefix.prefixlen = IPV6_MAX_BITLEN; prefix.u.prefix6 = dst6; } |
