Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c671 struct iphdr iph_outer; in decap_ipv4() local
673 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_outer, in decap_ipv4()
674 sizeof(iph_outer)) < 0) in decap_ipv4()
677 if (iph_outer.ihl != 5) in decap_ipv4()
680 return decap_internal(skb, ETH_HLEN, sizeof(iph_outer), in decap_ipv4()
681 iph_outer.protocol); in decap_ipv4()
686 struct ipv6hdr iph_outer; in decap_ipv6() local
688 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_outer, in decap_ipv6()
689 sizeof(iph_outer)) < 0) in decap_ipv6()
692 return decap_internal(skb, ETH_HLEN, sizeof(iph_outer), in decap_ipv6()
[all …]