summaryrefslogtreecommitdiffstats
path: root/libip6t_MAP66.c
diff options
context:
space:
mode:
Diffstat (limited to 'libip6t_MAP66.c')
-rw-r--r--libip6t_MAP66.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libip6t_MAP66.c b/libip6t_MAP66.c
index a8a0f72..1d56d7f 100644
--- a/libip6t_MAP66.c
+++ b/libip6t_MAP66.c
@@ -60,7 +60,7 @@ static void MAP66_help(void)
printf(
"MAP66 target options\n"
" --to ipv6addr/prefixlength (External IPv6 address)\n"
-" --nospoof (Disables spoof check)\n"
+" --nocheck (Disables check check)\n"
"\n"
"Note: you need two ip6tables rules to map an internal network\n"
"using ULAs to an external network with official IPv6 address.\n"
@@ -115,11 +115,11 @@ static int MAP66_parse(
return 1;
break;
case '2':
- if (0 != (IP6T_MAP66_OPT_NOSPOOF & *flags)) {
- xtables_error(PARAMETER_PROBLEM, "Multiple --nospoof not supported");
+ if (0 != (IP6T_MAP66_OPT_NOCHECK & *flags)) {
+ xtables_error(PARAMETER_PROBLEM, "Multiple --nocheck not supported");
}
- info->mapflags |= IP6T_MAP66_OPT_NOSPOOF;
- *flags |= IP6T_MAP66_OPT_NOSPOOF;
+ info->mapflags |= IP6T_MAP66_OPT_NOCHECK;
+ *flags |= IP6T_MAP66_OPT_NOCHECK;
return 1;
break;
}
@@ -140,12 +140,12 @@ static void MAP66_save(
char s[50+1];
const struct ip6t_MAP66_info* info = (struct ip6t_MAP66_info*)target->data;
printf("--to %s/%d ", inet_ntop(AF_INET6, &info->prefix, s, sizeof(s)), 16 * info->prefixlength);
- if (0 != (IP6T_MAP66_OPT_NOSPOOF & info->mapflags)) printf("--nospoof ");
+ if (0 != (IP6T_MAP66_OPT_NOCHECK & info->mapflags)) printf("--nocheck ");
}
static struct option MAP66_opts[] = {
{ .name = "to", .has_arg = 1, .flag = NULL, .val = '1' },
- { .name = "nospoof", .has_arg = 0, .flag = NULL, .val = '2' },
+ { .name = "nocheck", .has_arg = 0, .flag = NULL, .val = '2' },
{ .name = NULL }
};