NAME ldnsdnamecompare, ldnsdnameinterval SYNOPSIS
#include
#include
#include
int ldnsdnamecompare(const ldnsrdf *dname1, const ldnsrdf *dname2); int ldnsdnameinterval(const ldnsrdf *prev, const ldnsrdf *middle, const ldnsrdf *next); DESCRIPTION ldnsdnamecompare() Compares the two dname rdf's according to the algorithm 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 after dname2, and 0 if they are equal. ldnsdnameinterval() check if middle lays in the interval defined by prev and next prev <= middle < next. This is usefull 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. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html 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 ldnsdnameissubdomain. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)