diff options
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r-- | include/net/ip_vs.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 86aefed6140b..4fff432aeade 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -8,9 +8,6 @@ | |||
8 | 8 | ||
9 | #include <linux/ip_vs.h> /* definitions shared with userland */ | 9 | #include <linux/ip_vs.h> /* definitions shared with userland */ |
10 | 10 | ||
11 | /* old ipvsadm versions still include this file directly */ | ||
12 | #ifdef __KERNEL__ | ||
13 | |||
14 | #include <asm/types.h> /* for __uXX types */ | 11 | #include <asm/types.h> /* for __uXX types */ |
15 | 12 | ||
16 | #include <linux/sysctl.h> /* for ctl_path */ | 13 | #include <linux/sysctl.h> /* for ctl_path */ |
@@ -668,9 +665,7 @@ struct ip_vs_dest { | |||
668 | struct dst_entry *dst_cache; /* destination cache entry */ | 665 | struct dst_entry *dst_cache; /* destination cache entry */ |
669 | u32 dst_rtos; /* RT_TOS(tos) for dst */ | 666 | u32 dst_rtos; /* RT_TOS(tos) for dst */ |
670 | u32 dst_cookie; | 667 | u32 dst_cookie; |
671 | #ifdef CONFIG_IP_VS_IPV6 | 668 | union nf_inet_addr dst_saddr; |
672 | struct in6_addr dst_saddr; | ||
673 | #endif | ||
674 | 669 | ||
675 | /* for virtual service */ | 670 | /* for virtual service */ |
676 | struct ip_vs_service *svc; /* service it belongs to */ | 671 | struct ip_vs_service *svc; /* service it belongs to */ |
@@ -1256,7 +1251,8 @@ extern int ip_vs_tunnel_xmit | |||
1256 | extern int ip_vs_dr_xmit | 1251 | extern int ip_vs_dr_xmit |
1257 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); | 1252 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); |
1258 | extern int ip_vs_icmp_xmit | 1253 | extern int ip_vs_icmp_xmit |
1259 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, int offset); | 1254 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, |
1255 | int offset, unsigned int hooknum); | ||
1260 | extern void ip_vs_dst_reset(struct ip_vs_dest *dest); | 1256 | extern void ip_vs_dst_reset(struct ip_vs_dest *dest); |
1261 | 1257 | ||
1262 | #ifdef CONFIG_IP_VS_IPV6 | 1258 | #ifdef CONFIG_IP_VS_IPV6 |
@@ -1270,7 +1266,7 @@ extern int ip_vs_dr_xmit_v6 | |||
1270 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); | 1266 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); |
1271 | extern int ip_vs_icmp_xmit_v6 | 1267 | extern int ip_vs_icmp_xmit_v6 |
1272 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, | 1268 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, |
1273 | int offset); | 1269 | int offset, unsigned int hooknum); |
1274 | #endif | 1270 | #endif |
1275 | 1271 | ||
1276 | #ifdef CONFIG_SYSCTL | 1272 | #ifdef CONFIG_SYSCTL |
@@ -1432,6 +1428,4 @@ ip_vs_dest_conn_overhead(struct ip_vs_dest *dest) | |||
1432 | atomic_read(&dest->inactconns); | 1428 | atomic_read(&dest->inactconns); |
1433 | } | 1429 | } |
1434 | 1430 | ||
1435 | #endif /* __KERNEL__ */ | ||
1436 | |||
1437 | #endif /* _NET_IP_VS_H */ | 1431 | #endif /* _NET_IP_VS_H */ |