summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/if.c2
-rw-r--r--lib/if.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/if.c b/lib/if.c
index f15242a2..19daf75b 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -135,7 +135,7 @@ if_create (const char *name, int namelen)
ifp->connected = list_new ();
ifp->connected->del = (void (*) (void *)) connected_free;
-
+
if (if_master.if_new_hook)
(*if_master.if_new_hook) (ifp);
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)));
}