diff options
author | Julius Volz <juliusv@google.com> | 2008-09-02 09:55:45 -0400 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-09-04 21:17:08 -0400 |
commit | b3cdd2a73867d309dca288b8e820c09e3b7f1da1 (patch) | |
tree | 83f5ca34e353598ccd6c6cd58e0a9a94a7db03fd /include/net/ip_vs.h | |
parent | 38cdcc9a039b92a9972dca3c954fb3d8b3ef13bf (diff) |
IPVS: Add and bind IPv6 xmit functions
Add xmit functions for IPv6. Also add the already needed __ip_vs_get_out_rt_v6()
to ip_vs_core.c. Bind the new xmit functions to v6 connections.
Signed-off-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r-- | include/net/ip_vs.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 26893499eb6f..ac709fa5a79b 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -855,6 +855,19 @@ extern int ip_vs_icmp_xmit | |||
855 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, int offset); | 855 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, int offset); |
856 | extern void ip_vs_dst_reset(struct ip_vs_dest *dest); | 856 | extern void ip_vs_dst_reset(struct ip_vs_dest *dest); |
857 | 857 | ||
858 | #ifdef CONFIG_IP_VS_IPV6 | ||
859 | extern int ip_vs_bypass_xmit_v6 | ||
860 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); | ||
861 | extern int ip_vs_nat_xmit_v6 | ||
862 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); | ||
863 | extern int ip_vs_tunnel_xmit_v6 | ||
864 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); | ||
865 | extern int ip_vs_dr_xmit_v6 | ||
866 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp); | ||
867 | extern int ip_vs_icmp_xmit_v6 | ||
868 | (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, | ||
869 | int offset); | ||
870 | #endif | ||
858 | 871 | ||
859 | /* | 872 | /* |
860 | * This is a simple mechanism to ignore packets when | 873 | * This is a simple mechanism to ignore packets when |
@@ -899,7 +912,12 @@ static inline char ip_vs_fwd_tag(struct ip_vs_conn *cp) | |||
899 | } | 912 | } |
900 | 913 | ||
901 | extern void ip_vs_nat_icmp(struct sk_buff *skb, struct ip_vs_protocol *pp, | 914 | extern void ip_vs_nat_icmp(struct sk_buff *skb, struct ip_vs_protocol *pp, |
902 | struct ip_vs_conn *cp, int dir); | 915 | struct ip_vs_conn *cp, int dir); |
916 | |||
917 | #ifdef CONFIG_IP_VS_IPV6 | ||
918 | extern void ip_vs_nat_icmp_v6(struct sk_buff *skb, struct ip_vs_protocol *pp, | ||
919 | struct ip_vs_conn *cp, int dir); | ||
920 | #endif | ||
903 | 921 | ||
904 | extern __sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset); | 922 | extern __sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset); |
905 | 923 | ||