From 99a9a0c9e045732e5977b24192e971ade92b59aa Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 27 May 2008 12:36:54 -0700 Subject: Change how link-detect is configured in build Rather that looking for /proc/sys/net/ipv4/conf, use --enable-linkdetect flag to configure. --- zebra/interface.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'zebra/interface.h') diff --git a/zebra/interface.h b/zebra/interface.h index 6f356686..6ab25bf4 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -234,11 +234,10 @@ extern int interface_list_proc (void); extern int ifaddr_proc_ipv6 (void); #endif /* HAVE_PROC_NET_IF_INET6 */ -#ifdef HAVE_PROC_NET_IPV4_CONF +#ifdef HAVE_LINKDETECT 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 -- cgit v1.2.3 From 6e69833249b701330913d80bd9b3c7c991ee61d5 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 28 May 2008 08:57:30 -0700 Subject: Add ipv6 link detect hooks Enable ipv6 link detect in kernel if needed. --- zebra/interface.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'zebra/interface.h') diff --git a/zebra/interface.h b/zebra/interface.h index 6ab25bf4..114270e7 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -237,9 +237,17 @@ extern int ifaddr_proc_ipv6 (void); #ifdef HAVE_LINKDETECT extern int if_linkdetect_on (const char *); extern int if_linkdetect_off (const char *); +# ifdef HAVE_IPV6 +extern int if_linkdetect_ipv6_on (const char *); +extern int if_linkdetect_ipv6_off (const char *); +# endif #else #define if_linkdetect_on(name) #define if_linkdetect_off(name) +# ifdef HAVE_IPV6 +#define if_linkdetect_ipv6_on(name) +#define if_linkdetect_ipv6_off(name) +# endif #endif -- cgit v1.2.3