summaryrefslogtreecommitdiffstats
path: root/libip6t_MAP66.c
diff options
context:
space:
mode:
authorsven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-05 15:41:12 +0200
committersven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-05 15:41:12 +0200
commita6f0e711a929a2be52d983dbfa8fda8b4b59dd73 (patch)
tree3de2d0f814f00455f25263aaf4efaf5e27852d53 /libip6t_MAP66.c
parentd22cd0195d4d27efc01deba705351a46d9893628 (diff)
downloadNPTv6-a6f0e711a929a2be52d983dbfa8fda8b4b59dd73.tar
NPTv6-a6f0e711a929a2be52d983dbfa8fda8b4b59dd73.zip
added cvs props, started readme, renamed --nospoof to --nocheck
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@2 3484d885-4da6-438d-b19d-107d078dd756
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 }
};