summaryrefslogtreecommitdiffstats
path: root/zebra/interface.h
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/interface.h
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/interface.h')
-rw-r--r--zebra/interface.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/zebra/interface.h b/zebra/interface.h
index 0a6b0365..6f356686 100644
--- a/zebra/interface.h
+++ b/zebra/interface.h
@@ -234,6 +234,16 @@ extern int interface_list_proc (void);
extern int ifaddr_proc_ipv6 (void);
#endif /* HAVE_PROC_NET_IF_INET6 */
+#ifdef HAVE_PROC_NET_IPV4_CONF
+extern int if_linkdetect_on (const char *);
+extern int if_linkdetect_off (const char *);
+#else
+#error config
+#define if_linkdetect_on(name)
+#define if_linkdetect_off(name)
+#endif
+
+
#ifdef BSDI
extern int if_kvm_get_mtu (struct interface *);
#endif /* BSDI */