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 SO_

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: https://gist.github.com/povilasb/53f1c802dbc2aca36a0ffa

Re: UDP packets arriving on wrong sockets

2018-08-02 Thread Eric Dumazet
On 08/02/2018 08:21 AM, Willem de Bruijn wrote: > On Thu, Aug 2, 2018 at 9:21 AM Eric Dumazet wrote: >> >> >> >> 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: >>> h

Re: UDP packets arriving on wrong sockets

2018-08-02 Thread Willem de Bruijn
On Thu, Aug 2, 2018 at 9:21 AM Eric Dumazet wrote: > > > > 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-a

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 i

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 > > I have two UDP sockets bound