summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 01:33:52 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 01:33:52 +0200
commitc9506a0a6ea4a1729aca9ebdca425b902479e7cd (patch)
treecf9ff5da88c2b5ce392befb5677c5e1cbefc999c /lib
parentlogrotate-add-size.patch (diff)
downloadfrr-c9506a0a6ea4a1729aca9ebdca425b902479e7cd.tar.xz
frr-c9506a0a6ea4a1729aca9ebdca425b902479e7cd.zip
zebra-enable-link-detect-by-default.patch
zebra: Set link-detect on by default Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Reviewed-by: Dinesh G Dutt <ddutt at cumulusnetworks.com> Reviewed-by: Scott Feldman <sfeldma at cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/if.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/if.c b/lib/if.c
index 18e2fb314..532966410 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -132,6 +132,9 @@ if_create (const char *name, int namelen)
ifp->connected = list_new ();
ifp->connected->del = (void (*) (void *)) connected_free;
+ /* Enable Link-detection by default */
+ SET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION);
+
if (if_master.if_new_hook)
(*if_master.if_new_hook) (ifp);