lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 11 Jun 2008 19:11:49 +0200
From:	"Julius R. Volz" <juliusv@...gle.com>
To:	lvs-devel@...r.kernel.org, netdev@...r.kernel.org
Cc:	horms@...ge.net.au, davem@...emloft.net, vbusam@...gle.com,
	"Julius R. Volz" <juliusv@...gle.com>
Subject: [PATCH 06/26] IPVS: Add IPv6-specific function pointers to struct ip_vs_protocol.

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@...gle.com>

 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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ