diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-12 05:33:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:08 -0500 |
commit | 90754f8ec011c91382ece2849a43b8f8aa8a0105 (patch) | |
tree | f7c6a67a69a62d22988a5218d1a2909c32aacf44 /include/net | |
parent | b5ccd792fa413f9336273cb8fa3b9dd3a7ec1735 (diff) |
[IPVS]: Switch to using ctl_paths.
The feature of ipvs ctls is that the net/ipv4/vs path
is common for core ipvs ctls and for two schedulers,
so I make it exported and re-use it in modules.
Two other .c files required linux/sysctl.h to make the
extern declaration of this path compile well.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_vs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 3de6d1e6afa7..56f3c94ae620 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -9,6 +9,8 @@ | |||
9 | #include <asm/types.h> /* For __uXX types */ | 9 | #include <asm/types.h> /* For __uXX types */ |
10 | #include <linux/types.h> /* For __beXX types in userland */ | 10 | #include <linux/types.h> /* For __beXX types in userland */ |
11 | 11 | ||
12 | #include <linux/sysctl.h> /* For ctl_path */ | ||
13 | |||
12 | #define IP_VS_VERSION_CODE 0x010201 | 14 | #define IP_VS_VERSION_CODE 0x010201 |
13 | #define NVERSION(version) \ | 15 | #define NVERSION(version) \ |
14 | (version >> 16) & 0xFF, \ | 16 | (version >> 16) & 0xFF, \ |
@@ -854,6 +856,7 @@ extern int sysctl_ip_vs_expire_quiescent_template; | |||
854 | extern int sysctl_ip_vs_sync_threshold[2]; | 856 | extern int sysctl_ip_vs_sync_threshold[2]; |
855 | extern int sysctl_ip_vs_nat_icmp_send; | 857 | extern int sysctl_ip_vs_nat_icmp_send; |
856 | extern struct ip_vs_stats ip_vs_stats; | 858 | extern struct ip_vs_stats ip_vs_stats; |
859 | extern struct ctl_path net_vs_ctl_path[]; | ||
857 | 860 | ||
858 | extern struct ip_vs_service * | 861 | extern struct ip_vs_service * |
859 | ip_vs_service_get(__u32 fwmark, __u16 protocol, __be32 vaddr, __be16 vport); | 862 | ip_vs_service_get(__u32 fwmark, __u16 protocol, __be32 vaddr, __be16 vport); |