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/libipt_policy.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) |
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_policy.c')
-rw-r--r-- | extensions/libipt_policy.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libipt_policy.c b/extensions/libipt_policy.c index 48b96bed..71e95dd6 100644 --- a/extensions/libipt_policy.c +++ b/extensions/libipt_policy.c @@ -24,7 +24,7 @@ static struct ipt_policy_info *policy_info; static void policy_help(void) { printf( -"policy v%s options:\n" +"policy match options:\n" " --dir in|out match policy applied during decapsulation/\n" " policy to be applied during encapsulation\n" " --pol none|ipsec match policy\n" @@ -36,8 +36,7 @@ static void policy_help(void) "[!] --mode mode match mode (transport/tunnel)\n" "[!] --tunnel-src addr/mask match tunnel source\n" "[!] --tunnel-dst addr/mask match tunnel destination\n" -" --next begin next element in policy\n", - IPTABLES_VERSION); +" --next begin next element in policy\n"); } static const struct option policy_opts[] = @@ -408,11 +407,12 @@ static void policy_save(const void *ip, const struct xt_entry_match *match) } } -static struct iptables_match policy_match = { +static struct xtables_match policy_mt_reg = { .name = "policy", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(struct ipt_policy_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_policy_info)), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(sizeof(struct ipt_policy_info)), + .userspacesize = XT_ALIGN(sizeof(struct ipt_policy_info)), .help = policy_help, .parse = policy_parse, .final_check = policy_check, @@ -423,5 +423,5 @@ static struct iptables_match policy_match = { void _init(void) { - register_match(&policy_match); + xtables_register_match(&policy_mt_reg); } |