diff options
-rw-r--r-- | libip6t_MAP66.c | 4 |
1 files 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); |