diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-11-10 09:29:22 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-11-12 09:25:24 +0100 |
commit | 86a5d1878d33a974289d61bcab5fc5d8d05c9c42 (patch) | |
tree | 09bffa0fa6944682aa4c77b128b19057ce248675 /ip6t_DNPTV6.c | |
parent | 0344f2ec310d317dc5f31e5c066a7a141d504333 (diff) | |
download | NPTv6-86a5d1878d33a974289d61bcab5fc5d8d05c9c42.tar NPTv6-86a5d1878d33a974289d61bcab5fc5d8d05c9c42.zip |
Add support for older kernel and iptables versions
Diffstat (limited to 'ip6t_DNPTV6.c')
-rw-r--r-- | ip6t_DNPTV6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ip6t_DNPTV6.c b/ip6t_DNPTV6.c index 506d0a5..ea09835 100644 --- a/ip6t_DNPTV6.c +++ b/ip6t_DNPTV6.c @@ -48,16 +48,16 @@ static unsigned int dnptv6_tg6(struct sk_buff *skb, const struct xt_action_param return NF_ACCEPT; } -static int dnptv6_tg6_check(const struct xt_tgchk_param *par) +static CHECKENTRY_RET dnptv6_tg6_check(const struct xt_tgchk_param *par) { const struct ip6t_nptv6_info *info = par->targinfo; if (info->nptv6_prefix_len > 64) { printk("DNPTV6: Prefix length longer than 64 given\n"); - return -EINVAL; + return CHECKENTRY_RET_EINVAL; } - return 0; + return CHECKENTRY_RET_SUCCESS; } static struct xt_target dnptv6_tg6_reg __read_mostly = { |