Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c501 encap_gre_t *encap_gre = buf_assign(&pkt, sizeof(encap_gre_t), NULL); in forward_with_gre() local
502 if (encap_gre == NULL) { in forward_with_gre()
507 encap_gre->ip.protocol = IPPROTO_GRE; in forward_with_gre()
508 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre()
509 encap_gre->ip.saddr = ENCAPSULATION_IP; in forward_with_gre()
510 encap_gre->ip.tot_len = in forward_with_gre()
511 bpf_htons(bpf_ntohs(encap_gre->ip.tot_len) + delta); in forward_with_gre()
512 encap_gre->gre.flags = 0; in forward_with_gre()
513 encap_gre->gre.protocol = bpf_htons(proto); in forward_with_gre()
514 pkt_ipv4_checksum((void *)&encap_gre->ip); in forward_with_gre()
/Linux-v5.10/tools/testing/selftests/bpf/
Dtest_lwt_ip_encap.sh365 test_lwt_ip_encap.o sec encap_gre dev veth1 ${VRF}
367 test_lwt_ip_encap.o sec encap_gre dev veth1 ${VRF}
423 test_lwt_ip_encap.o sec encap_gre dev veth2 ${VRF}
425 test_lwt_ip_encap.o sec encap_gre dev veth2 ${VRF}
/Linux-v5.10/drivers/net/hyperv/
Dhyperv_net.h1393 struct ndis_encap_offload encap_gre; member