summaryrefslogtreecommitdiffstats
path: root/zebra/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 916c58a6..74c977a9 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -32,7 +32,6 @@
#include "connected.h"
#include "log.h"
#include "zclient.h"
-#include "ipforward.h"
#include "zebra/interface.h"
#include "zebra/rtadv.h"
@@ -49,8 +48,7 @@ if_zebra_new_hook (struct interface *ifp)
{
struct zebra_if *zebra_if;
- zebra_if = XMALLOC (MTYPE_TMP, sizeof (struct zebra_if));
- memset (zebra_if, 0, sizeof (struct zebra_if));
+ zebra_if = XCALLOC (MTYPE_TMP, sizeof (struct zebra_if));
zebra_if->multicast = IF_ZEBRA_MULTICAST_UNSPEC;
zebra_if->shutdown = IF_ZEBRA_SHUTDOWN_UNSPEC;
@@ -1032,12 +1030,6 @@ DEFUN (linkdetect,
if_was_operative = if_is_operative(ifp);
SET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION);
- /* Enable FIB to remove kernel routes as well */
- if_linkdetect_on(ifp->name);
-#ifdef HAVE_IPV6
- if_linkdetect_ipv6_on(ifp->name);
-#endif
-
/* When linkdetection is enabled, if might come down */
if (!if_is_operative(ifp) && if_was_operative) if_down(ifp);
@@ -1061,12 +1053,6 @@ DEFUN (no_linkdetect,
if_was_operative = if_is_operative(ifp);
UNSET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION);
- /* Disable FIB update on link-detect */
- if_linkdetect_off(ifp->name);
-#ifdef HAVE_IPV6
- if_linkdetect_ipv6_off(ifp->name);
-#endif
-
/* Interface may come up after disabling link detection */
if (if_is_operative(ifp) && !if_was_operative) if_up(ifp);