void xfrIP(uint32_t& val)
{
xfr32BitInt(val);
+ val=htonl(val);
}
void xfrTime(uint32_t& val)
virtual std::string getZoneRepresentation() const = 0;
virtual ~DNSRecordContent() {}
virtual void toPacket(DNSPacketWriter& pw)=0;
- virtual string serialize(const string& qname)
+ virtual string serialize(const string& qname) // it would rock if this were const, but it is too hard
{
vector<uint8_t> packet;
string empty;
d_string.append(1,' ');
char tmp[17];
- uint32_t ip=htonl(val);
+ uint32_t ip=val;
uint8_t vals[4];
memcpy(&vals[0], &ip, sizeof(ip));