Home
last modified time | relevance | path

Searched refs:tcpHeader (Results 1 – 1 of 1) sorted by relevance

/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp303 const tcphdr* const tcpHeader = reinterpret_cast<tcphdr*>(tcpPacket.base()); in validateTcpPacket() local
304 if (tcpHeader->doff < 5) { in validateTcpPacket()
307 if (tcpHeader->doff * 4 > tcpPacket.size()) { in validateTcpPacket()
308 return Error() << "TCP header length set too large: " << tcpHeader->doff; in validateTcpPacket()
411 tcphdr* tcpHeader = reinterpret_cast<tcphdr*>(tcpPacket.base()); in translateTcpPacket() local
412 tcpHeader->check = ip_checksum_adjust(tcpHeader->check, oldPseudoSum, newPseudoSum); in translateTcpPacket()