[Pdns-dev] Re: [Pdns-users] Questions redux

Norbert Sendetzky norbert at linuxnetworks.de
Mon Sep 8 13:23:10 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 08 September 2003 10:04, Chris Andrews wrote:
> On Sun, Sep 07, 2003 at 03:23:14PM +0200, Norbert Sendetzky wrote:
> > What about big endian vs. little endian in this example?
> > getLong() returns network byte order (at least I think so), but
> > the replaced code misses the ntohl() function. Isn't the output
> > in your example different?
>
> Er, you could be right. I remember there being an endianness issue
> with the first patch I submitted, which I hadn't seen on SPARC. I'm
> afraid I don't have the patch to hand to check.

After a quick look at dnspacket.cc it seems that in getAnswers() the 
SOA case produces a wrong output. Each getLong() must be included in 
a ntohl().

I will post a patch soon.


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj9cWJIACgkQxMLs5v5/7eB9OACgidxHTjukMMzhUBom6XKfPn5c
krUAoIM8+T/L/whPn2vnplOrKmegZNuo
=7TOL
-----END PGP SIGNATURE-----



More information about the Pdns-dev mailing list