summaryrefslogtreecommitdiffstats
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-01 17:05:11 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-01 22:50:39 +0200
commit12256b84a540434485b16433f83aa23928405560 (patch)
treee1ef59c861d62e6527ebe87f6527142f18cfef8d /zebra/connected.c
parentbabeld: Drop in_prefix() function (diff)
downloadfrr-12256b84a540434485b16433f83aa23928405560.tar.xz
frr-12256b84a540434485b16433f83aa23928405560.zip
*: Convert numeric 32 into IPV4_MAX_BITLEN for prefixlen
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'zebra/connected.c')
-rw-r--r--zebra/connected.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/connected.c b/zebra/connected.c
index 1c3dfe2a2..e1dd0dbdf 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -75,7 +75,7 @@ static void connected_announce(struct interface *ifp, struct connected *ifc)
if (!if_is_loopback(ifp) && ifc->address->family == AF_INET &&
!IS_ZEBRA_IF_VRF(ifp)) {
- if (ifc->address->prefixlen == 32)
+ if (ifc->address->prefixlen == IPV4_MAX_BITLEN)
SET_FLAG(ifc->flags, ZEBRA_IFA_UNNUMBERED);
else
UNSET_FLAG(ifc->flags, ZEBRA_IFA_UNNUMBERED);