]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Add IPv6 support to string match
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Tue, 24 Jul 2007 06:52:16 +0000 (06:52 +0000)
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Tue, 24 Jul 2007 06:52:16 +0000 (06:52 +0000)
extensions/libxt_string.c

index e879dca181ee26641222bbb68b2b4b861e2633ee..c58f4814da1aa439257461acd21a44c13d2df819 100644 (file)
@@ -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);
 }