Changeset 1259

Show
Ignore:
Timestamp:
08/24/08 17:37:11 (19 months ago)
Author:
ahu
Message:

make it possible to generate ARecords from 32 bit integers directly

Location:
trunk/pdns/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnsrecords.cc

    r1232 r1259  
    2121 
    2222boilerplate_conv(A, ns_t_a, conv.xfrIP(d_ip)); 
     23 
     24ARecordContent::ARecordContent(uint32_t ip) : DNSRecordContent(ns_t_a) 
     25{ 
     26  d_ip = ip; 
     27} 
    2328 
    2429uint32_t ARecordContent::getIP() const 
  • trunk/pdns/pdns/dnsrecords.hh

    r1232 r1259  
    5555{ 
    5656public: 
     57  explicit ARecordContent(uint32_t ip); 
    5758  includeboilerplate(A); 
    5859  void doRecordCheck(const DNSRecord& dr);