]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
Use AF_UNSPEC registration in libxt_LOGMARK
authorJan Engelhardt <jengelh@computergmbh.de>
Thu, 21 Feb 2008 16:25:23 +0000 (17:25 +0100)
committerJan Engelhardt <jengelh@computergmbh.de>
Thu, 21 Feb 2008 17:56:47 +0000 (18:56 +0100)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
extensions/libxt_LOGMARK.c

index eed0beb614e1cb6ca35c03b357e801cac92be529..a9f13b8079cc3f6b4f4081c0029e04e65e221ce5 100644 (file)
@@ -91,22 +91,7 @@ static struct xtables_target logmark_tg_reg = {
        .version       = XTABLES_VERSION,
        .name          = "LOGMARK",
        .revision      = 0,
-       .family        = AF_INET,
-       .size          = XT_ALIGN(sizeof(struct xt_logmark_tginfo)),
-       .userspacesize = XT_ALIGN(sizeof(struct xt_logmark_tginfo)),
-       .help          = logmark_tg_help,
-       .init          = logmark_tg_init,
-       .parse         = logmark_tg_parse,
-       .print         = logmark_tg_print,
-       .save          = logmark_tg_save,
-       .extra_opts    = logmark_tg_opts,
-};
-
-static struct xtables_target logmark_tg6_reg = {
-       .version       = XTABLES_VERSION,
-       .name          = "LOGMARK",
-       .revision      = 0,
-       .family        = AF_INET6,
+       .family        = AF_UNSPEC,
        .size          = XT_ALIGN(sizeof(struct xt_logmark_tginfo)),
        .userspacesize = XT_ALIGN(sizeof(struct xt_logmark_tginfo)),
        .help          = logmark_tg_help,
@@ -121,5 +106,4 @@ void _init(void);
 void _init(void)
 {
        xtables_register_target(&logmark_tg_reg);
-       xtables_register_target(&logmark_tg6_reg);
 }