From 5bc09b8e9db045c7136d76405c1733ea531be0f7 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Mon, 14 Apr 2008 06:56:58 +0000 Subject: [PATCH 8/8] Implement AF_UNSPEC as a wildcard for extensions --- extensions/libxt_CLASSIFY.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'extensions/libxt_CLASSIFY.c') diff --git a/extensions/libxt_CLASSIFY.c b/extensions/libxt_CLASSIFY.c index e39367a..4a3520f 100644 --- a/extensions/libxt_CLASSIFY.c +++ b/extensions/libxt_CLASSIFY.c @@ -103,21 +103,7 @@ CLASSIFY_save(const void *ip, const struct xt_entry_target *target) } static struct xtables_target classify_target = { - .family = AF_INET, - .name = "CLASSIFY", - .version = IPTABLES_VERSION, - .size = XT_ALIGN(sizeof(struct xt_classify_target_info)), - .userspacesize = XT_ALIGN(sizeof(struct xt_classify_target_info)), - .help = CLASSIFY_help, - .parse = CLASSIFY_parse, - .final_check = CLASSIFY_final_check, - .print = CLASSIFY_print, - .save = CLASSIFY_save, - .extra_opts = CLASSIFY_opts, -}; - -static struct xtables_target classify_target6 = { - .family = AF_INET6, + .family = AF_UNSPEC, .name = "CLASSIFY", .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_classify_target_info)), @@ -133,5 +119,4 @@ static struct xtables_target classify_target6 = { void _init(void) { xtables_register_target(&classify_target); - xtables_register_target(&classify_target6); } -- cgit v1.2.3