From 0078f79fc3a613ac9b504c2a034ac01937b11de3 Mon Sep 17 00:00:00 2001 From: sven-ola Date: Sun, 17 Oct 2010 15:08:21 +0000 Subject: git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@54 3484d885-4da6-438d-b19d-107d078dd756 --- libip6t_MAP66.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libip6t_MAP66.c b/libip6t_MAP66.c index 611b005..466e5d0 100644 --- a/libip6t_MAP66.c +++ b/libip6t_MAP66.c @@ -113,8 +113,8 @@ static int MAP66_parse( xtables_error(PARAMETER_PROBLEM, "Invalid IPv6 address in --" IP6T_MAP66_DST_TO ": \"%s\"", optarg); } i = atoi(p + 1); - if (0 >= i || 128 <= i || 0 != i % 16) { - xtables_error(PARAMETER_PROBLEM, "Invalid prefix length in --" IP6T_MAP66_DST_TO ": \"%s\" (use /112, /96 .. /16)", p + 1); + if (0 >= i || 128 < i || 0 != i % 16) { + xtables_error(PARAMETER_PROBLEM, "Invalid prefix length in --" IP6T_MAP66_DST_TO ": \"%s\" (use /128, /112, /96 .. /16)", p + 1); } info->pfix_dst_len = i / 16; info->pfix_dst_csum = csum16((const u_int16_t *)&info->pfix_dst_to, info->pfix_dst_len); -- cgit v1.2.3