Searched refs:build_ip_csum (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/tools/testing/selftests/net/ |
H A D | psock_snd.c | 65 static uint16_t build_ip_csum(const uint16_t *start, int num_u16, in build_ip_csum() function 129 iph->check = build_ip_csum((void *) iph, iph->ihl << 1, 0); in build_ipv4_header() 145 udph->check = build_ip_csum(header - (2 * alen), alen, in build_udp_header()
|
H A D | tap.c | 257 static uint16_t build_ip_csum(const uint8_t *buf, int len, in build_ip_csum() function 277 iph->check = build_ip_csum(buf, iph->ihl << 2, 0); in build_ipv4_header()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_flow_dissector.c | 154 static uint16_t build_ip_csum(const uint16_t *start, int num_u16, in build_ip_csum() function 180 iph->check = build_ip_csum((void *) iph, iph->ihl << 1, 0); in build_ipv4_header() 220 return build_ip_csum((void *) udph, num_words, pseudo_sum); in build_udp_v4_csum() 233 return build_ip_csum((void *) udph, num_words, pseudo_sum); in build_udp_v6_csum()
|