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

Function GetMTU

libi2pd/util.cpp:581–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579#endif // _WIN32
580
581 int GetMTU (const boost::asio::ip::address& localAddress)
582 {
583 int fallback = localAddress.is_v6 () ? 1280 : 620; // fallback MTU
584
585#ifdef _WIN32
586 return GetMTUWindows(localAddress, fallback);
587#else
588 return GetMTUUnix(localAddress, fallback);
589#endif
590 return fallback;
591 }
592
593 const boost::asio::ip::address GetInterfaceAddress (const std::string & ifname, bool ipv6)
594 {

Callers 2

SetLocalAddressMethod · 0.85
UpdateAddressMethod · 0.85

Calls 2

GetMTUWindowsFunction · 0.85
GetMTUUnixFunction · 0.85

Tested by

no test coverage detected