Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp298 Result<void> TunForwarder::validateTcpPacket(Slice tcpPacket) const { in validateTcpPacket()
299 if (tcpPacket.size() < TCP_HDRLEN) { in validateTcpPacket()
303 const tcphdr* const tcpHeader = reinterpret_cast<tcphdr*>(tcpPacket.base()); in validateTcpPacket()
307 if (tcpHeader->doff * 4 > tcpPacket.size()) { in validateTcpPacket()
409 void TunForwarder::translateTcpPacket(Slice tcpPacket, uint32_t oldPseudoSum, in translateTcpPacket() argument
411 tcphdr* tcpHeader = reinterpret_cast<tcphdr*>(tcpPacket.base()); in translateTcpPacket()
Dtun_forwarder.h84 base::Result<void> validateTcpPacket(netdutils::Slice tcpPacket) const;
93 void translateTcpPacket(netdutils::Slice tcpPacket, uint32_t oldPseudoSum,