8 #define RDATAFIELDS_H 1
19 class AbstractMessageRenderer;
208 type(type_param),
len(len_param)
295 RdataFields(
const void* fields,
const unsigned int fields_length,
296 const void* data,
const size_t data_length);
306 unsigned int getDataLength()
const {
return (data_length_); }
317 const void*
getData()
const {
return (data_); }
324 sizeof (*fields_)); }
371 FieldSpec
getFieldSpec(
const unsigned int field_id)
const;
402 const FieldSpec* fields_;
403 unsigned int nfields_;
404 const uint8_t* data_;
409 struct RdataFieldsDetail;
410 RdataFieldsDetail* detail_;
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
A low-level, RR type-independent representation of DNS RDATA.
~RdataFields()
The destructor.
FieldSpec getFieldSpec(const unsigned int field_id) const
Return the specification of the field identified by the given index.
const void * getFieldSpecData() const
Return a pointer to a sequence of FieldSpec for the RdataFields.
unsigned int getFieldSpecDataSize() const
Return the number of bytes the buffer returned by getFieldSpecData() will occupy.
unsigned int getFieldCount() const
Return the number of specs fields.
const void * getData() const
Return a pointer to the RDATA encoded in the RdataFields.
Type
Types of RdataFields fields.
@ INCOMPRESSIBLE_NAME
A domain name that shouldn't be compressed.
@ COMPRESSIBLE_NAME
A domain name subject to name compression.
unsigned int getDataLength() const
Return the length of the entire RDATA encoded in the RdataFields in bytes.
void toWire(AbstractMessageRenderer &renderer) const
Render the RdataFields in the wire format with name compression.
The Rdata class is an abstract base class that provides a set of common interfaces to manipulate conc...
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
Defines the logger used by the top-level component of kea-lfc.
Structure that specifies a single RdataFields field.
Type type
The type of the field.
FieldSpec(Type type_param, uint16_t len_param)
uint16_t len
The length of the field in bytes.