MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / IsLocalAddress

Function IsLocalAddress

libi2pd/util.cpp:782–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780 }
781
782 bool IsLocalAddress (const boost::asio::ip::address& addr)
783 {
784 auto mtu = // TODO: implement better
785#ifdef _WIN32
786 GetMTUWindows(addr, 0);
787#else
788 GetMTUUnix(addr, 0);
789#endif
790 return mtu > 0;
791 }
792
793 bool IsInReservedRange (const boost::asio::ip::address& host)
794 {

Callers 1

InitTransportsFunction · 0.85

Calls 2

GetMTUWindowsFunction · 0.85
GetMTUUnixFunction · 0.85

Tested by

no test coverage detected