42 #ifndef _DWMDNSRRDATAAAAA_HH_ 43 #define _DWMDNSRRDATAAAAA_HH_ 46 #include <netinet/in.h> 66 static const uint16_t k_rrtype = 28;
87 const in6_addr &
In6Addr()
const;
92 const in6_addr &
In6Addr(
const in6_addr & in6Addr);
101 uint8_t *
Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen,
111 const uint8_t *
Decode(
const uint8_t *pkt,
const uint8_t *ptr,
112 uint16_t pktlen, uint16_t rdlen);
118 friend std::ostream &
operator << (std::ostream & os,
129 #endif // _DWMDNSRRDATAAAAA_HH_ const uint8_t * Decode(const uint8_t *pkt, const uint8_t *ptr, uint16_t pktlen, uint16_t rdlen)
Decodes the AAAA record data from buffer pkt of length pktlen, starting at ptr.
const in6_addr & In6Addr() const
Returns the IPv6 address in the AAAA resource record data.
friend std::ostream & operator<<(std::ostream &os, const RRDataAAAA &aaaa)
Prints the AAAA resource record data to an ostream in human readable form.
Definition: DwmDnsEtcHosts.hh:60
Dwm::Dns::RRData class definition.
bool operator==(const RRDataAAAA &aaaa) const
Equal-to operator, mostly for unit testing.
A helper class used when performing label sequence compression.
Definition: DwmDnsLabelPositions.hh:57
Encapsulates AAAA resource record data.
Definition: DwmDnsRRDataAAAA.hh:62
uint8_t * Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const
Encodes the AAAA resource record data into buffer @ pkt of length pktlen, starting at ptr...
Abstract (pure virtual) base for resource record data classes.
Definition: DwmDnsRRData.hh:71