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

index 2276eb62aca653bacbdfa3d70f6cbdb37ffb9461..220a9b80af52debf73d8483e91113d221640c708 100644 (file)
@@ -56,7 +56,23 @@ struct xtables_target notrack =
        .extra_opts     = opts,
 };
 
+static
+struct xtables_target notrack6 =
+{
+       .family         = AF_INET6,
+       .name           = "NOTRACK",
+       .version        = IPTABLES_VERSION,
+       .size           = XT_ALIGN(0),
+       .userspacesize  = XT_ALIGN(0),
+       .help           = &help,
+       .init           = &init,
+       .parse          = &parse,
+       .final_check    = &final_check,
+       .extra_opts     = opts,
+};
+
 void _init(void)
 {
        xtables_register_target(&notrack);
+       xtables_register_target(&notrack6);
 }