h_outer 77 tools/testing/selftests/bpf/progs/test_tc_tunnel.c struct v4hdr h_outer; h_outer 132 tools/testing/selftests/bpf/progs/test_tc_tunnel.c olen = sizeof(h_outer.ip); h_outer 152 tools/testing/selftests/bpf/progs/test_tc_tunnel.c olen += sizeof(h_outer.l4hdr.gre); h_outer 153 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); h_outer 154 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.gre.flags = 0; h_outer 158 tools/testing/selftests/bpf/progs/test_tc_tunnel.c olen += sizeof(h_outer.l4hdr.udp); h_outer 159 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); h_outer 160 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); h_outer 161 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.check = 0; h_outer 162 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + h_outer 163 tools/testing/selftests/bpf/progs/test_tc_tunnel.c sizeof(h_outer.l4hdr.udp) + h_outer 176 tools/testing/selftests/bpf/progs/test_tc_tunnel.c *((__u32 *)((__u8 *)&h_outer + olen)) = mpls_label; h_outer 179 tools/testing/selftests/bpf/progs/test_tc_tunnel.c if (bpf_skb_load_bytes(skb, 0, (__u8 *)&h_outer + olen, h_outer 191 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip = iph_inner; h_outer 192 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip.tot_len = bpf_htons(olen + h_outer 193 tools/testing/selftests/bpf/progs/test_tc_tunnel.c bpf_ntohs(h_outer.ip.tot_len)); h_outer 194 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip.protocol = encap_proto; h_outer 196 tools/testing/selftests/bpf/progs/test_tc_tunnel.c set_ipv4_csum((void *)&h_outer.ip); h_outer 199 tools/testing/selftests/bpf/progs/test_tc_tunnel.c if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, h_outer 222 tools/testing/selftests/bpf/progs/test_tc_tunnel.c struct v6hdr h_outer; h_outer 240 tools/testing/selftests/bpf/progs/test_tc_tunnel.c olen = sizeof(h_outer.ip); h_outer 260 tools/testing/selftests/bpf/progs/test_tc_tunnel.c olen += sizeof(h_outer.l4hdr.gre); h_outer 261 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); h_outer 262 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.gre.flags = 0; h_outer 266 tools/testing/selftests/bpf/progs/test_tc_tunnel.c olen += sizeof(h_outer.l4hdr.udp); h_outer 267 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); h_outer 268 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); h_outer 270 tools/testing/selftests/bpf/progs/test_tc_tunnel.c sizeof(h_outer.l4hdr.udp); h_outer 271 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.check = 0; h_outer 272 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.len = bpf_htons(tot_len); h_outer 283 tools/testing/selftests/bpf/progs/test_tc_tunnel.c *((__u32 *)((__u8 *)&h_outer + olen)) = mpls_label; h_outer 286 tools/testing/selftests/bpf/progs/test_tc_tunnel.c if (bpf_skb_load_bytes(skb, 0, (__u8 *)&h_outer + olen, h_outer 298 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip = iph_inner; h_outer 299 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip.payload_len = bpf_htons(olen + h_outer 300 tools/testing/selftests/bpf/progs/test_tc_tunnel.c bpf_ntohs(h_outer.ip.payload_len)); h_outer 302 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip.nexthdr = encap_proto; h_outer 305 tools/testing/selftests/bpf/progs/test_tc_tunnel.c if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen,