On 03/25/2016 12:25 AM, Tom Herbert wrote:
> On Wed, Mar 16, 2016 at 6:19 AM, Gilberto Bertin
> wrote:
>> This is my second attempt to submit an RFC for this patch.
>>
>> Some arguments for and against it since the first submission:
>> * SO_BINDTOSUBNET is an arbitrary option and can be seens as n
On Wed, Mar 16, 2016 at 6:19 AM, Gilberto Bertin
wrote:
> This is my second attempt to submit an RFC for this patch.
>
> Some arguments for and against it since the first submission:
> * SO_BINDTOSUBNET is an arbitrary option and can be seens as nother use
> * case of the SO_REUSEPORT BPF patch
>
> - write a bpf filter like this:
..
>
> - compile it:
> $ clang -target bpf -c -o socket_bpf.o socket_bpf.c
>
> - add this to your server.c:
> bpf_load_file("/path/to/socket_bpf.o");
> setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd,
> sizeof(prog_fd[0]));
>
> - link y
> On 7 Mar 2016, at 17:49, Tom Herbert wrote:
>
>> That said, do you believe it could be an option to maybe have both these
>> options? I think that the ability to run BPF in the listening path is
>> really interesting, but it's probably an overkill for the bind-to-subnet
>> use case.
>>
>
> M
On 2/23/16 8:27 AM, Gilberto Bertin wrote:
This series introduces support for the SO_BINDTOSUBNET socket option, which
allows a listener socket to bind to a subnet instead of * or a single address.
Motivation:
consider a set of servers, each one with thousands and thousands of IP
addresses. Sinc
On Mon, Mar 7, 2016 at 9:22 AM, Gilberto Bertin
wrote:
>
>> On 24 Feb 2016, at 05:06, Tom Herbert wrote:
>>
>> On Tue, Feb 23, 2016 at 7:27 AM, Gilberto Bertin
>> wrote:
>>> This series introduces support for the SO_BINDTOSUBNET socket option, which
>>> allows a listener socket to bind to a subn
> On 24 Feb 2016, at 05:06, Tom Herbert wrote:
>
> On Tue, Feb 23, 2016 at 7:27 AM, Gilberto Bertin
> wrote:
>> This series introduces support for the SO_BINDTOSUBNET socket option, which
>> allows a listener socket to bind to a subnet instead of * or a single
>> address.
>>
>> Motivation:
>>
> On 24 Feb 2016, at 05:06, Tom Herbert wrote:
>
> On Tue, Feb 23, 2016 at 7:27 AM, Gilberto Bertin
> wrote:
>> This series introduces support for the SO_BINDTOSUBNET socket option, which
>> allows a listener socket to bind to a subnet instead of * or a single
>> address.
>>
>> Motivation:
>>
On Tue, Feb 23, 2016 at 7:27 AM, Gilberto Bertin
wrote:
> This series introduces support for the SO_BINDTOSUBNET socket option, which
> allows a listener socket to bind to a subnet instead of * or a single address.
>
> Motivation:
> consider a set of servers, each one with thousands and thousands