Searched refs:bpf_htons (Results 51 - 62 of 62) sorted by last modified time

123

/linux-master/samples/bpf/
H A Dxdp_router_ipv4.bpf.c92 if (h_proto == bpf_htons(ETH_P_8021Q) ||
93 h_proto == bpf_htons(ETH_P_8021AD)) {
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb_noinline.c463 if (eth_proto == bpf_htons(ETH_P_IP))
465 else if (eth_proto == bpf_htons(ETH_P_IPV6))
H A Dxdp_redirect_multi_kern.c54 if (h_proto == bpf_htons(ETH_P_IP))
58 else if (h_proto == bpf_htons(ETH_P_IPV6))
H A Dtest_tc_edt.c73 if (tcp->dest == bpf_htons(9000))
104 if (skb->protocol == bpf_htons(ETH_P_IP))
H A Dtest_l4lb.c464 if (eth_proto == bpf_htons(ETH_P_IP))
466 else if (eth_proto == bpf_htons(ETH_P_IPV6))
H A Dkfree_skb.c102 if (users != 1 || pkt_data != bpf_htons(0x86dd) || meta.ifindex != 1)
149 if (len != 60 || protocol != bpf_htons(0x86dd) || ifindex != 1)
H A Dconnect_force_port6.c36 sa.sin6_port = bpf_htons(22223);
43 if (ctx->user_port == bpf_htons(60000)) {
59 ctx->user_port = bpf_htons(60124);
71 if (ctx->user_port == bpf_htons(60124)) {
76 ctx->user_port = bpf_htons(60000);
90 if (ctx->user_port == bpf_htons(60124)) {
H A Dconnect_force_port4.c37 sa.sin_port = bpf_htons(22222);
44 if (ctx->user_port == bpf_htons(60000)) {
54 ctx->user_port = bpf_htons(60123);
66 if (ctx->user_port == bpf_htons(60123)) {
68 ctx->user_port = bpf_htons(60000);
82 if (ctx->user_port == bpf_htons(60123)) {
H A Dconnect4_dropper.c21 if (ctx->user_port == bpf_htons(60120))
H A Dbind_perm.c27 if (ctx->user_port == bpf_htons(111))
H A Dtest_lwt_ip_encap.c39 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr));
63 hdr.ip6hdr.payload_len = bpf_htons(skb->len + sizeof(struct grehdr));
/linux-master/tools/lib/bpf/
H A Dbpf_endian.h80 #define bpf_htons(x) \ macro

Completed in 319 milliseconds

123