Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amule-project/amule
/ IsLinkLocalIP
Function
IsLinkLocalIP
src/NetworkFunctions.cpp:164–169 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
162
163
164
bool IsLinkLocalIP(uint32_t ip) noexcept
165
{
166
// 169.254.0.0/16 in anti-host order: 169 = 0xa9 in the low byte,
167
// 254 = 0xfe in the next byte → 0x0000fea9 with mask 0x0000ffff.
168
return (ip & 0x0000ffff) == 0x0000fea9;
169
}
Callers
1
ConnectToCore
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected