[haiku-commits] Re: r39595 - haiku/trunk/src/servers/net

  • From: Philippe Houdoin <philippe.houdoin@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 24 Nov 2010 14:48:24 +0100

> I noticed yesterday, I just didn't find the time to fix it, and I still have 
> no idea what is happening.
> I suspect a problem with the broadcast send. I will fix this either today or 
> tomorrow.

Indeed: sendto() returns an invalid argument error, due to the fact
that the broadcast address object's Length() method returns 0.

I fix that issue r39605. But the DHCP server at work being quite
unfriendly, I can't say if it fix the DHCP too.

I notice that the local address is not anymore set to INADDR_ANY but
Maybe it doesn't help too.

I'm not sure what to do about this second point, but for me
BNetworkAddress::SetToWildcard() should not rely on the address
resolver to do it, instead it should do explicitly, as for broadcast.
At least for AF_INET family.


Other related posts: