Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c668 struct iphdr iph_outer; in decap_ipv4() local
670 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_outer, in decap_ipv4()
671 sizeof(iph_outer)) < 0) in decap_ipv4()
674 if (iph_outer.ihl != 5) in decap_ipv4()
677 return decap_internal(skb, ETH_HLEN, sizeof(iph_outer), in decap_ipv4()
678 iph_outer.protocol); in decap_ipv4()
683 struct ipv6hdr iph_outer; in decap_ipv6() local
685 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_outer, in decap_ipv6()
686 sizeof(iph_outer)) < 0) in decap_ipv6()
689 return decap_internal(skb, ETH_HLEN, sizeof(iph_outer), in decap_ipv6()
[all …]