Skip to content

Commit 564a8bc

Browse files
authored
Merge pull request #17445 from cscarpitta/fix/sharp-use-ipv6-max-bitlen
sharpd: Convert numeric 128 into IPV6_MAX_BITLEN for prefixlen
2 parents 0e2e4ec + 58b2e8c commit 564a8bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sharpd/sharp_vty.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ DEFPY (install_seg6local_routes,
503503
sg.r.opaque[0] = '\0';
504504
sg.r.inst = 0;
505505
sg.r.orig_prefix.family = AF_INET6;
506-
sg.r.orig_prefix.prefixlen = 128;
506+
sg.r.orig_prefix.prefixlen = IPV6_MAX_BITLEN;
507507
sg.r.orig_prefix.u.prefix6 = start6;
508508

509509
if (!vrf_name)
@@ -945,7 +945,7 @@ DEFPY (neigh_discover,
945945
prefix.u.prefix4 = dst4;
946946
} else {
947947
prefix.family = AF_INET6;
948-
prefix.prefixlen = 128;
948+
prefix.prefixlen = IPV6_MAX_BITLEN;
949949
prefix.u.prefix6 = dst6;
950950
}
951951

0 commit comments

Comments
 (0)