Re: UDP packets arriving on wrong sockets

2018-08-03 Thread Andrew Cann
On Fri, Aug 03, 2018 at 10:20:06AM -0400, Willem de Bruijn wrote: > On Fri, Aug 3, 2018 at 12:20 AM Andrew Cann wrote: > > > > On Thu, Aug 02, 2018 at 11:21:41AM -0400, Willem de Bruijn wrote: > > > You have two sockets bound to the same address and port? Is this using > > > SO_REUSEPORT? > > > >

Re: UDP packets arriving on wrong sockets

2018-08-03 Thread Willem de Bruijn
On Fri, Aug 3, 2018 at 12:20 AM Andrew Cann wrote: > > On Thu, Aug 02, 2018 at 11:21:41AM -0400, Willem de Bruijn wrote: > > You have two sockets bound to the same address and port? Is this using > > SO_REUSEPORT? > > Yes, this is using SO_REUSEPORT. Then this is working as intended. Without

Re: UDP packets arriving on wrong sockets

2018-08-02 Thread Andrew Cann
On Thu, Aug 02, 2018 at 11:21:41AM -0400, Willem de Bruijn wrote: > You have two sockets bound to the same address and port? Is this using > SO_REUSEPORT? Yes, this is using SO_REUSEPORT. My colleague wrote a python reproducer for this here:

Re: UDP packets arriving on wrong sockets

2018-08-02 Thread Eric Dumazet
here since it >>> got >>> no response. Original post: >>> https://stackoverflow.com/questions/51630337/udp-packets-arriving-on-wrong-sockets-on-linux >>> >>> I have two UDP sockets bound to the same address and connected to addresses >>> A >

Re: UDP packets arriving on wrong sockets

2018-08-02 Thread Willem de Bruijn
stackoverflow.com/questions/51630337/udp-packets-arriving-on-wrong-sockets-on-linux > > > > I have two UDP sockets bound to the same address and connected to addresses > > A > > and B. I have two more UDP sockets bound to A and B and not connected. > > > >

Re: UDP packets arriving on wrong sockets

2018-08-02 Thread Eric Dumazet
On 08/02/2018 06:20 AM, Eric Dumazet wrote: > > Ideally you could give us a C reproducer, so that we can run it ourselves and > fix the kernel bug if there is one. > > This C reproducer could be part of an official patch, adding a test in > tools/testing/selftests/net Alternatively a test

Re: UDP packets arriving on wrong sockets

2018-08-02 Thread Eric Dumazet
On 08/02/2018 02:05 AM, Andrew Cann wrote: > Hi, > > I posted this on stackoverflow yesterday but I'm reposting it here since it > got > no response. Original post: > https://stackoverflow.com/questions/51630337/udp-packets-arriving-on-wrong-sockets-on-linux > >

UDP packets arriving on wrong sockets

2018-08-02 Thread Andrew Cann
Hi, I posted this on stackoverflow yesterday but I'm reposting it here since it got no response. Original post: https://stackoverflow.com/questions/51630337/udp-packets-arriving-on-wrong-sockets-on-linux I have two UDP sockets bound to the same address and connected to addresses A and B. I