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_hbh.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_hbh.c')
-rw-r--r-- | extensions/libip6t_hbh.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/extensions/libip6t_hbh.c b/extensions/libip6t_hbh.c index e51569ef..9eb504e6 100644 --- a/extensions/libip6t_hbh.c +++ b/extensions/libip6t_hbh.c @@ -100,16 +100,6 @@ parse_options(const char *optsstr, uint16_t *opts) return i; } -static void hbh_init(struct xt_entry_match *m) -{ - struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data; - - optinfo->hdrlen = 0; - optinfo->flags = 0; - optinfo->invflags = 0; - optinfo->optsnr = 0; -} - static int hbh_parse(int c, char **argv, int invert, unsigned int *flags, const void *entry, struct xt_entry_match **match) { @@ -211,7 +201,6 @@ static struct xtables_match hbh_mt6_reg = { .size = XT_ALIGN(sizeof(struct ip6t_opts)), .userspacesize = XT_ALIGN(sizeof(struct ip6t_opts)), .help = hbh_help, - .init = hbh_init, .parse = hbh_parse, .print = hbh_print, .save = hbh_save, |