Re: [PATCH v2 1/3] net: introduce SO_BINDTOIFINDEX sockopt

2019-01-17 Thread David Miller
From: David Herrmann Date: Tue, 15 Jan 2019 14:42:14 +0100 > This introduces a new generic SOL_SOCKET-level socket option called > SO_BINDTOIFINDEX. It behaves similar to SO_BINDTODEVICE, but takes a > network interface index as argument, rather than the network interface > name. > > User-space

Re: [PATCH v2 1/3] net: introduce SO_BINDTOIFINDEX sockopt

2019-01-17 Thread Willem de Bruijn
On Tue, Jan 15, 2019 at 11:30 AM David Herrmann wrote: > > This introduces a new generic SOL_SOCKET-level socket option called > SO_BINDTOIFINDEX. It behaves similar to SO_BINDTODEVICE, but takes a > network interface index as argument, rather than the network interface > name. > > User-space ofte

[PATCH v2 1/3] net: introduce SO_BINDTOIFINDEX sockopt

2019-01-15 Thread David Herrmann
This introduces a new generic SOL_SOCKET-level socket option called SO_BINDTOIFINDEX. It behaves similar to SO_BINDTODEVICE, but takes a network interface index as argument, rather than the network interface name. User-space often refers to network-interfaces via their index, but has to temporaril