Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp340 uint32_t newPseudoSum = ipv4_pseudo_header_checksum(ipHeader, transport_len); in translateIpv4Packet() local
347 translateUdpPacket(drop(ipv4Packet, ipHeaderLen), oldPseudoSum, newPseudoSum); in translateIpv4Packet()
350 translateTcpPacket(drop(ipv4Packet, ipHeaderLen), oldPseudoSum, newPseudoSum); in translateIpv4Packet()
374 uint32_t newPseudoSum = in translateIpv6Packet() local
379 translateUdpPacket(drop(ipv6Packet, ipHeaderLen), oldPseudoSum, newPseudoSum); in translateIpv6Packet()
382 translateTcpPacket(drop(ipv6Packet, ipHeaderLen), oldPseudoSum, newPseudoSum); in translateIpv6Packet()
393 uint32_t newPseudoSum) const { in translateUdpPacket()
396 udpHeader->check = ip_checksum_adjust(udpHeader->check, oldPseudoSum, newPseudoSum); in translateUdpPacket()
398 uint32_t tmp = ip_checksum_add(newPseudoSum, udpPacket.base(), udpPacket.size()); in translateUdpPacket()
410 uint32_t newPseudoSum) const { in translateTcpPacket()
[all …]
Dtun_forwarder.h92 uint32_t newPseudoSum) const;
94 uint32_t newPseudoSum) const;