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

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:

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

Automatic TAP destruction/Monitoring namespace destruction

2018-02-23 Thread Andrew Cann
Hi Linux people, I hope this is an appropriate place to ask this.. In a program I'm writing I have a network namespace with a virtual (TAP) network interface assigned to it. I would like it so that the interface is automatically destroyed when the namespace is destroyed (ie. when the last process