Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/net/
Dgro.c157 static uint16_t checksum_fold(void *data, size_t len, uint32_t sum) in checksum_fold() function
201 return checksum_fold(buf, sizeof(struct tcphdr) + payload_len, sum); in tcp_checksum()
251 iph->check = checksum_fold(buf, sizeof(struct iphdr), 0); in fill_networklayer()
392 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in recompute_packet()
576 iph->check = checksum_fold(iph, sizeof(struct iphdr) + optlen, 0); in add_ipv4_ts_option()
619 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_fragment4()
636 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ttl()
655 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_tos()
676 iph->check = checksum_fold(iph, sizeof(struct iphdr), 0); in send_changed_ECN()
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()