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

2015-04-08 Thread Yuri
On 04/08/2015 19:59, John Howie wrote: > Still at 35000’ (literally), trying to get to where I am going! Oh, you are flying! I first didn't understand what 35000' meant. Have a safe rest of the flight! Yuri ___ freebsd-net@freebsd.org mailing list http

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

2015-04-08 Thread John Howie
Hi Yuri, No need to apologize! Sometimes it takes a dispassionate person to review the problem to help you find the solution. You found it, not me. I just helped you get there… Still at 35000’ (literally), trying to get to where I am going! Regards, John On 4/8/15, 9:43 PM, "Yuri" wrote: >O

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

2015-04-08 Thread Yuri
On 04/08/2015 16:07, John Howie wrote: 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 won

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

2015-04-08 Thread John Howie
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 pr

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

2015-04-08 Thread Yuri
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 U

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

2015-04-08 Thread John Howie
Hi Yuri, 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? Regards, John On 4/8/15, 5:21 PM, "Yuri" wrote: >On 04/08/2015 05:32, Daniel Corbe wrote: >> If nobody answers th

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

2015-04-08 Thread Yuri
On 04/08/2015 05:32, Daniel Corbe wrote: If nobody answers this question by the time I get home I'll try and help; however, in the mean time I do have a couple of suggestions. Have you tried writing the equivalent program in C using the sockets API? IE is this a python specific problem or a soc

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

2015-04-08 Thread Daniel Corbe
If nobody answers this question by the time I get home I'll try and help; however, in the mean time I do have a couple of suggestions. Have you tried writing the equivalent program in C using the sockets API? IE is this a python specific problem or a sockets problem in general? The second thing

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

2015-04-07 Thread Yuri
I noticed that the socket bound to '0.0.0.0' only receives UDP broadcasts when they are sent from zero IP: 0.0.0.0->255.255.255.255. When the source IP is not zeros, but some valid IP on that network, socket never receives such broadcast. I compared two packets in wireshark as they arrive, and