| 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 | { |
no test coverage detected