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

Function GetMaxMTU

libi2pd/util.cpp:646–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644 }
645
646 int GetMaxMTU (const boost::asio::ip::address_v6& localAddress)
647 {
648 uint32_t prefix = bufbe32toh (localAddress.to_bytes ().data ());
649 switch (prefix)
650 {
651 case 0x20010470:
652 case 0x260070ff:
653 // Hurricane Electric
654 return 1480;
655 break;
656 default: ;
657 }
658 return 1500;
659 }
660
661 static bool IsYggdrasilAddress (const uint8_t addr[16])
662 {

Callers 2

SetLocalAddressMethod · 0.85
UpdateAddressMethod · 0.85

Calls 1

bufbe32tohFunction · 0.85

Tested by

no test coverage detected