Re: UDP does not autobind on recv

2016-10-24 Thread Jiri Slaby
On 10/24/2016, 03:03 PM, Eric Dumazet wrote: > On Mon, 2016-10-24 at 14:54 +0200, Jiri Slaby wrote: >> Hello, >> >> as per man 7 udp: >> In order to receive packets, the socket can be bound to >> a local address first by using bind(2). Otherwise, >> the socket layer will automatically assi

Re: UDP does not autobind on recv

2016-10-24 Thread Eric Dumazet
On Mon, 2016-10-24 at 14:54 +0200, Jiri Slaby wrote: > Hello, > > as per man 7 udp: > In order to receive packets, the socket can be bound to > a local address first by using bind(2). Otherwise, > the socket layer will automatically assign a free local > port out of the range defined by

UDP does not autobind on recv

2016-10-24 Thread Jiri Slaby
Hello, as per man 7 udp: In order to receive packets, the socket can be bound to a local address first by using bind(2). Otherwise, the socket layer will automatically assign a free local port out of the range defined by /proc/sys/net/ipv4 /ip_local_port_range and bind the socket to I