mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 13:15:12 +02:00
RAWNAT: IPv6 variants erroneously rejected masks /33-/128
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
HEAD
|
HEAD
|
||||||
====
|
====
|
||||||
|
- RAWNAT: IPv6 variants erroneously rejected masks /33-/128
|
||||||
|
|
||||||
|
|
||||||
Xtables-addons 1.27 (May 16 2010)
|
Xtables-addons 1.27 (May 16 2010)
|
||||||
|
@@ -79,7 +79,7 @@ rawdnat_tg6_parse(int c, char **argv, int invert, unsigned int *flags,
|
|||||||
end = strchr(optarg, '/');
|
end = strchr(optarg, '/');
|
||||||
if (end != NULL) {
|
if (end != NULL) {
|
||||||
*end++ = '\0';
|
*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",
|
xtables_param_act(XTF_BAD_VALUE, "RAWDNAT",
|
||||||
"--to-destination", optarg);
|
"--to-destination", optarg);
|
||||||
info->mask = mask;
|
info->mask = mask;
|
||||||
|
@@ -79,7 +79,7 @@ rawsnat_tg6_parse(int c, char **argv, int invert, unsigned int *flags,
|
|||||||
end = strchr(optarg, '/');
|
end = strchr(optarg, '/');
|
||||||
if (end != NULL) {
|
if (end != NULL) {
|
||||||
*end++ = '\0';
|
*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",
|
xtables_param_act(XTF_BAD_VALUE, "RAWSNAT",
|
||||||
"--to-source", optarg);
|
"--to-source", optarg);
|
||||||
info->mask = mask;
|
info->mask = mask;
|
||||||
|
Reference in New Issue
Block a user