diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-18 02:00:33 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-02-19 15:28:47 +0100 |
commit | e88a7c2c7175742b58b6aa03f2b5aba2d80330a1 (patch) | |
tree | ab295429964af7dc0096264337ed580283338d7a /extensions/libip6t_ipv6header.c | |
parent | 12a18d6043092bd2574b2bced635259b16317e57 (diff) |
extensions: remove redundant init functions
The main program already zeroes the per-extension data block.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libip6t_ipv6header.c')
-rw-r--r-- | extensions/libip6t_ipv6header.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/extensions/libip6t_ipv6header.c b/extensions/libip6t_ipv6header.c index da832e21..187e0a43 100644 --- a/extensions/libip6t_ipv6header.c +++ b/extensions/libip6t_ipv6header.c @@ -146,15 +146,6 @@ static const struct option ipv6header_opts[] = { XT_GETOPT_TABLEEND, }; -static void ipv6header_init(struct xt_entry_match *m) -{ - struct ip6t_ipv6header_info *info = (struct ip6t_ipv6header_info *)m->data; - - info->matchflags = 0x00; - info->invflags = 0x00; - info->modeflag = 0x00; -} - static unsigned int parse_header(const char *flags) { unsigned int ret = 0; @@ -273,7 +264,6 @@ static struct xtables_match ipv6header_mt6_reg = { .size = XT_ALIGN(sizeof(struct ip6t_ipv6header_info)), .userspacesize = XT_ALIGN(sizeof(struct ip6t_ipv6header_info)), .help = ipv6header_help, - .init = ipv6header_init, .parse = ipv6header_parse, .final_check = ipv6header_check, .print = ipv6header_print, |