Re: [RFC PATCH net-next v2 07/15] bpf: Add setsockopt helper function to bpf

2017-06-17 Thread Lawrence Brakmo
On 6/16/17, 6:27 AM, "Daniel Borkmann" wrote: On 06/15/2017 10:08 PM, Lawrence Brakmo wrote: > Added support for calling a subset of socket setsockopts from > BPF_PROG_TYPE_SOCKET_OPS programs. The code was duplicated rather > than making the changes to

Re: [RFC PATCH net-next v2 07/15] bpf: Add setsockopt helper function to bpf

2017-06-16 Thread Daniel Borkmann
On 06/15/2017 10:08 PM, Lawrence Brakmo wrote: Added support for calling a subset of socket setsockopts from BPF_PROG_TYPE_SOCKET_OPS programs. The code was duplicated rather than making the changes to call the socket setsockopt function because the changes required would have been larger. The

[RFC PATCH net-next v2 07/15] bpf: Add setsockopt helper function to bpf

2017-06-15 Thread Lawrence Brakmo
Added support for calling a subset of socket setsockopts from BPF_PROG_TYPE_SOCKET_OPS programs. The code was duplicated rather than making the changes to call the socket setsockopt function because the changes required would have been larger. The ops supported are: SO_RCVBUF SO_SNDBUF