From 26fd91078dd24db397e1980c9e8ac9cf48991692 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 11 Nov 2011 10:38:33 +0100 Subject: We don't allow prefixes longer than 64, so we simplify the translation function a bit --- ip6t_NPTV6_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3