Changeset 1369

Show
Ignore:
Timestamp:
07/01/09 22:17:37 (14 months ago)
Author:
ahu
Message:

we had some htonls in a twist for xfrIP.. hopefully this is the right fix

Location:
trunk/pdns/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnsparser.hh

    r1359 r1369  
    8282  { 
    8383    xfr32BitInt(val); 
     84    val=htonl(val); 
    8485  } 
    8586 
     
    150151  virtual ~DNSRecordContent() {} 
    151152  virtual void toPacket(DNSPacketWriter& pw)=0; 
    152   virtual string serialize(const string& qname) 
     153  virtual string serialize(const string& qname) // it would rock if this were const, but it is too hard 
    153154  { 
    154155    vector<uint8_t> packet; 
  • trunk/pdns/pdns/rcpgenerator.cc

    r1363 r1369  
    331331 
    332332  char tmp[17]; 
    333   uint32_t ip=htonl(val); 
     333  uint32_t ip=val; 
    334334  uint8_t vals[4]; 
    335335