Searched refs:checksum (Results 1 – 1 of 1) sorted by relevance
/system/core/libnetutils/ |
D | packet.c | 65 static uint32_t checksum(void *buffer, unsigned int count, uint32_t startsum) in checksum() function 111 ip.check = finish_sum(checksum(&ip, sizeof(ip), 0)); in send_packet() 119 udpsum = checksum(&ip.saddr, sizeof(ip.saddr), 0); in send_packet() 120 udpsum = checksum(&ip.daddr, sizeof(ip.daddr), udpsum); in send_packet() 122 udpsum = checksum(&temp, sizeof(temp), udpsum); in send_packet() 124 udpsum = checksum(&temp, sizeof(temp), udpsum); in send_packet() 127 udpsum = checksum(&udp, sizeof(udp), udpsum); in send_packet() 130 udpsum = checksum(msg, size, udpsum); in send_packet() 210 sum = finish_sum(checksum(&packet.ip, sizeof(packet.ip), 0)); in receive_packet() 231 sum = finish_sum(checksum(&packet, nread, 0)); in receive_packet()
|