Home
last modified time | relevance | path

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

/device/generic/goldfish/dhcp/common/
Dsocket.cpp34 static uint32_t addChecksum(const uint8_t* buffer, in addChecksum() function
55 static uint32_t addChecksum(const T& data, uint32_t checksum) { in addChecksum() function
56 return addChecksum(reinterpret_cast<const uint8_t*>(&data), sizeof(T), checksum); in addChecksum()
186 ip.check = finishChecksum(addChecksum(ip, 0)); in sendRawUdp()
194 udpChecksum = addChecksum(ip.saddr, udpChecksum); in sendRawUdp()
195 udpChecksum = addChecksum(ip.daddr, udpChecksum); in sendRawUdp()
196 udpChecksum = addChecksum(htons(IPPROTO_UDP), udpChecksum); in sendRawUdp()
197 udpChecksum = addChecksum(udp.len, udpChecksum); in sendRawUdp()
198 udpChecksum = addChecksum(udp, udpChecksum); in sendRawUdp()
199 udpChecksum = addChecksum(message.data(), message.size(), udpChecksum); in sendRawUdp()