diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-11-11 10:38:33 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-11-11 10:38:33 +0100 |
commit | 26fd91078dd24db397e1980c9e8ac9cf48991692 (patch) | |
tree | 0ab0410ae8b5463c82333698a29ff0acb1ec4cfe | |
parent | 922a4577b10b489782917bc743c9c721dce92181 (diff) | |
download | NPTv6-26fd91078dd24db397e1980c9e8ac9cf48991692.tar NPTv6-26fd91078dd24db397e1980c9e8ac9cf48991692.zip |
We don't allow prefixes longer than 64, so we simplify the
translation function a bit
-rw-r--r-- | ip6t_NPTV6_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ip6t_NPTV6_common.h b/ip6t_NPTV6_common.h index 9b3aa6f..4a0c807 100644 --- a/ip6t_NPTV6_common.h +++ b/ip6t_NPTV6_common.h @@ -52,7 +52,7 @@ static bool translate_address(struct in6_addr *addr, const struct in6_addr *pref fix_word = 3; } else { - for (fix_word = (plen+15)/16; fix_word < 7; fix_word++) { + for (fix_word = 4; fix_word < 7; fix_word++) { if (addr->s6_addr16[fix_word] != 0xffff) break; } |