From 86a5d1878d33a974289d61bcab5fc5d8d05c9c42 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 10 Nov 2011 09:29:22 +0100 Subject: Add support for older kernel and iptables versions --- ip6t_DNPTV6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ip6t_DNPTV6.c') 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 = { -- cgit v1.2.3