diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-04-15 11:48:25 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-15 14:01:06 +0200 |
commit | 8b7c64d6ba156a99008fcd810cba874c73294333 (patch) | |
tree | 47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /extensions/libip6t_frag.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) |
Remove old functions, constants
Diffstat (limited to 'extensions/libip6t_frag.c')
-rw-r--r-- | extensions/libip6t_frag.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libip6t_frag.c b/extensions/libip6t_frag.c index 86f40f42..64e110d3 100644 --- a/extensions/libip6t_frag.c +++ b/extensions/libip6t_frag.c @@ -12,14 +12,13 @@ static void frag_help(void) { printf( -"FRAG v%s options:\n" +"frag match options:\n" " --fragid [!] id[:id] match the id (range)\n" " --fraglen [!] length total length of this header\n" " --fragres check the reserved filed, too\n" " --fragfirst matches on the first fragment\n" " [--fragmore|--fraglast] there are more fragments or this\n" -" is the last one\n", -IPTABLES_VERSION); +" is the last one\n"); } static const struct option frag_opts[] = { @@ -238,11 +237,12 @@ static void frag_save(const void *ip, const struct xt_entry_match *match) printf("--fraglast "); } -static struct ip6tables_match frag_match6 = { +static struct xtables_match frag_mt6_reg = { .name = "frag", - .version = IPTABLES_VERSION, - .size = IP6T_ALIGN(sizeof(struct ip6t_frag)), - .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_frag)), + .version = XTABLES_VERSION, + .family = PF_INET6, + .size = XT_ALIGN(sizeof(struct ip6t_frag)), + .userspacesize = XT_ALIGN(sizeof(struct ip6t_frag)), .help = frag_help, .init = frag_init, .parse = frag_parse, @@ -254,5 +254,5 @@ static struct ip6tables_match frag_match6 = { void _init(void) { - register_match6(&frag_match6); + xtables_register_match(&frag_mt6_reg); } |