summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_string.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-02-14 04:23:04 +0100
committerPatrick McHardy <kaber@trash.net>2008-04-14 08:56:58 +0200
commit23545c2a7a31c68c1e49c7c901b632c2f1c59968 (patch)
treef8573e27cc0839f96f38c7c6572fce57aa20b2c9 /extensions/libxt_string.c
parentbce1c2159f8d24479e994a22561c0f97df4aec4d (diff)
Implement AF_UNSPEC as a wildcard for extensions
Diffstat (limited to 'extensions/libxt_string.c')
-rw-r--r--extensions/libxt_string.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/extensions/libxt_string.c b/extensions/libxt_string.c
index f1030bbc..dc2cd9d3 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);
}