diff options
author | Yasuyuki KOZAKAI <yasuyuki@netfilter.org> | 2007-07-24 06:52:16 +0000 |
---|---|---|
committer | Yasuyuki KOZAKAI <yasuyuki@netfilter.org> | 2007-07-24 06:52:16 +0000 |
commit | 4ccb6f547b6c2c355a188a267afe6358b013a438 (patch) | |
tree | c6ed80fe857914b57a5c1e030abe28d6390d6d44 /extensions | |
parent | ede46d6949cf1442196b70e3a9954ecec0e8ad27 (diff) |
Add IPv6 support to string match
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libxt_string.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extensions/libxt_string.c b/extensions/libxt_string.c index e879dca1..c58f4814 100644 --- a/extensions/libxt_string.c +++ b/extensions/libxt_string.c @@ -349,7 +349,23 @@ static struct xtables_match string = { }; +static struct xtables_match string6 = { + .name = "string", + .family = AF_INET6, + .version = IPTABLES_VERSION, + .size = XT_ALIGN(sizeof(struct xt_string_info)), + .userspacesize = offsetof(struct xt_string_info, config), + .help = help, + .init = init, + .parse = parse, + .final_check = final_check, + .print = print, + .save = save, + .extra_opts = opts +}; + void _init(void) { xtables_register_match(&string); + xtables_register_match(&string6); } |