Socket bound to 0.0.0.0 never receives broadcasts with non-zero IP source address

John Howie john at thehowies.com
Wed Apr 8 23:07:55 UTC 2015


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¹ right now...

Regards,

John


On 4/8/15, 6:42 PM, "Yuri" <yuri at 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



More information about the freebsd-net mailing list