Lines Matching refs:skops
25 int bpf_cong(struct bpf_sock_ops *skops) in bpf_cong() argument
34 if (bpf_ntohl(skops->remote_port) != 55601 && in bpf_cong()
35 skops->local_port != 55601) { in bpf_cong()
36 skops->reply = -1; in bpf_cong()
40 op = (int) skops->op; in bpf_cong()
50 if (skops->family == AF_INET6 && in bpf_cong()
51 skops->local_ip6[0] == skops->remote_ip6[0] && 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()
59 rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_cong()
63 rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_cong()
75 skops->reply = rv; in bpf_cong()