Encapsulates DS resource record data. More...
#include <DwmDnsRRDataDS.hh>


Public Member Functions | |
| RRDataDS () | |
| Constructs an empty DS resource record data object. | |
| RRDataDS (uint16_t keyTag, uint8_t algorithm, uint8_t digestType, const std::string &digest) | |
Constructs DS resource record dats with keyTag, algorithm, digestType and digest. More... | |
| bool | operator== (const RRDataDS &ds) const |
| Equal-to operator, mostly for unit testing. | |
| uint16_t | KeyTag () const |
| Returns the key tag in the DS resource record data. | |
| uint16_t | KeyTag (uint16_t keyTag) |
| Sets and returns the key tag in the DS resource record data. | |
| uint8_t | Algorithm () const |
| Returns the algorithm in the DS resource record data. | |
| uint8_t | Algorithm (uint8_t algorithm) |
| Sets and returns the algorithm in the DS resource record data. | |
| uint8_t | DigestType () const |
| Returns the digest type in the DS resource record data. | |
| uint8_t | DigestType (uint16_t digestType) |
| Sets and returns the digest type in the DS resource record data. | |
| const std::string & | Digest () const |
| Returns the digest in the DS resource record data. | |
| const std::string & | Digest (const std::string &digest) |
| Sets and returns the digest in the DS resource record data. | |
| uint8_t * | Encode (uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const |
Encodes the DS resource record data into buffer @ pkt of length pktlen, starting at ptr. More... | |
| const uint8_t * | Decode (const uint8_t *pkt, const uint8_t *ptr, uint16_t pktlen, uint16_t rdlen) |
Decodes the DS resource record data from buffer pkt of length pktlen, starting at ptr. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RRDataDS &ds) |
| Print the DS resource record data to an ostream in human readable form. More... | |
Encapsulates DS resource record data.
See RFC 4034 for details.
| Dwm::Dns::RRDataDS::RRDataDS | ( | uint16_t | keyTag, |
| uint8_t | algorithm, | ||
| uint8_t | digestType, | ||
| const std::string & | digest | ||
| ) |
Constructs DS resource record dats with keyTag, algorithm, digestType and digest.
|
virtual |
Decodes the DS resource record data from buffer pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded DS resource record data in pkt on success. Throws std::out_of_range if pkt was too short to contain an encoded DS resource record data.
Implements Dwm::Dns::RRData.
|
virtual |
Encodes the DS resource record data into buffer @ pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded DS resource record data in pkt on success. Throws std::out_of_range if pkt is too short to contain the encoded DS resource record data.
Implements Dwm::Dns::RRData.
|
friend |
Print the DS resource record data to an ostream in human readable form.