skops 25 samples/bpf/tcp_basertt_kern.c int bpf_basertt(struct bpf_sock_ops *skops) skops 32 samples/bpf/tcp_basertt_kern.c op = (int) skops->op; skops 42 samples/bpf/tcp_basertt_kern.c if (skops->family == AF_INET6 && skops 43 samples/bpf/tcp_basertt_kern.c skops->local_ip6[0] == skops->remote_ip6[0] && skops 44 samples/bpf/tcp_basertt_kern.c (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == skops 45 samples/bpf/tcp_basertt_kern.c (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { skops 48 samples/bpf/tcp_basertt_kern.c n = bpf_getsockopt(skops, SOL_TCP, TCP_CONGESTION, skops 68 samples/bpf/tcp_basertt_kern.c skops->reply = rv; skops 26 samples/bpf/tcp_bufs_kern.c int bpf_bufs(struct bpf_sock_ops *skops) skops 36 samples/bpf/tcp_bufs_kern.c if (bpf_ntohl(skops->remote_port) != 55601 && skops 37 samples/bpf/tcp_bufs_kern.c skops->local_port != 55601) { skops 38 samples/bpf/tcp_bufs_kern.c skops->reply = -1; skops 42 samples/bpf/tcp_bufs_kern.c op = (int) skops->op; skops 57 samples/bpf/tcp_bufs_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, skops 59 samples/bpf/tcp_bufs_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, skops 67 samples/bpf/tcp_bufs_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, skops 69 samples/bpf/tcp_bufs_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, skops 78 samples/bpf/tcp_bufs_kern.c skops->reply = rv; skops 26 samples/bpf/tcp_clamp_kern.c int bpf_clamp(struct bpf_sock_ops *skops) skops 37 samples/bpf/tcp_clamp_kern.c if (bpf_ntohl(skops->remote_port) != 55601 && skops->local_port != 55601) { skops 38 samples/bpf/tcp_clamp_kern.c skops->reply = -1; skops 42 samples/bpf/tcp_clamp_kern.c op = (int) skops->op; skops 52 samples/bpf/tcp_clamp_kern.c if (skops->family == AF_INET6 && skops 53 samples/bpf/tcp_clamp_kern.c skops->local_ip6[0] == skops->remote_ip6[0] && skops 54 samples/bpf/tcp_clamp_kern.c (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == skops 55 samples/bpf/tcp_clamp_kern.c (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { skops 62 samples/bpf/tcp_clamp_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, skops 64 samples/bpf/tcp_clamp_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, skops 69 samples/bpf/tcp_clamp_kern.c rv = bpf_setsockopt(skops, SOL_TCP, skops 75 samples/bpf/tcp_clamp_kern.c rv = bpf_setsockopt(skops, SOL_TCP, skops 78 samples/bpf/tcp_clamp_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, skops 81 samples/bpf/tcp_clamp_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, skops 94 samples/bpf/tcp_clamp_kern.c skops->reply = rv; skops 25 samples/bpf/tcp_cong_kern.c int bpf_cong(struct bpf_sock_ops *skops) skops 34 samples/bpf/tcp_cong_kern.c if (bpf_ntohl(skops->remote_port) != 55601 && skops 35 samples/bpf/tcp_cong_kern.c skops->local_port != 55601) { skops 36 samples/bpf/tcp_cong_kern.c skops->reply = -1; skops 40 samples/bpf/tcp_cong_kern.c op = (int) skops->op; skops 50 samples/bpf/tcp_cong_kern.c if (skops->family == AF_INET6 && skops 51 samples/bpf/tcp_cong_kern.c skops->local_ip6[0] == skops->remote_ip6[0] && skops 52 samples/bpf/tcp_cong_kern.c (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == skops 53 samples/bpf/tcp_cong_kern.c (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { skops 59 samples/bpf/tcp_cong_kern.c rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, skops 63 samples/bpf/tcp_cong_kern.c rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, skops 75 samples/bpf/tcp_cong_kern.c skops->reply = rv; skops 26 samples/bpf/tcp_iw_kern.c int bpf_iw(struct bpf_sock_ops *skops) skops 37 samples/bpf/tcp_iw_kern.c if (bpf_ntohl(skops->remote_port) != 55601 && skops 38 samples/bpf/tcp_iw_kern.c skops->local_port != 55601) { skops 39 samples/bpf/tcp_iw_kern.c skops->reply = -1; skops 43 samples/bpf/tcp_iw_kern.c op = (int) skops->op; skops 58 samples/bpf/tcp_iw_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, skops 60 samples/bpf/tcp_iw_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, skops 64 samples/bpf/tcp_iw_kern.c rv = bpf_setsockopt(skops, SOL_TCP, TCP_BPF_IW, &iw, skops 69 samples/bpf/tcp_iw_kern.c rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, skops 71 samples/bpf/tcp_iw_kern.c rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, skops 80 samples/bpf/tcp_iw_kern.c skops->reply = rv; skops 25 samples/bpf/tcp_rwnd_kern.c int bpf_rwnd(struct bpf_sock_ops *skops) skops 33 samples/bpf/tcp_rwnd_kern.c if (bpf_ntohl(skops->remote_port) != skops 34 samples/bpf/tcp_rwnd_kern.c 55601 && skops->local_port != 55601) { skops 35 samples/bpf/tcp_rwnd_kern.c skops->reply = -1; skops 39 samples/bpf/tcp_rwnd_kern.c op = (int) skops->op; skops 47 samples/bpf/tcp_rwnd_kern.c skops->family == AF_INET6) { skops 53 samples/bpf/tcp_rwnd_kern.c if (skops->local_ip6[0] != skops->remote_ip6[0] || skops 54 samples/bpf/tcp_rwnd_kern.c (bpf_ntohl(skops->local_ip6[1]) & 0xfffff000) != skops 55 samples/bpf/tcp_rwnd_kern.c (bpf_ntohl(skops->remote_ip6[1]) & 0xfffff000)) skops 61 samples/bpf/tcp_rwnd_kern.c skops->reply = rv; skops 25 samples/bpf/tcp_synrto_kern.c int bpf_synrto(struct bpf_sock_ops *skops) skops 33 samples/bpf/tcp_synrto_kern.c if (bpf_ntohl(skops->remote_port) != 55601 && skops 34 samples/bpf/tcp_synrto_kern.c skops->local_port != 55601) { skops 35 samples/bpf/tcp_synrto_kern.c skops->reply = -1; skops 39 samples/bpf/tcp_synrto_kern.c op = (int) skops->op; skops 47 samples/bpf/tcp_synrto_kern.c skops->family == AF_INET6) { skops 53 samples/bpf/tcp_synrto_kern.c if (skops->local_ip6[0] == skops->remote_ip6[0] && skops 54 samples/bpf/tcp_synrto_kern.c (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == skops 55 samples/bpf/tcp_synrto_kern.c (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) skops 61 samples/bpf/tcp_synrto_kern.c skops->reply = rv; skops 24 samples/bpf/tcp_tos_reflect_kern.c int bpf_basertt(struct bpf_sock_ops *skops) skops 35 samples/bpf/tcp_tos_reflect_kern.c op = (int) skops->op; skops 42 samples/bpf/tcp_tos_reflect_kern.c rv = bpf_setsockopt(skops, SOL_TCP, TCP_SAVE_SYN, skops 46 samples/bpf/tcp_tos_reflect_kern.c if (skops->family == AF_INET) skops 50 samples/bpf/tcp_tos_reflect_kern.c rv = bpf_getsockopt(skops, SOL_TCP, TCP_SAVED_SYN, skops 53 samples/bpf/tcp_tos_reflect_kern.c if (skops->family == AF_INET) { skops 57 samples/bpf/tcp_tos_reflect_kern.c bpf_setsockopt(skops, SOL_IP, IP_TOS, skops 64 samples/bpf/tcp_tos_reflect_kern.c bpf_setsockopt(skops, SOL_IPV6, skops 77 samples/bpf/tcp_tos_reflect_kern.c skops->reply = rv; skops 54 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c int bpf_testcb(struct bpf_sock_ops *skops) skops 65 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c op = (int) skops->op; skops 72 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c bad_call_rv = bpf_sock_ops_cb_flags_set(skops, 0x80); skops 74 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c good_call_rv = bpf_sock_ops_cb_flags_set(skops, skops 92 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c skops->sk_txhash = 0x12345f; skops 94 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c rv = bpf_setsockopt(skops, SOL_IPV6, IPV6_TCLASS, &v, skops 96 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c if (skops->family == AF_INET6) { skops 97 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c v = bpf_getsockopt(skops, IPPROTO_TCP, TCP_SAVED_SYN, skops 117 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c if (skops->args[1] == BPF_TCP_CLOSE) { skops 125 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c if (skops->args[0] == BPF_TCP_LISTEN) { skops 128 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c g.total_retrans = skops->total_retrans; skops 129 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c g.data_segs_in = skops->data_segs_in; skops 130 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c g.data_segs_out = skops->data_segs_out; skops 131 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c g.bytes_received = skops->bytes_received; skops 132 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c g.bytes_acked = skops->bytes_acked; skops 139 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c bpf_sock_ops_cb_flags_set(skops, BPF_SOCK_OPS_STATE_CB_FLAG); skops 140 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c v = bpf_setsockopt(skops, IPPROTO_TCP, TCP_SAVE_SYN, skops 150 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c skops->reply = rv; skops 34 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c int bpf_testcb(struct bpf_sock_ops *skops) skops 39 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c op = (int) skops->op; skops 41 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c if (bpf_ntohl(skops->remote_port) != TESTPORT) { skops 42 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c skops->reply = -1; skops 59 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c bpf_sock_ops_cb_flags_set(skops, (BPF_SOCK_OPS_RETRANS_CB_FLAG| skops 80 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c g.total_retrans = skops->total_retrans; skops 84 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c bpf_perf_event_output(skops, &perf_event_map, skops 92 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c skops->reply = rv; skops 124 tools/testing/selftests/bpf/test_sockmap_kern.h int bpf_sockmap(struct bpf_sock_ops *skops) skops 130 tools/testing/selftests/bpf/test_sockmap_kern.h op = (int) skops->op; skops 134 tools/testing/selftests/bpf/test_sockmap_kern.h lport = skops->local_port; skops 135 tools/testing/selftests/bpf/test_sockmap_kern.h rport = skops->remote_port; skops 140 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_sock_map_update(skops, &sock_map, &ret, skops 143 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_sock_hash_update(skops, &sock_map, &ret, skops 151 tools/testing/selftests/bpf/test_sockmap_kern.h lport = skops->local_port; skops 152 tools/testing/selftests/bpf/test_sockmap_kern.h rport = skops->remote_port; skops 157 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_sock_map_update(skops, &sock_map, &ret, skops 160 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_sock_hash_update(skops, &sock_map, &ret,