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

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 15 Feb 2011 20:01:20 +0100

Philippe Houdoin <philippe.houdoin@xxxxxxxxx> wrote:
> >> > +                               fServer.SetAddress(
> >> > +
> >> > (in_addr_t)B_BENDIAN_TO_HOST_INT32(*(uint32*)data));
> Well, in fact I've reconsidering my first reaction: in_addr_t type is
> required per POSIX to be in network byte order.

Where did you get this idea from?
I couldn't find anything in the POSIX specs saying so, and I would
assume it's wrong, or all platforms I know define things like
INADDR_LOOPBACK, and IN_CLASS*() macros incorrectly. Which I honestly
doubt :-)

Unless you find some arguments that convince me, please revert your
DHCP changes again.

Bye,
   Axel.


Other related posts: