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 /ripd/rip_interface.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 'ripd/rip_interface.c')
| -rw-r--r-- | ripd/rip_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index bdae2c5ef5..7a8e10f30b 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -160,7 +160,7 @@ static void rip_request_interface_send(struct interface *ifp, uint8_t version) * destination addr */ to.sin_addr = connected->destination->u.prefix4; else if (connected->address->prefixlen - < IPV4_MAX_PREFIXLEN) + < IPV4_MAX_BITLEN) /* calculate the appropriate broadcast * address */ to.sin_addr.s_addr = ipv4_broadcast_addr( |
