diff --git a/doc/changelog.txt b/doc/changelog.txt index 49bc027..5a39f07 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,6 +1,7 @@ HEAD ==== +- RAWNAT: IPv6 variants erroneously rejected masks /33-/128 Xtables-addons 1.27 (May 16 2010) diff --git a/extensions/libxt_RAWDNAT.c b/extensions/libxt_RAWDNAT.c index 002682b..407b6bf 100644 --- a/extensions/libxt_RAWDNAT.c +++ b/extensions/libxt_RAWDNAT.c @@ -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; diff --git a/extensions/libxt_RAWSNAT.c b/extensions/libxt_RAWSNAT.c index 62be4b4..b7f09a5 100644 --- a/extensions/libxt_RAWSNAT.c +++ b/extensions/libxt_RAWSNAT.c @@ -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;