[Pdns-dev] Re: [patch] dnspacket endian issue
ahu at ds9a.nl
Mon Sep 8 17:01:49 CEST 2003
On Mon, Sep 08, 2003 at 03:41:52PM +0200, Norbert Sendetzky wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On Monday 08 September 2003 13:56, bert hubert wrote:
> > > Here's a small patch to fix an endian problem in the getAnswers()
> > > function.
> > Can you explain to me how you think that this will not break pdns
> > on little endian platforms?
> ntohl() is a standard macro provided on all systems which is defined
> differently on big endian and little endian architectures. On big
> endian architectures it does nothing while it resorts the bytes on
> little endian architectures.
So there was a problem on Intel but not on sparc? I thought the complaint
was the other way around.
http://www.PowerDNS.com Open source, database driven DNS Software
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
More information about the Pdns-dev