summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-17 17:08:21 +0200
committersven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-17 17:08:21 +0200
commit0078f79fc3a613ac9b504c2a034ac01937b11de3 (patch)
tree101b78f7ca2d0612611a386d5e11c5847a7e3c44
parent6090de85e16bb798deb6d63ca066bfc56744bf7d (diff)
downloadNPTv6-0078f79fc3a613ac9b504c2a034ac01937b11de3.tar
NPTv6-0078f79fc3a613ac9b504c2a034ac01937b11de3.zip
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@54 3484d885-4da6-438d-b19d-107d078dd756
-rw-r--r--libip6t_MAP66.c4
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);