[PATCH 23/43] Add support for string match to ip6tables.

Yasuyuki KOZAKAI yasuyuki.kozakai at toshiba.co.jp
Sat Jul 14 20:10:24 CEST 2007


---
 extensions/libxt_string.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/extensions/libxt_string.c b/extensions/libxt_string.c
index e879dca..c58f481 100644
--- a/extensions/libxt_string.c
+++ b/extensions/libxt_string.c
@@ -349,7 +349,23 @@ static struct xtables_match string = {
 };
 
 
+static struct xtables_match string6 = {
+    .name		= "string",
+    .family			= AF_INET6,
+    .version		= IPTABLES_VERSION,
+    .size		= XT_ALIGN(sizeof(struct xt_string_info)),
+    .userspacesize	= offsetof(struct xt_string_info, config),
+    .help		= help,
+    .init		= init,
+    .parse		= parse,
+    .final_check	= final_check,
+    .print		= print,
+    .save		= save,
+    .extra_opts		= opts
+};
+
 void _init(void)
 {
 	xtables_register_match(&string);
+	xtables_register_match(&string6);
 }
-- 
1.5.2.2




More information about the netfilter-devel mailing list