Fix RFC 6598 netmask for CGN

This commit is contained in:
Cameron Gutman 2018-11-07 17:28:33 -08:00
parent 1137825a4f
commit 1b3fef5408
2 changed files with 2 additions and 2 deletions

View File

@ -640,7 +640,7 @@ bool IsLikelyNAT(unsigned long netByteOrderAddr)
return true;
}
// 100.64.0.0/10 - RFC6598 official CGN address
else if ((addr & 0xFFC0) == 0x64400000) {
else if ((addr & 0xFFC00000) == 0x64400000) {
return true;
}

View File

@ -555,7 +555,7 @@ bool IsPossibleCGN(PSOCKADDR_IN wanAddr)
return true;
}
// 100.64.0.0/10 - RFC6598 official CGN address
else if ((addr & 0xFFC0) == 0x64400000) {
else if ((addr & 0xFFC00000) == 0x64400000) {
return true;
}