Home
last modified time | relevance | path

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

/Linux-v5.15/tools/testing/selftests/bpf/
Dxdpxceiver.h35 #define UDP_PKT_SIZE (IP_PKT_SIZE - sizeof(struct iphdr)) macro
36 #define UDP_PKT_DATA_SIZE (UDP_PKT_SIZE - sizeof(struct udphdr))
Dxdpxceiver.c227 udp_hdr->len = htons(UDP_PKT_SIZE); in gen_udp_hdr()
235 udp_csum(ip_hdr->saddr, ip_hdr->daddr, UDP_PKT_SIZE, IPPROTO_UDP, (u16 *)udp_hdr); in gen_udp_csum()
/Linux-v5.15/samples/bpf/
Dxdpsock_user.c745 #define UDP_PKT_SIZE (IP_PKT_SIZE - sizeof(struct iphdr)) macro
746 #define UDP_PKT_DATA_SIZE (UDP_PKT_SIZE - sizeof(struct udphdr))
783 udp_hdr->len = htons(UDP_PKT_SIZE); in gen_eth_hdr_data()
791 udp_hdr->check = udp_csum(ip_hdr->saddr, ip_hdr->daddr, UDP_PKT_SIZE, in gen_eth_hdr_data()