Lines Matching refs:skops
26 int bpf_iw(struct bpf_sock_ops *skops) in bpf_iw() argument
37 if (bpf_ntohl(skops->remote_port) != 55601 && in bpf_iw()
38 skops->local_port != 55601) { in bpf_iw()
39 skops->reply = -1; in bpf_iw()
43 op = (int) skops->op; in bpf_iw()
58 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, in bpf_iw()
60 rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, in bpf_iw()
64 rv = bpf_setsockopt(skops, SOL_TCP, TCP_BPF_IW, &iw, in bpf_iw()
69 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, in bpf_iw()
71 rv += bpf_setsockopt(skops, SOL_SOCKET, SO_RCVBUF, in bpf_iw()
80 skops->reply = rv; in bpf_iw()