1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

6       ldns_dname_compare, ldns_dname_interval
7
8

SYNOPSIS

10       #include <stdint.h>
11       #include <stdbool.h>
12
13       #include <ldns/ldns.h>
14
15       int ldns_dname_compare(const ldns_rdf *dname1, const ldns_rdf *dname2);
16
17       int  ldns_dname_interval(const  ldns_rdf *prev, const ldns_rdf *middle,
18       const ldns_rdf *next);
19

DESCRIPTION

21       ldns_dname_compare() Compares the two  dname  rdf's  according  to  the
22              algorithm for ordering in RFC4034 Section 6.
23              dname1: First dname rdf to compare
24              dname2: Second dname rdf to compare
25              Returns  -1  if  dname1  comes  before dname2, 1 if dname1 comes
26              after dname2, and 0 if they are equal.
27
28       ldns_dname_interval() check if middle lays in the interval  defined  by
29              prev  and  next  prev <= middle < next. This is usefull for nsec
30              checking
31              prev: the previous dname
32              middle: the dname to check
33              next: the next dname return 0 on error or unknown, -1 when  mid‐
34              dle is in the interval, +1 when not
35

AUTHOR

37       The  ldns  team  at  NLnet Labs. Which consists out of Jelte Jansen and
38       Miek Gieben.
39
40

REPORTING BUGS

42       Please report bugs to ldns-team@nlnetlabs.nl  or  in  our  bugzilla  at
43       http://www.nlnetlabs.nl/bugs/index.html
44
45
47       Copyright (c) 2004 - 2006 NLnet Labs.
48
49       Licensed under the BSD License. There is NO warranty; not even for MER‐
50       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
51
52

SEE ALSO

54       ldns_dname_is_subdomain.   And  perldoc  Net::DNS,  RFC1034,   RFC1035,
55       RFC4033, RFC4034  and RFC4035.
56

REMARKS

58       This manpage was automaticly generated from the ldns source code by use
59       of Doxygen and some perl.
60
61
62
63                                  30 May 2006                          ldns(3)
Impressum