Home
last modified time | relevance | path

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

/external/linux-kselftest/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()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lwt_ip_encap.sh368 test_lwt_ip_encap.o sec encap_gre dev veth1 ${VRF}
370 test_lwt_ip_encap.o sec encap_gre dev veth1 ${VRF}
426 test_lwt_ip_encap.o sec encap_gre dev veth2 ${VRF}
428 test_lwt_ip_encap.o sec encap_gre dev veth2 ${VRF}