summaryrefslogtreecommitdiffstats
path: root/ripd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-01 16:42:03 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-01 16:44:09 +0200
commit936fbaef4794277a56185c535574df0f2771c117 (patch)
tree22e9f5b8ccaddd165187244bde90fdd61492630c /ripd
parent*: Replace IPV6_MAX_PREFIXLEN to IPV6_MAX_BITLEN (diff)
downloadfrr-936fbaef4794277a56185c535574df0f2771c117.tar.xz
frr-936fbaef4794277a56185c535574df0f2771c117.zip
*: Replace IPV4_MAX_PREFIXLEN to IPV4_MAX_BITLEN
Just drop IPV4_MAX_PREFIXLEN at all, no need keeping both. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ripd')
-rw-r--r--ripd/rip_interface.c2
-rw-r--r--ripd/ripd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c
index bdae2c5ef..7a8e10f30 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(
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 7d940efd9..fe4a349b1 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -2429,7 +2429,7 @@ static void rip_update_interface(struct connected *ifc, uint8_t version,
/* use specified broadcast or peer destination
* addr */
to.sin_addr = ifc->destination->u.prefix4;
- else if (ifc->address->prefixlen < IPV4_MAX_PREFIXLEN)
+ else if (ifc->address->prefixlen < IPV4_MAX_BITLEN)
/* calculate the appropriate broadcast address
*/
to.sin_addr.s_addr = ipv4_broadcast_addr(