 |
Kea
1.5.0
|
Go to the documentation of this file.
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_;
415 #endif // RDATAFIELDS_H
void toWire(AbstractMessageRenderer &renderer) const
Render the RdataFields in the wire format with name compression.
unsigned int getFieldSpecDataSize() const
Return the number of bytes the buffer returned by getFieldSpecData() will occupy.
FieldSpec getFieldSpec(const unsigned int field_id) const
Return the specification of the field identified by the given index.
~RdataFields()
The destructor.
Structure that specifies a single RdataFields field.
const void * getFieldSpecData() const
Return a pointer to a sequence of FieldSpec for the RdataFields.
The Rdata class is an abstract base class that provides a set of common interfaces to manipulate conc...
unsigned int getFieldCount() const
Return the number of specs fields.
const void * getData() const
Return a pointer to the RDATA encoded in the RdataFields.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
Defines the logger used by the top-level component of kea-dhcp-ddns.
unsigned int getDataLength() const
Return the length of the entire RDATA encoded in the RdataFields in bytes.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
Type type
The type of the field.
Type
Types of RdataFields fields.
FieldSpec(Type type_param, uint16_t len_param)
uint16_t len
The length of the field in bytes.
@ INCOMPRESSIBLE_NAME
A domain name that shouldn't be compressed.
A low-level, RR type-independent representation of DNS RDATA.
@ COMPRESSIBLE_NAME
A domain name subject to name compression.