summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if.h b/lib/if.h
index 9a250906..ed79cabf 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -277,7 +277,7 @@ static inline int
if_is_operative (const struct interface *ifp)
{
return ((ifp->flags & IFF_UP) &&
- (ifp->flags & IFF_RUNNING ||
+ ((ifp->flags & IFF_RUNNING) ||
!CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION)));
}