bpf_htons 120 tools/testing/selftests/bpf/progs/bpf_flow.c case bpf_htons(ETH_P_IP): bpf_htons 123 tools/testing/selftests/bpf/progs/bpf_flow.c case bpf_htons(ETH_P_IPV6): bpf_htons 126 tools/testing/selftests/bpf/progs/bpf_flow.c case bpf_htons(ETH_P_MPLS_MC): bpf_htons 127 tools/testing/selftests/bpf/progs/bpf_flow.c case bpf_htons(ETH_P_MPLS_UC): bpf_htons 130 tools/testing/selftests/bpf/progs/bpf_flow.c case bpf_htons(ETH_P_8021Q): bpf_htons 131 tools/testing/selftests/bpf/progs/bpf_flow.c case bpf_htons(ETH_P_8021AD): bpf_htons 172 tools/testing/selftests/bpf/progs/bpf_flow.c return parse_eth_proto(skb, bpf_htons(ETH_P_IP)); bpf_htons 178 tools/testing/selftests/bpf/progs/bpf_flow.c return parse_eth_proto(skb, bpf_htons(ETH_P_IPV6)); bpf_htons 184 tools/testing/selftests/bpf/progs/bpf_flow.c if (bpf_htons(gre->flags & GRE_VERSION)) bpf_htons 200 tools/testing/selftests/bpf/progs/bpf_flow.c if (gre->proto == bpf_htons(ETH_P_TEB)) { bpf_htons 286 tools/testing/selftests/bpf/progs/bpf_flow.c if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) { bpf_htons 288 tools/testing/selftests/bpf/progs/bpf_flow.c if (iph->frag_off & bpf_htons(IP_OFFSET)) { bpf_htons 363 tools/testing/selftests/bpf/progs/bpf_flow.c if (!(fragh->frag_off & bpf_htons(IP6_OFFSET))) { bpf_htons 394 tools/testing/selftests/bpf/progs/bpf_flow.c if (keys->n_proto == bpf_htons(ETH_P_8021AD)) { bpf_htons 399 tools/testing/selftests/bpf/progs/bpf_flow.c if (vlan->h_vlan_encapsulated_proto != bpf_htons(ETH_P_8021Q)) bpf_htons 413 tools/testing/selftests/bpf/progs/bpf_flow.c if (vlan->h_vlan_encapsulated_proto == bpf_htons(ETH_P_8021AD) || bpf_htons 414 tools/testing/selftests/bpf/progs/bpf_flow.c vlan->h_vlan_encapsulated_proto == bpf_htons(ETH_P_8021Q)) bpf_htons 33 tools/testing/selftests/bpf/progs/connect4_prog.c tuple.ipv4.dport = bpf_htons(DST_REWRITE_PORT4); bpf_htons 57 tools/testing/selftests/bpf/progs/connect4_prog.c ctx->user_port = bpf_htons(DST_REWRITE_PORT4); bpf_htons 63 tools/testing/selftests/bpf/progs/connect4_prog.c sa.sin_port = bpf_htons(0); bpf_htons 45 tools/testing/selftests/bpf/progs/connect6_prog.c tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6); bpf_htons 76 tools/testing/selftests/bpf/progs/connect6_prog.c ctx->user_port = bpf_htons(DST_REWRITE_PORT6); bpf_htons 82 tools/testing/selftests/bpf/progs/connect6_prog.c sa.sin6_port = bpf_htons(0); bpf_htons 38 tools/testing/selftests/bpf/progs/sendmsg4_prog.c ctx->user_port == bpf_htons(DST_PORT)) { bpf_htons 40 tools/testing/selftests/bpf/progs/sendmsg4_prog.c ctx->user_port = bpf_htons(DST_REWRITE_PORT4); bpf_htons 50 tools/testing/selftests/bpf/progs/sendmsg6_prog.c ctx->user_port = bpf_htons(DST_REWRITE_PORT6); bpf_htons 466 tools/testing/selftests/bpf/progs/test_l4lb.c if (eth_proto == bpf_htons(ETH_P_IP)) bpf_htons 468 tools/testing/selftests/bpf/progs/test_l4lb.c else if (eth_proto == bpf_htons(ETH_P_IPV6)) bpf_htons 466 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (eth_proto == bpf_htons(ETH_P_IP)) bpf_htons 468 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c else if (eth_proto == bpf_htons(ETH_P_IPV6)) bpf_htons 39 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); bpf_htons 63 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c hdr.ip6hdr.payload_len = bpf_htons(skb->len + sizeof(struct grehdr)); bpf_htons 363 tools/testing/selftests/bpf/progs/test_lwt_seg6local.c uint16_t new_tag = bpf_htons(2442); bpf_htons 411 tools/testing/selftests/bpf/progs/test_lwt_seg6local.c if (srh->tag != bpf_htons(2442)) bpf_htons 33 tools/testing/selftests/bpf/progs/test_pkt_access.c if (eth->h_proto == bpf_htons(ETH_P_IP)) { bpf_htons 41 tools/testing/selftests/bpf/progs/test_pkt_access.c } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { bpf_htons 85 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c if (data_check.eth_protocol == bpf_htons(ETH_P_IP)) { bpf_htons 30 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c if (eth_proto == bpf_htons(ETH_P_IP)) { bpf_htons 39 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c } else if (eth_proto == bpf_htons(ETH_P_IPV6)) { bpf_htons 73 tools/testing/selftests/bpf/progs/test_tc_edt.c if (tcp->dest == bpf_htons(9000)) bpf_htons 104 tools/testing/selftests/bpf/progs/test_tc_edt.c if (skb->protocol == bpf_htons(ETH_P_IP)) bpf_htons 105 tools/testing/selftests/bpf/progs/test_tc_tunnel.c iph_inner.tot_len = bpf_htons(sizeof(iph6_inner) + bpf_htons 153 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); bpf_htons 160 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); bpf_htons 162 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + bpf_htons 192 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip.tot_len = bpf_htons(olen + bpf_htons 209 tools/testing/selftests/bpf/progs/test_tc_tunnel.c eth.h_proto = bpf_htons(ETH_P_IP); bpf_htons 261 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); bpf_htons 268 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); bpf_htons 272 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.len = bpf_htons(tot_len); bpf_htons 299 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip.payload_len = bpf_htons(olen + bpf_htons 411 tools/testing/selftests/bpf/progs/test_tunnel_kern.c gopt.opt_class = bpf_htons(0x102); /* Open Virtual Networking (OVN) */ bpf_htons 481 tools/testing/selftests/bpf/progs/test_tunnel_kern.c gopt.opt_class = bpf_htons(0x102); /* Open Virtual Networking (OVN) */ bpf_htons 548 tools/testing/selftests/bpf/progs/test_tunnel_kern.c if (tcp->dest == bpf_htons(5200)) bpf_htons 550 tools/testing/selftests/bpf/progs/test_tunnel_kern.c else if (tcp->dest == bpf_htons(5201)) bpf_htons 658 tools/testing/selftests/bpf/progs/test_tunnel_kern.c if (tcp->dest == bpf_htons(5200)) { bpf_htons 660 tools/testing/selftests/bpf/progs/test_tunnel_kern.c } else if (tcp->dest == bpf_htons(5201)) { bpf_htons 128 tools/testing/selftests/bpf/progs/test_xdp.c set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); bpf_htons 136 tools/testing/selftests/bpf/progs/test_xdp.c iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); bpf_htons 197 tools/testing/selftests/bpf/progs/test_xdp.c set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); bpf_htons 202 tools/testing/selftests/bpf/progs/test_xdp.c ip6h->payload_len = bpf_htons(bpf_ntohs(payload_len) + sizeof(*ip6h)); bpf_htons 226 tools/testing/selftests/bpf/progs/test_xdp.c if (h_proto == bpf_htons(ETH_P_IP)) bpf_htons 228 tools/testing/selftests/bpf/progs/test_xdp.c else if (h_proto == bpf_htons(ETH_P_IPV6)) bpf_htons 124 tools/testing/selftests/bpf/progs/test_xdp_loop.c set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); bpf_htons 132 tools/testing/selftests/bpf/progs/test_xdp_loop.c iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); bpf_htons 193 tools/testing/selftests/bpf/progs/test_xdp_loop.c set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); bpf_htons 198 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h->payload_len = bpf_htons(bpf_ntohs(payload_len) + sizeof(*ip6h)); bpf_htons 222 tools/testing/selftests/bpf/progs/test_xdp_loop.c if (h_proto == bpf_htons(ETH_P_IP)) bpf_htons 224 tools/testing/selftests/bpf/progs/test_xdp_loop.c else if (h_proto == bpf_htons(ETH_P_IPV6)) bpf_htons 309 tools/testing/selftests/bpf/progs/test_xdp_noinline.c bpf_htons(pkt_bytes + sizeof(struct ipv6hdr)); bpf_htons 356 tools/testing/selftests/bpf/progs/test_xdp_noinline.c iph->tot_len = bpf_htons(pkt_bytes + sizeof(struct iphdr)); bpf_htons 70 tools/testing/selftests/bpf/progs/test_xdp_vlan.c if (eth_type == bpf_htons(ETH_P_8021Q) bpf_htons 71 tools/testing/selftests/bpf/progs/test_xdp_vlan.c || eth_type == bpf_htons(ETH_P_8021AD)) { bpf_htons 83 tools/testing/selftests/bpf/progs/test_xdp_vlan.c if (eth_type == bpf_htons(ETH_P_8021Q) bpf_htons 84 tools/testing/selftests/bpf/progs/test_xdp_vlan.c || eth_type == bpf_htons(ETH_P_8021AD)) { bpf_htons 163 tools/testing/selftests/bpf/progs/test_xdp_vlan.c bpf_htons((bpf_ntohs(vlan_hdr->h_vlan_TCI) & 0xf000) bpf_htons 273 tools/testing/selftests/bpf/progs/test_xdp_vlan.c bpf_skb_vlan_push(ctx, bpf_htons(ETH_P_8021Q), TESTVLAN); bpf_htons 70 tools/testing/selftests/bpf/progs/xdping_kern.c if (eth->h_proto != bpf_htons(ETH_P_IP)) bpf_htons 142 tools/testing/selftests/bpf/progs/xdping_kern.c seq = bpf_htons(bpf_ntohs(icmph->un.echo.sequence) + 1);