LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH 06/26] IPVS: Add IPv6-specific function pointers to struct ip_vs_

To: lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx
Subject: [PATCH 06/26] IPVS: Add IPv6-specific function pointers to struct ip_vs_protocol.
Cc: horms@xxxxxxxxxxxx, davem@xxxxxxxxxxxxx, vbusam@xxxxxxxxxx, "Julius R. Volz" <juliusv@xxxxxxxxxx>
From: "Julius R. Volz" <juliusv@xxxxxxxxxx>
Date: Wed, 11 Jun 2008 19:11:49 +0200
Add some IPv6-specific handler function pointers to struct ip_vs_protocol.
These are needed for handlers that (may) have a different implementation
between protocol versions. Depending on the code path (processing either
v4 or v6 packets), the corresponding version of a handler will be called.

Signed-off-by: Julius R. Volz <juliusv@xxxxxxxxxx>

 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 5c2d48d..9ae04d0 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -477,6 +477,12 @@ struct ip_vs_protocol {
                             struct ip_vs_protocol *pp,
                             int *verdict, struct ip_vs_conn **cpp);
 
+#ifdef CONFIG_IP_VS_IPV6
+       int (*conn_schedule_v6)(struct sk_buff *skb,
+                               struct ip_vs_protocol *pp,
+                               int *verdict, struct ip_vs_conn **cpp);
+#endif
+
        struct ip_vs_conn *
        (*conn_in_get)(const struct sk_buff *skb,
                       struct ip_vs_protocol *pp,
@@ -491,13 +497,40 @@ struct ip_vs_protocol {
                        unsigned int proto_off,
                        int inverse);
 
+#ifdef CONFIG_IP_VS_IPV6
+       struct ip_vs_conn *
+       (*conn_in_get_v6)(const struct sk_buff *skb,
+                      struct ip_vs_protocol *pp,
+                      const struct ipv6hdr *iph,
+                      unsigned int proto_off,
+                      int inverse);
+
+       struct ip_vs_conn *
+       (*conn_out_get_v6)(const struct sk_buff *skb,
+                       struct ip_vs_protocol *pp,
+                       const struct ipv6hdr *iph,
+                       unsigned int proto_off,
+                       int inverse);
+#endif
+
        int (*snat_handler)(struct sk_buff *skb,
                            struct ip_vs_protocol *pp, struct ip_vs_conn *cp);
 
        int (*dnat_handler)(struct sk_buff *skb,
                            struct ip_vs_protocol *pp, struct ip_vs_conn *cp);
 
+#ifdef CONFIG_IP_VS_IPV6
+       int (*snat_handler_v6)(struct sk_buff *skb,
+                              struct ip_vs_protocol *pp, struct ip_vs_conn 
*cp);
+
+       int (*dnat_handler_v6)(struct sk_buff *skb,
+                              struct ip_vs_protocol *pp, struct ip_vs_conn 
*cp);
+#endif
+
        int (*csum_check)(struct sk_buff *skb, struct ip_vs_protocol *pp);
+#ifdef CONFIG_IP_VS_IPV6
+       int (*csum_check_v6)(struct sk_buff *skb, struct ip_vs_protocol *pp);
+#endif
 
        const char *(*state_name)(int state);
 
-- 
1.5.3.6

--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>