conv.xfrHexBlob(d_digest, true); // keep reading across spaces
)
+DLVRecordContent::DLVRecordContent() : DNSRecordContent(32769) {}
+boilerplate_conv(DLV,32769 ,
+ conv.xfr16BitInt(d_tag);
+ conv.xfr8BitInt(d_algorithm);
+ conv.xfr8BitInt(d_digesttype);
+ conv.xfrHexBlob(d_digest, true); // keep reading across spaces
+ )
+
+
boilerplate_conv(SSHFP, 44,
conv.xfr8BitInt(d_algorithm);
conv.xfr8BitInt(d_fptype);
{
public:
QType(); //!< Naked constructor
- explicit QType(int); //!< convert from an integer to a QType
+ explicit QType(uint16_t); //!< convert from an integer to a QType
QType(const char *p); //!< convert from a char* to a QType
QType(const QType& orig) : code(orig.code)
{
}
- QType &operator=(int); //!< Assigns integers to us
+ QType &operator=(uint16_t); //!< Assigns integers to us
QType &operator=(const char *); //!< Assings strings to us
QType &operator=(const string &); //!< Assings strings to us
QType &operator=(const QType&rhs) //!< Assings strings to us
bool operator==(const QType &) const; //!< equality operator
const string getName() const; //!< Get a string representation of this type
- int getCode() const; //!< Get the integer representation of this type
+ uint16_t getCode() const; //!< Get the integer representation of this type
static int chartocode(const char *p); //!< convert a character string to a code
// more solaris fun
#undef DS
enum typeenum {A=1,NS=2,CNAME=5,SOA=6, MR=9, PTR=12,HINFO=13,MX=15,TXT=16,RP=17,AFSDB=18,KEY=25,AAAA=28,LOC=29,SRV=33,NAPTR=35, KX=36,
CERT=37,OPT=41, DS=43, SSHDP=44, IPSECKEY=45, RRSIG=46, NSEC=47, DNSKEY=48, DHCID=49, NSEC3=50, NSEC3PARAM=51,
- SPF=99, TSIG=250, AXFR=252, IXFR=251, ANY=255, URL=256, MBOXFW=257, CURL=258, ADDR=259} types;
- typedef pair<string,int> namenum;
+ SPF=99, TSIG=250, AXFR=252, IXFR=251, ANY=255, URL=256, MBOXFW=257, CURL=258, ADDR=259, DLV=32769} types;
+ typedef pair<string,uint16_t> namenum;
static vector<namenum> names;
private:
- short int code;
+ uint16_t code;
void insert(const char *p, int n);