summaryrefslogtreecommitdiffstats
path: root/zebra/linkdetect_null.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-22 16:06:06 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-22 16:06:06 -0700
commit98c5476432c7a5d9b6eb79ef60262f79efa4588f (patch)
treebae10ae44fae81ecae1eea8e570c2894d60075c4 /zebra/linkdetect_null.c
parenta352c7a182f86d926191c31ed9d7e180e9a6287e (diff)
downloadquagga-98c5476432c7a5d9b6eb79ef60262f79efa4588f.tar.bz2
quagga-98c5476432c7a5d9b6eb79ef60262f79efa4588f.tar.xz
Turn on kernel link-detect
If interface has link-detect enabled, try and turn on link-detect in the kernel.
Diffstat (limited to 'zebra/linkdetect_null.c')
-rw-r--r--zebra/linkdetect_null.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/zebra/linkdetect_null.c b/zebra/linkdetect_null.c
new file mode 100644
index 00000000..c33363e1
--- /dev/null
+++ b/zebra/linkdetect_null.c
@@ -0,0 +1,16 @@
+/* NULL method for testing. */
+
+#include <zebra.h>
+
+
+int
+if_linkdetect_on (const char *name)
+{
+ return 0;
+}
+
+int
+if_linkdetect_off (const char *name)
+{
+ return 0;
+}