summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_vty.c2
-rw-r--r--lib/if.c2
-rw-r--r--lib/if.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 2e9758a9..2d63dcbe 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -8796,7 +8796,7 @@ static struct cmd_node bgp_ipv4_multicast_node =
1,
};
-static struct cmd_node bgp_ipv6_unicast_node =
+static struct cmd_node bgp_ipv6_unicast_node =
{
BGP_IPV6_NODE,
"%s(config-router-af)# ",
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)));
}