diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-07-02 07:52:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-02 07:52:22 -0400 |
| commit | 0a9fcd96d186bf2bbbb7a9148ced1eeadfbd5e03 (patch) | |
| tree | cc8582fd1ca1b095f1a917b8c5077ccc392cb114 /zebra/zebra_mpls.c | |
| parent | 1e15822698cc62d0c30069688b5b2054acb21722 (diff) | |
| parent | 8643c2e5f7b5541f136a3dfff5abe5b537159442 (diff) | |
Merge pull request #8970 from ton31337/fix/use_IPV6_MAX_BITLEN
*: Do not use 32/128 numbers for prefixlen
Diffstat (limited to 'zebra/zebra_mpls.c')
| -rw-r--r-- | zebra/zebra_mpls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index a4576b310e..a2d1513ce4 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -613,7 +613,7 @@ static int nhlfe_nexthop_active_ipv4(zebra_nhlfe_t *nhlfe, /* Lookup nexthop in IPv4 routing table. */ memset(&p, 0, sizeof(struct prefix_ipv4)); p.family = AF_INET; - p.prefixlen = IPV4_MAX_PREFIXLEN; + p.prefixlen = IPV4_MAX_BITLEN; p.prefix = nexthop->gate.ipv4; rn = route_node_match(table, (struct prefix *)&p); @@ -662,7 +662,7 @@ static int nhlfe_nexthop_active_ipv6(zebra_nhlfe_t *nhlfe, /* Lookup nexthop in IPv6 routing table. */ memset(&p, 0, sizeof(struct prefix_ipv6)); p.family = AF_INET6; - p.prefixlen = IPV6_MAX_PREFIXLEN; + p.prefixlen = IPV6_MAX_BITLEN; p.prefix = nexthop->gate.ipv6; rn = route_node_match(table, (struct prefix *)&p); |
