logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ldns_rr_descriptor, ldns_rr_descript, ldns_rr_descriptor_minimum, ldns_rr_descriptor_maximum,

Author

       The ldns team at NLnet Labs.

Description

ldns_rr_descriptor
              Contains all information about resource record types.

              This structure contains, for all rr types, the rdata fields that are defined.
              struct ldns_struct_rr_descriptor
              {
                   TypeoftheRRthatisdescribedhere:
                   ldns_rr_type    _type;
                   TextualnameoftheRRtype.:
                   const char *_name;
                   MinimumnumberofrdatafieldsintheRRsofthistype.:
                   uint8_t     _minimum;
                   MaximumnumberofrdatafieldsintheRRsofthistype.:
                   uint8_t     _maximum;
                   Wireformatspecificationfortherr,i.e.thetypesofrdatafieldsintheirrespectiveorder.:
                   const ldns_rdf_type *_wireformat;
                   Specialrdftypes:
                   ldns_rdf_type _variable;
                   SpecifieswhethercompressioncanbeusedfordnamesinthisRRtype.:
                   ldns_rr_compress _compress;
                   ThenumberofDNAMEsinthe_wireformatstring,forparsing.:
                   uint8_t _dname_count;
              };
              typedef struct ldns_struct_rr_descriptor ldns_rr_descriptor;

       ldns_rr_descript() returns the resource record descriptor for the given rr type.

              type: the type value of the rr type
              Returns the ldns_rr_descriptor for this type

       ldns_rr_descriptor_minimum()  returns  the  minimum number of rdata fields of the rr type this descriptor
              describes.

              descriptor: for an rr type
              Returns the minimum number of rdata fields

       ldns_rr_descriptor_maximum() returns the maximum number of rdata fields of the rr  type  this  descriptor
              describes.

              descriptor: for an rr type
              Returns the maximum number of rdata fields

       ldns_rr_descriptor_field_type()  returns the rdf type for the given rdata field number of the rr type for
              the given descriptor.

              descriptor: for an rr type
              field: the field number
              Returns the rdf type for the field

Name

       ldns_rr_descriptor,     ldns_rr_descript,     ldns_rr_descriptor_minimum,     ldns_rr_descriptor_maximum,
       ldns_rr_descriptor_field_type - rdata field descriptors

Remarks

       This manpage was automatically generated from the ldns source code.

                                                   30 May 2006                                           ldns(3)

Reporting Bugs

       Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues

See Also

ldns_rr, ldns_rdf.  And perldocNet::DNS, RFC1034, RFC1035, RFC4033, RFC4034  and RFC4035.

Synopsis

       #include <stdint.h>
       #include <stdbool.h>

       #include <ldns/ldns.h>

       const ldns_rr_descriptor* ldns_rr_descript(uint16_t type);

       size_t ldns_rr_descriptor_minimum(const ldns_rr_descriptor *descriptor);

       size_t ldns_rr_descriptor_maximum(const ldns_rr_descriptor *descriptor);

       ldns_rdf_type ldns_rr_descriptor_field_type(const ldns_rr_descriptor *descriptor, size_t field);

See Also