diff options
author | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-17 10:59:19 +0200 |
---|---|---|
committer | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-17 10:59:19 +0200 |
commit | 554d3661ddd91fd3f6b099d8cffa9b1c477c2b20 (patch) | |
tree | d8d821af3638e79a82b5892e4e8333b2d7ebf921 /libip6t_MAP66.c | |
parent | d0060e633a63bc6e9831539430053060d0c25466 (diff) | |
download | NPTv6-554d3661ddd91fd3f6b099d8cffa9b1c477c2b20.tar NPTv6-554d3661ddd91fd3f6b099d8cffa9b1c477c2b20.zip |
one map func
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@52 3484d885-4da6-438d-b19d-107d078dd756
Diffstat (limited to 'libip6t_MAP66.c')
-rw-r--r-- | libip6t_MAP66.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libip6t_MAP66.c b/libip6t_MAP66.c index 647a92d..611b005 100644 --- a/libip6t_MAP66.c +++ b/libip6t_MAP66.c @@ -117,7 +117,7 @@ static int MAP66_parse( xtables_error(PARAMETER_PROBLEM, "Invalid prefix length in --" IP6T_MAP66_DST_TO ": \"%s\" (use /112, /96 .. /16)", p + 1); } info->pfix_dst_len = i / 16; - info->pfix_dst_csum = ~csum16((const u_int16_t *)&info->pfix_dst_to, info->pfix_dst_len); + info->pfix_dst_csum = csum16((const u_int16_t *)&info->pfix_dst_to, info->pfix_dst_len); return 1; break; case '2': @@ -148,7 +148,7 @@ static int MAP66_parse( xtables_error(PARAMETER_PROBLEM, "Invalid prefix length in --" IP6T_MAP66_SRC_TO ": \"%s\" (use /128, /112, /96 .. /16)", p + 1); } info->pfix_src_len = i / 16; - info->pfix_src_csum = ~csum16((const u_int16_t *)&info->pfix_src_to, info->pfix_src_len); + info->pfix_src_csum = csum16((const u_int16_t *)&info->pfix_src_to, info->pfix_src_len); return 1; break; case '3': |