summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDinesh G Dutt <ddutt@cumulusnetworks.com>2014-09-30 12:39:24 -0700
committerPaul Jakma <paul@quagga.net>2014-10-28 11:06:00 +0000
commit773224404cb33b2dbd3d8d8d2572013603995ce4 (patch)
tree43a4c9582fd6b8befbebbc35d3980458ac0309cf
parentaed1b556cf2f55680ae09d7ad1a1f22729dea8c5 (diff)
downloadquagga-773224404cb33b2dbd3d8d8d2572013603995ce4.tar.bz2
quagga-773224404cb33b2dbd3d8d8d2572013603995ce4.tar.xz
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>
-rw-r--r--lib/if.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/if.c b/lib/if.c
index 3a1f9b41..2b46a1bb 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);