summaryrefslogtreecommitdiffstats
path: root/ip6t_SNPTV6.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip6t_SNPTV6.c')
-rw-r--r--ip6t_SNPTV6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ip6t_SNPTV6.c b/ip6t_SNPTV6.c
index 79747ae..97f8e04 100644
--- a/ip6t_SNPTV6.c
+++ b/ip6t_SNPTV6.c
@@ -48,16 +48,16 @@ static unsigned int snptv6_tg6(struct sk_buff *skb, const struct xt_action_param
return NF_ACCEPT;
}
-static int snptv6_tg6_check(const struct xt_tgchk_param *par)
+static CHECKENTRY_RET snptv6_tg6_check(const struct xt_tgchk_param *par)
{
const struct ip6t_nptv6_info *info = par->targinfo;
if (info->nptv6_prefix_len > 64) {
printk("SNPTV6: Prefix length longer than 64 given\n");
- return -EINVAL;
+ return CHECKENTRY_RET_EINVAL;
}
- return 0;
+ return CHECKENTRY_RET_SUCCESS;
}
static struct xt_target snptv6_tg6_reg __read_mostly = {