Logo Search packages:      
Sourcecode: ldns version File versions  Download package

size_t ldns_rr_descriptor_maximum ( const ldns_rr_descriptor descriptor  ) 

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

Parameters:
[in] descriptor for an rr type
Returns:
the maximum number of rdata fields

Definition at line 2012 of file rr.c.

References ldns_struct_rr_descriptor::_maximum, ldns_struct_rr_descriptor::_variable, LDNS_RDF_TYPE_NONE, and ldns_rr_descriptor_maximum().

Referenced by ldns_rr_descriptor_maximum(), ldns_rr_new_frm_str(), and ldns_wire2rdf().

{
      if (descriptor->_variable != LDNS_RDF_TYPE_NONE) {
            /* Should really be SIZE_MAX... bad FreeBSD.  */
            return UINT_MAX;
      } else {
            return descriptor->_maximum;
      }
}


Generated by  Doxygen 1.6.0   Back to index