Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c508 encap_gre_t *encap_gre = buf_assign(&pkt, sizeof(encap_gre_t), NULL); in forward_with_gre() local
509 if (encap_gre == NULL) { in forward_with_gre()
514 encap_gre->ip.protocol = IPPROTO_GRE; in forward_with_gre()
515 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre()
516 encap_gre->ip.saddr = ENCAPSULATION_IP; in forward_with_gre()
517 encap_gre->ip.tot_len = in forward_with_gre()
518 bpf_htons(bpf_ntohs(encap_gre->ip.tot_len) + delta); in forward_with_gre()
519 encap_gre->gre.flags = 0; in forward_with_gre()
520 encap_gre->gre.protocol = bpf_htons(proto); in forward_with_gre()
521 pkt_ipv4_checksum((void *)&encap_gre->ip); in forward_with_gre()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_lwt_ip_encap.sh377 ${BPF_FILE} sec encap_gre dev veth1 ${VRF}
379 ${BPF_FILE} sec encap_gre dev veth1 ${VRF}
435 ${BPF_FILE} sec encap_gre dev veth2 ${VRF}
437 ${BPF_FILE} sec encap_gre dev veth2 ${VRF}
/linux-6.1.9/drivers/net/hyperv/
Dhyperv_net.h1511 struct ndis_encap_offload encap_gre; member