ldns_rr_compare(3)

ldns_rr_compare3

Compare a ldns_rr

Usage

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

int ldns_rr_compare(const ldns_rr *rr1, const ldns_rr *rr2);

bool ldns_rr_compare_ds(const ldns_rr *rr1, const ldns_rr *rr2);

Overview

ldns_rr_compare() compares two rrs. The TTL is not looked at. .br rr1: the first one .br rr2: the second one .br Returns 0 if equal -1 if rr1 comes before rr2 +1 if rr2 comes before rr1

ldns_rr_compare_ds() returns true of the given rr's are equal. Also returns true if one record is a DS that represents the same DNSKEY record as the other record .br rr1: the first rr .br rr2: the second rr .br Returns true if equal otherwise false

Remarks

This manpage was automatically generated from the ldns source code.

Releases

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

  1. 5.0
  2. 6.0–7
  3. 8
  4. 9–10
  5. 11–12
  6. 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.