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_string.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'extensions/libxt_string.c') diff --git a/extensions/libxt_string.c b/extensions/libxt_string.c index f1030bb..dc2cd9d 100644 --- a/extensions/libxt_string.c +++ b/extensions/libxt_string.c @@ -327,23 +327,7 @@ static void string_save(const void *ip, const struct xt_entry_match *match) static struct xtables_match string_match = { .name = "string", - .family = AF_INET, - .version = IPTABLES_VERSION, - .size = XT_ALIGN(sizeof(struct xt_string_info)), - .userspacesize = offsetof(struct xt_string_info, config), - .help = string_help, - .init = string_init, - .parse = string_parse, - .final_check = string_check, - .print = string_print, - .save = string_save, - .extra_opts = string_opts, -}; - - -static struct xtables_match string_match6 = { - .name = "string", - .family = AF_INET6, + .family = AF_UNSPEC, .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_string_info)), .userspacesize = offsetof(struct xt_string_info, config), @@ -359,5 +343,4 @@ static struct xtables_match string_match6 = { void _init(void) { xtables_register_match(&string_match); - xtables_register_match(&string_match6); } -- cgit v1.2.3