ldns_dname_compare(3)

ldns_dname_compare3

Compare two dnames

Usage

#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);

Overview

ldns_dname_compare() Compares the two dname rdf's according to the algorithm for ordering in RFC4034 Section 6. .br dname1: First dname rdf to compare .br dname2: Second dname rdf to compare .br Returns -1 if dname1 comes before dname2, 1 if dname1 comes after 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 .br prev: the previous dname .br middle: the dname to check .br next: the next dname return 0 on error or unknown, -1 when middle is in the interval, +1 when not

Remarks

This manpage was automatically generated from the ldns source code.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0–8
  3. 9–10
  4. 11–12
  5. 13–Arch

Author

The ldns team at NLnet Labs.

Reporting bugs

Please report bugs to [email protected] or on GitHub at https://github.com/NLnetLabs/ldns/issues

From ldns 1.9.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.