Searched refs:tcpPacket (Results 1 – 2 of 2) sorted by relevance
298 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() argument411 tcphdr* tcpHeader = reinterpret_cast<tcphdr*>(tcpPacket.base()); in translateTcpPacket()
84 base::Result<void> validateTcpPacket(netdutils::Slice tcpPacket) const;93 void translateTcpPacket(netdutils::Slice tcpPacket, uint32_t oldPseudoSum,