FreeBSD Manual Pages
ldns(3) Library Functions Manual ldns(3) NAME ldns_dname_compare, ldns_dname_interval - compare two dnames SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> int ldns_dname_compare(const ldns_rdf *dname1, const ldns_rdf *dname2); int ldns_dname_interval(const ldns_rdf *prev, const ldns_rdf *middle, const ldns_rdf *next); DESCRIPTION ldns_dname_compare() Compares the two dname rdf's according to the al- gorithm for ordering in RFC4034 Section 6. dname1: First dname rdf to compare dname2: Second dname rdf to compare Returns -1 if dname1 comes before dname2, 1 if dname1 comes af- ter dname2, and 0 if they are equal. ldns_dname_interval() check if middle lays in the interval defined by prev and next prev <= middle < next. This is useful for nsec checking prev: the previous dname middle: the dname to check next: the next dname return 0 on error or unknown, -1 when mid- dle is in the interval, +1 when not AUTHOR The ldns team at NLnet Labs. REPORTING BUGS Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues COPYRIGHT Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO ldns_dname_is_subdomain. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS This manpage was automatically generated from the ldns source code. 30 May 2006 ldns(3)
NAME | SYNOPSIS | DESCRIPTION | AUTHOR | REPORTING BUGS | COPYRIGHT | SEE ALSO | REMARKS
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=ldns_dname_interval&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>
