Skip to content

Commit

Permalink
Merge pull request #17445 from cscarpitta/fix/sharp-use-ipv6-max-bitlen
Browse files Browse the repository at this point in the history
sharpd: Convert numeric 128 into IPV6_MAX_BITLEN for prefixlen
  • Loading branch information
ton31337 authored Nov 17, 2024
2 parents 0e2e4ec + 58b2e8c commit 564a8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sharpd/sharp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 564a8bc

Please sign in to comment.