Date: Wed, 8 Apr 2015 23:07:52 +0000 From: John Howie <john@thehowies.com> To: Yuri <yuri@rawbw.com>, "net@freebsd.org" <net@freebsd.org> Cc: Daniel Corbe <corbe@corbe.net> Subject: Re: Socket bound to 0.0.0.0 never receives broadcasts with non-zero IP source address Message-ID: <D14B2C1E.3D605%john@thehowies.com> In-Reply-To: <5525AEE4.3030400@rawbw.com> References: <55248957.60109@rawbw.com> <878ue2n6lu.fsf@corbe.net> <55259BC7.6040502@rawbw.com> <D14B21F3.3D5E8%john@thehowies.com> <5525AEE4.3030400@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Yuri, Have you tried using a static IP address for the host and VM, and disabling DHCP? The DHCP client will bind to and use 0.0.0.0 to get an IP address. The SO_REUSEADDR rule is that every tuple (proto, src ip, src port, dst ip, dst prt) must be unique. I am wondering if that is where your problem lies. There might be something that is shortcutting the uniqueness of the tuple and just focusing on IP addresses. I would validate that for you but I am at 35000=B9 right now... Regards, John On 4/8/15, 6:42 PM, "Yuri" <yuri@rawbw.com> wrote: >On 04/08/2015 15:31, John Howie wrote: >> Is your machine a router or gateway, or have a firewall? Are you trying >>to >> capture all broadcast packets, or just UDP targeted and broadcast >>packets >> to a particular port? > >No, it isn't a gateway or router, and no firewall. Trying to capture all >broadcast UDP to a particular port. > >Observing this with with virtual machine dhcp client bridged to the host >through tapN. Host is otherwise just a plain FreeBSD workstation itself. > >Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D14B2C1E.3D605%john>