OpenDNSSEC-signer  2.1.3
Functions
domain.c File Reference
#include "config.h"
#include "log.h"
#include "signer/backup.h"
#include "signer/denial.h"
#include "signer/domain.h"
#include "signer/ixfr.h"
#include "signer/zone.h"

Go to the source code of this file.

Functions

void log_dname (ldns_rdf *rdf, const char *pre, int level)
 
domain_typedomain_create (zone_type *zone, ldns_rdf *dname)
 
size_t domain_count_rrset_is_added (domain_type *domain)
 
rrset_typedomain_lookup_rrset (domain_type *domain, ldns_rr_type rrtype)
 
void domain_add_rrset (domain_type *domain, rrset_type *rrset)
 
void domain_diff (domain_type *domain, unsigned is_ixfr, unsigned more_coming)
 
void domain_rollback (domain_type *domain, int keepsc)
 
int domain_ent2unsignedns (domain_type *domain)
 
ldns_rr_type domain_is_delegpt (domain_type *domain)
 
ldns_rr_type domain_is_occluded (domain_type *domain)
 
void domain_print (FILE *fd, domain_type *domain, ods_status *status)
 
void domain_cleanup (domain_type *domain)
 
void domain_backup2 (FILE *fd, domain_type *domain, int sigs)
 

Function Documentation

◆ domain_add_rrset()

void domain_add_rrset ( domain_type domain,
rrset_type rrset 
)

◆ domain_backup2()

void domain_backup2 ( FILE *  fd,
domain_type domain,
int  sigs 
)

◆ domain_cleanup()

void domain_cleanup ( domain_type domain)

Clean up domain.

Definition at line 465 of file domain.c.

References domain_struct::dname, rrset_cleanup(), and domain_struct::rrsets.

◆ domain_count_rrset_is_added()

size_t domain_count_rrset_is_added ( domain_type domain)

Count the number of RRsets at this domain with RRs that have is_added.

Definition at line 118 of file domain.c.

References rrset_struct::next, rrset_count_rr_is_added(), and domain_struct::rrsets.

Referenced by namedb_examine().

◆ domain_create()

domain_type* domain_create ( zone_type zone,
ldns_rdf *  dname 
)

Create domain.

Definition at line 88 of file domain.c.

References domain_struct::dname.

Referenced by namedb_add_domain().

◆ domain_diff()

void domain_diff ( domain_type domain,
unsigned  is_ixfr,
unsigned  more_coming 
)

◆ domain_ent2unsignedns()

int domain_ent2unsignedns ( domain_type domain)

Check whether a domain is an empty non-terminal to unsigned delegation.

Definition at line 310 of file domain.c.

References domain_struct::dname, domain_is_delegpt(), domain_is_occluded(), domain_struct::node, and domain_struct::rrsets.

◆ domain_is_delegpt()

ldns_rr_type domain_is_delegpt ( domain_type domain)

Check whether the domain is a delegation point.

Definition at line 344 of file domain.c.

References domain_lookup_rrset(), and domain_struct::is_apex.

Referenced by domain_ent2unsignedns(), and rrset_sign().

◆ domain_is_occluded()

ldns_rr_type domain_is_occluded ( domain_type domain)

Check whether the domain is occluded.

Definition at line 369 of file domain.c.

References domain_lookup_rrset(), domain_struct::is_apex, and domain_struct::parent.

Referenced by domain_ent2unsignedns(), and rrset_sign().

◆ domain_lookup_rrset()

rrset_type* domain_lookup_rrset ( domain_type domain,
ldns_rr_type  rrtype 
)

Look up RRset at this domain.

Definition at line 141 of file domain.c.

References rrset_struct::next, domain_struct::rrsets, and rrset_struct::rrtype.

Referenced by domain_backup2(), domain_is_delegpt(), domain_is_occluded(), namedb_examine(), and zone_lookup_rrset().

◆ domain_print()

void domain_print ( FILE *  fd,
domain_type domain,
ods_status *  status 
)

Print domain.

Definition at line 398 of file domain.c.

Referenced by namedb_export().

◆ domain_rollback()

void domain_rollback ( domain_type domain,
int  keepsc 
)

◆ log_dname()

void log_dname ( ldns_rdf *  rdf,
const char *  pre,
int  level 
)

Log domain name.

Definition at line 48 of file domain.c.

Referenced by namedb_del_denial(), and namedb_del_domain().