Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/
H A Dgro.c183 static uint16_t checksum_fold(void *data, size_t len, uint32_t sum) in checksum_fold() function
227 return checksum_fold(buf, sizeof(struct tcphdr) + payload_len, sum); in tcp_checksum()
277 iph->check = checksum_fold(buf, sizeof(struct iphdr), 0); in fill_networklayer()
418 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in recompute_packet()
602 iph->check = checksum_fold(iph, sizeof(struct iphdr) + optlen, 0); in add_ipv4_ts_option()
627 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in fix_ip4_checksum()
785 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_fragment4()
802 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ttl()
821 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_tos()
842 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ECN()
/linux/tools/testing/selftests/net/lib/
H A Dcsum.c159 static uint16_t checksum_fold(void *data, size_t len, uint32_t sum) in checksum_fold() function
182 return ~checksum_fold(NULL, 0, sum); in checksum()
184 return checksum_fold(th, len, sum); in checksum()
200 iph->check = checksum_fold(iph, sizeof(*iph), 0); in build_packet_ipv4()