Searched refs:buf_assign (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect.c | 183 static __always_inline void *buf_assign(buf_t *buf, const size_t len, void *scratch) in buf_assign() function 215 struct iphdr *ipv4 = buf_assign(pkt, sizeof(*ipv4), scratch); in pkt_parse_ipv4() 351 struct ipv6hdr *ipv6 = buf_assign(pkt, sizeof(*ipv6), scratch); in pkt_parse_ipv6() 508 encap_gre_t *encap_gre = buf_assign(&pkt, sizeof(encap_gre_t), NULL); in forward_with_gre() 820 struct tcphdr *tcp = buf_assign(pkt, sizeof(_tcp), &_tcp); in process_tcp() 842 struct udphdr *udph = buf_assign(pkt, sizeof(_udp), &_udp); in process_udp() 963 encap = buf_assign(&pkt, sizeof(*encap), NULL); in cls_redirect()
|