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

NAME

6       ldns_dname_compare, ldns_dname_interval - compare two dnames
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 al‐
22              gorithm 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 af‐
26              ter 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 useful 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.
38
39

REPORTING BUGS

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

SEE ALSO

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

REMARKS

57       This manpage was automatically generated from the ldns source code.
58
59
60
61                                  30 May 2006                          ldns(3)
Impressum