Searched refs:bpf_ntohl (Results 1 – 19 of 19) sorted by relevance
/linux/samples/bpf/ |
H A D | tcp_synrto_kern.c | 33 if (bpf_ntohl(skops->remote_port) != 55601 && in bpf_synrto() 54 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_synrto() 55 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) in bpf_synrto()
|
H A D | tcp_rwnd_kern.c | 33 if (bpf_ntohl(skops->remote_port) != in bpf_rwnd() 54 (bpf_ntohl(skops->local_ip6[1]) & 0xfffff000) != in bpf_rwnd() 55 (bpf_ntohl(skops->remote_ip6[1]) & 0xfffff000)) in bpf_rwnd()
|
H A D | tcp_cong_kern.c | 34 if (bpf_ntohl(skops->remote_port) != 55601 && in bpf_cong() 52 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_cong() 53 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { in bpf_cong()
|
H A D | tcp_clamp_kern.c | 37 if (bpf_ntohl(skops->remote_port) != 55601 && skops->local_port != 55601) { in bpf_clamp() 54 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_clamp() 55 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { in bpf_clamp()
|
H A D | tcp_basertt_kern.c | 44 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_basertt() 45 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { in bpf_basertt()
|
H A D | tcp_bufs_kern.c | 36 if (bpf_ntohl(skops->remote_port) != 55601 && in bpf_bufs()
|
H A D | tcp_iw_kern.c | 37 if (bpf_ntohl(skops->remote_port) != 55601 && in bpf_iw()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tunnel_kern.c | 225 index = bpf_ntohl(md.u.index); in erspan_get_tunnel() 232 bpf_ntohl(md.u.md2.timestamp)); in erspan_get_tunnel() 306 index = bpf_ntohl(md.u.index); in ip4ip6erspan_get_tunnel() 313 bpf_ntohl(md.u.md2.timestamp)); in ip4ip6erspan_get_tunnel() 567 if (bpf_ntohl(key.local_ipv6[3]) != *local_ip || in ip6vxlan_get_tunnel_src() 571 key.tunnel_id, bpf_ntohl(key.local_ipv6[3]), in ip6vxlan_get_tunnel_src() 572 bpf_ntohl(key.remote_ipv6[3]), key.tunnel_label, in ip6vxlan_get_tunnel_src() 973 xfrm_spi = bpf_ntohl(x.spi); in xfrm_get_state() 974 xfrm_remote_ip = bpf_ntohl(x.remote_ipv4); in xfrm_get_state()
|
H A D | test_lwt_reroute.c | 27 skb->mark = bpf_ntohl(iph->daddr) & 0xff; in test_lwt_reroute()
|
H A D | test_tcp_custom_syncookie.c | 316 u32 seq = bpf_ntohl(ctx->tcp->seq); in tcp_prepare_cookie() 416 ctx->tcp->ack_seq = bpf_htonl(bpf_ntohl(ctx->tcp->seq) + 1); in tcp_handle_syn() 464 u32 cookie = bpf_ntohl(ctx->tcp->ack_seq) - 1; in tcp_validate_cookie() 465 u32 seq = bpf_ntohl(ctx->tcp->seq) - 1; in tcp_validate_cookie()
|
H A D | test_lwt_redirect.c | 37 return bpf_ntohl(iph->daddr) & 0xff; in get_redirect_target()
|
H A D | test_tcpnotify_kern.c | 39 if (bpf_ntohl(skops->remote_port) != TESTPORT) { in bpf_testcb()
|
H A D | test_btf_skc_cls_ingress.c | 61 recv_cookie = bpf_ntohl(th->ack_seq) - 1; in test_syncookie_helper()
|
H A D | test_tcp_check_syncookie_kern.c |
|
H A D | test_tcp_custom_syncookie.h | 40 return bpf_ntohl(__get_unaligned_t(__be32, p)); in get_unaligned_be32()
|
H A D | test_sockmap_kern.h | 215 if (bpf_ntohl(rport) == 10001) { in bpf_sockmap()
|
H A D | xdp_synproxy_kern.c | 525 tcp_header->ack_seq = bpf_htonl(bpf_ntohl(tcp_header->seq) + 1); in tcp_gen_synack()
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_sysctl.c | 696 bpf_ntohl(0x36303600), 2), 785 bpf_ntohl(0x36300000), 2), 808 bpf_ntohl(0x36303000)), 877 bpf_ntohl(0x36303000)), 991 bpf_ntohl(0x36303000)), 1024 bpf_ntohl(0x30373700)), 1068 bpf_ntohl(0x36303000)), 1109 bpf_ntohl(0x0d0c0a09)), 1151 bpf_ntohl(0x0a2d3600)), 1193 bpf_ntohl(0x0a2d3600)), [all …]
|
/linux/tools/lib/bpf/ |
H A D | bpf_endian.h | 89 #define bpf_ntohl(x) \ macro
|