diff options
Diffstat (limited to 'libip6t_MAP66.c')
-rw-r--r-- | libip6t_MAP66.c | 16 |
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 } }; |