RAWNAT: IPv6 variants erroneously rejected masks /33-/128

This commit is contained in:
Jan Engelhardt
2010-06-12 09:23:59 +02:00
parent 03354eed44
commit a2662b0121
3 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
HEAD
====
- RAWNAT: IPv6 variants erroneously rejected masks /33-/128
Xtables-addons 1.27 (May 16 2010)

View File

@@ -79,7 +79,7 @@ rawdnat_tg6_parse(int c, char **argv, int invert, unsigned int *flags,
end = strchr(optarg, '/');
if (end != NULL) {
*end++ = '\0';
if (!xtables_strtoui(end, NULL, &mask, 0, 32))
if (!xtables_strtoui(end, NULL, &mask, 0, 128))
xtables_param_act(XTF_BAD_VALUE, "RAWDNAT",
"--to-destination", optarg);
info->mask = mask;

View File

@@ -79,7 +79,7 @@ rawsnat_tg6_parse(int c, char **argv, int invert, unsigned int *flags,
end = strchr(optarg, '/');
if (end != NULL) {
*end++ = '\0';
if (!xtables_strtoui(end, NULL, &mask, 0, 32))
if (!xtables_strtoui(end, NULL, &mask, 0, 128))
xtables_param_act(XTF_BAD_VALUE, "RAWSNAT",
"--to-source", optarg);
info->mask = mask;