Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect_dynptr.c306 encap_gre_t *encap_gre; in forward_with_gre() local
399 encap_gre = bpf_dynptr_slice_rdwr(dynptr, 0, encap_buffer, sizeof(encap_buffer)); in forward_with_gre()
400 if (!encap_gre) { in forward_with_gre()
405 encap_gre->ip.protocol = IPPROTO_GRE; in forward_with_gre()
406 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre()
407 encap_gre->ip.saddr = ENCAPSULATION_IP; in forward_with_gre()
408 encap_gre->ip.tot_len = in forward_with_gre()
409 bpf_htons(bpf_ntohs(encap_gre->ip.tot_len) + delta); in forward_with_gre()
410 encap_gre->gre.flags = 0; in forward_with_gre()
411 encap_gre->gre.protocol = bpf_htons(proto); in forward_with_gre()
[all …]
Dtest_cls_redirect.c511 encap_gre_t *encap_gre = buf_assign(&pkt, sizeof(encap_gre_t), NULL); in forward_with_gre() local
512 if (encap_gre == NULL) { in forward_with_gre()
517 encap_gre->ip.protocol = IPPROTO_GRE; in forward_with_gre()
518 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre()
519 encap_gre->ip.saddr = ENCAPSULATION_IP; in forward_with_gre()
520 encap_gre->ip.tot_len = in forward_with_gre()
521 bpf_htons(bpf_ntohs(encap_gre->ip.tot_len) + delta); in forward_with_gre()
522 encap_gre->gre.flags = 0; in forward_with_gre()
523 encap_gre->gre.protocol = bpf_htons(proto); in forward_with_gre()
524 pkt_ipv4_checksum((void *)&encap_gre->ip); in forward_with_gre()
/linux-6.12.1/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.12.1/drivers/net/hyperv/
Dhyperv_net.h1513 struct ndis_encap_offload encap_gre; member