Lines Matching refs:skops
32 int bpf_cong(struct bpf_sock_ops *skops) in bpf_cong() argument
41 if (bpf_ntohl(skops->remote_port) != 55601 && in bpf_cong()
42 skops->local_port != 55601) { in bpf_cong()
43 skops->reply = -1; in bpf_cong()
47 op = (int) skops->op; in bpf_cong()
57 if (skops->family == AF_INET6 && in bpf_cong()
58 skops->local_ip6[0] == skops->remote_ip6[0] && in bpf_cong()
59 (bpf_ntohl(skops->local_ip6[1]) & 0xfff00000) == in bpf_cong()
60 (bpf_ntohl(skops->remote_ip6[1]) & 0xfff00000)) { in bpf_cong()
66 rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_cong()
70 rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_cong()
82 skops->reply = rv; in bpf_cong()