Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/net/
H A Dip_defrag.c82 static uint32_t raw_checksum(uint8_t *buf, int len, uint32_t sum) in raw_checksum() function
106 sum = raw_checksum((uint8_t *)&iphdr->ip_src, 2 * sizeof(iphdr->ip_src), in udp_checksum()
108 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp_checksum()
109 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp_checksum()
122 sum = raw_checksum((uint8_t *)&iphdr->ip6_src, 2 * sizeof(iphdr->ip6_src), in udp6_checksum()
124 sum = raw_checksum((uint8_t *)&udphdr->len, sizeof(udphdr->len), sum); in udp6_checksum()
125 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp6_checksum()
126 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp6_checksum()