summaryrefslogtreecommitdiffstats
path: root/libip6t_MAP66.c
diff options
context:
space:
mode:
authorsven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-15 11:09:26 +0200
committersven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756>2010-10-15 11:09:26 +0200
commite9f3aaf6bdc64dd648005986fd2e60335695e51d (patch)
treeb866caff0982bfc08bfc6cb6eda908b9440694be /libip6t_MAP66.c
parentf49ba6f440602f97bf957312c6abbc481d864679 (diff)
downloadNPTv6-e9f3aaf6bdc64dd648005986fd2e60335695e51d.tar
NPTv6-e9f3aaf6bdc64dd648005986fd2e60335695e51d.zip
rename --unbalance -> --csum
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@41 3484d885-4da6-438d-b19d-107d078dd756
Diffstat (limited to 'libip6t_MAP66.c')
-rw-r--r--libip6t_MAP66.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libip6t_MAP66.c b/libip6t_MAP66.c
index 0639646..647a92d 100644
--- a/libip6t_MAP66.c
+++ b/libip6t_MAP66.c
@@ -65,7 +65,7 @@ static void MAP66_help(void)
" --" IP6T_MAP66_DST_TO " ipv6addr/prefixlength (Prefix to map IPv6 destination address to)\n"
" --" IP6T_MAP66_SRC_TO " ipv6addr/prefixlength (Prefix to map IPv6 source address to)\n"
" --nocheck (Disables the do-not-map-to-my-addr check)\n"
-" --unbalanced (Don't balance address for csum neutrality)\n"
+" --csum (No csum neutral address change, calc csum)\n"
"\n"
"Note: you need two ip6tables rules to map an internal network\n"
"using ULAs to/from external network with official IPv6 address.\n"
@@ -160,11 +160,11 @@ static int MAP66_parse(
return 1;
break;
case '4':
- if (0 != (IP6T_MAP66_OPT_UNBALANCED & *flags)) {
- xtables_error(PARAMETER_PROBLEM, "Multiple --unbalanced not supported");
+ if (0 != (IP6T_MAP66_OPT_CSUM & *flags)) {
+ xtables_error(PARAMETER_PROBLEM, "Multiple --csum not supported");
}
- info->mapflags |= IP6T_MAP66_OPT_UNBALANCED;
- *flags |= IP6T_MAP66_OPT_UNBALANCED;
+ info->mapflags |= IP6T_MAP66_OPT_CSUM;
+ *flags |= IP6T_MAP66_OPT_CSUM;
return 1;
break;
}
@@ -193,8 +193,8 @@ static void MAP66_save(
if (0 != (IP6T_MAP66_OPT_NOCHECK & info->mapflags)) {
printf("--nocheck ");
}
- if (0 != (IP6T_MAP66_OPT_UNBALANCED & info->mapflags)) {
- printf("--unbalanced ");
+ if (0 != (IP6T_MAP66_OPT_CSUM & info->mapflags)) {
+ printf("--csum ");
}
}
@@ -202,7 +202,7 @@ static struct option MAP66_opts[] = {
{ .name = IP6T_MAP66_DST_TO, .has_arg = 1, .flag = NULL, .val = '1' },
{ .name = IP6T_MAP66_SRC_TO, .has_arg = 1, .flag = NULL, .val = '2' },
{ .name = "nocheck", .has_arg = 0, .flag = NULL, .val = '3' },
- { .name = "unbalanced", .has_arg = 0, .flag = NULL, .val = '4' },
+ { .name = "csum", .has_arg = 0, .flag = NULL, .val = '4' },
{ .name = NULL }
};