Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_context_test_run.c20 #define TEST_PAYLOAD_LEN 32 macro
21 static const __u8 test_payload[TEST_PAYLOAD_LEN] = {
138 __u8 packet[sizeof(struct ethhdr) + TEST_PAYLOAD_LEN]; in send_test_packet()
146 memcpy(packet + sizeof(eth), test_payload, TEST_PAYLOAD_LEN); in send_test_packet()
173 __u8 packet[sizeof(struct ethhdr) + TEST_PAYLOAD_LEN]; in write_test_packet()
186 memcpy(packet + sizeof(struct ethhdr), test_payload, TEST_PAYLOAD_LEN); in write_test_packet()
199 sizeof(struct udphdr) + TEST_PAYLOAD_LEN] = {}; in write_test_packet_udp()
213 ip6->payload_len = htons(sizeof(*udp) + TEST_PAYLOAD_LEN); in write_test_packet_udp()
219 udp->len = htons(sizeof(*udp) + TEST_PAYLOAD_LEN); in write_test_packet_udp()
222 memcpy(payload, test_payload, TEST_PAYLOAD_LEN); in write_test_packet_udp()