[Pdns-users] Feedback on the recursor 3.0 requested + 3.0.1

bert hubert bert.hubert at netherlabs.nl
Wed Apr 26 09:01:43 UTC 2006


Users of UltraSPARC and other big-endian platforms need to make this tiny
patch to dnswriter.cc. Currently, MX records are all listed with 0 priority
otherwise, with the same holding for SRV records.

Thanks to Kenneth for noticing.

This fix is not needed for intel/amd users.

Index: trunk/pdns/pdns/dnswriter.cc
===================================================================
--- trunk/pdns/pdns/dnswriter.cc (revision 699)
+++ trunk/pdns/pdns/dnswriter.cc (revision 773)
@@ -102,5 +102,5 @@
 void DNSPacketWriter::xfr16BitInt(uint16_t val)
 {
-  int rval=htons(val);
+  uint16_t rval=htons(val);
   uint8_t* ptr=reinterpret_cast<uint8_t*>(&rval);
   d_record.insert(d_record.end(), ptr, ptr+2);



-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services


More information about the Pdns-users mailing list