summaryrefslogtreecommitdiffstats
path: root/include/net/ip6_fib.h
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2007-12-08 09:14:54 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-28 23:56:59 +0100
commit7e5449c21562f1554d2c355db1ec9d3e4f434288 (patch)
tree96e0eede0ade3339b6d4e202f77e4eecf658da4b /include/net/ip6_fib.h
parent[IPV6]: remove ifdef in route6 for xfrm6 (diff)
downloadlinux-7e5449c21562f1554d2c355db1ec9d3e4f434288.tar.xz
linux-7e5449c21562f1554d2c355db1ec9d3e4f434288.zip
[IPV6]: route6 remove ifdef for fib_rules
The patch defines the usual static inline functions when the code is disabled for fib6_rules. That's allow to remove some ifdef in route.c file and make the code a little more clear. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip6_fib.h')
-rw-r--r--include/net/ip6_fib.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h
index eaa315868792..14830edc2ac0 100644
--- a/include/net/ip6_fib.h
+++ b/include/net/ip6_fib.h
@@ -226,8 +226,18 @@ extern void fib6_gc_cleanup(void);
extern int fib6_init(void);
+#ifdef CONFIG_IPV6_MULTIPLE_TABLES
extern int fib6_rules_init(void);
extern void fib6_rules_cleanup(void);
-
+#else
+static inline int fib6_rules_init(void)
+{
+ return 0;
+}
+static inline void fib6_rules_cleanup(void)
+{
+ return ;
+}
+#endif
#endif
#endif