not MTU discovery, just figure out IB address of the peer
| 625 | |
| 626 | // not MTU discovery, just figure out IB address of the peer |
| 627 | inline void SendIBOnlyPing(TUdpSocket& s, const TConnection* connection, const int selfNetworkOrderPort) { |
| 628 | char buf[PACKET_HEADERS_SIZE], *pktData = buf + UDP_LOW_LEVEL_HEADER_SIZE; |
| 629 | |
| 630 | TOptionsVector opt; |
| 631 | WriteInConnectionPacketHeader(&pktData, PING, connection, &opt); |
| 632 | Write(&pktData, selfNetworkOrderPort); |
| 633 | |
| 634 | const ui8 tos = 0; |
| 635 | CheckedSendTo(s, buf, pktData, connection->GetWinsockAddress(), connection->GetWinsockMyAddress(), |
| 636 | tos, FF_ALLOW_FRAG); |
| 637 | } |
| 638 | |
| 639 | template <class TTPort> |
| 640 | inline bool ReadPing(const char* pktData, const char* pktEnd, TTPort* port) { |
no test coverage detected