MCPcopy Create free account
hub / github.com/catboost/catboost / GetIPv6SuffixCrc

Function GetIPv6SuffixCrc

library/cpp/netliba/v6/udp_socket.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

InitLocalIPListFunction · 0.70
CalcAddressCrcFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected