- NetworkInterface Windows improvements (detect broadcast address rather than calculate it)

- site-local IPv6 prefix (RFC4291)
NOTE: other platforms compilation still broken (WIP)
This commit is contained in:
Aleksandar Fabijanic
2012-08-11 16:45:48 +00:00
parent 2371cae637
commit b5d704bfeb
6 changed files with 188 additions and 126 deletions

View File

@@ -549,7 +549,7 @@ public:
bool isSiteLocal() const
{
const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
return (ntohs(words[0]) & 0xFFE0) == 0xFEC0;
return ((ntohs(words[0]) & 0xFFE0) == 0xFEC0) || ((ntohs(words[0]) & 0xFF00) == 0xFC00);
}
bool isIPv4Compatible() const