| 50 | } TIPv6AddrUnion; |
| 51 | |
| 52 | static ui32 GetIPv6SuffixCrc(const sockaddr_in6& addr) { |
| 53 | TIPv6AddrUnion a; |
| 54 | a.Addr = addr.sin6_addr; |
| 55 | ui64 suffix = a.Addr64[1]; |
| 56 | return (suffix & 0xffffffffll) + (suffix >> 32); |
| 57 | } |
| 58 | |
| 59 | bool InitLocalIPList() { |
| 60 | // Do not use TMutex here: it has a non-trivial destructor which will be called before |
no outgoing calls
no test coverage detected