OpenDNSSEC-signer  1.4.10
Functions
domain.c File Reference
#include "config.h"
#include "shared/log.h"
#include "signer/backup.h"
#include "signer/denial.h"
#include "signer/domain.h"
#include "signer/ixfr.h"
#include "signer/zone.h"
Include dependency graph for domain.c:

Go to the source code of this file.

Functions

void log_dname (ldns_rdf *rdf, const char *pre, int level)
 
domain_typedomain_create (void *zoneptr, ldns_rdf *dname)
 
size_t domain_count_rrset (domain_type *domain)
 
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)
 
rrset_typedomain_del_rrset (domain_type *domain, ldns_rr_type rrtype)
 
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

void domain_add_rrset ( domain_type domain,
rrset_type rrset 
)
void domain_backup2 ( FILE *  fd,
domain_type domain,
int  sigs 
)
void domain_cleanup ( domain_type domain)
size_t domain_count_rrset ( domain_type domain)

Count the number of RRsets at this domain.

Definition at line 126 of file domain.c.

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

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 147 of file domain.c.

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

Referenced by namedb_examine().

domain_type* domain_create ( void *  zoneptr,
ldns_rdf *  dname 
)
rrset_type* domain_del_rrset ( domain_type domain,
ldns_rr_type  rrtype 
)
void domain_diff ( domain_type domain,
unsigned  is_ixfr,
unsigned  more_coming 
)
int domain_ent2unsignedns ( domain_type domain)

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

Definition at line 405 of file domain.c.

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

ldns_rr_type domain_is_delegpt ( domain_type domain)

Check whether the domain is a delegation point.

Definition at line 439 of file domain.c.

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

Referenced by denial_create(), domain_ent2unsignedns(), namedb_lookup_denial(), and rrset_sign().

ldns_rr_type domain_is_occluded ( domain_type domain)

Check whether the domain is occluded.

Definition at line 464 of file domain.c.

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

Referenced by denial_create(), domain_ent2unsignedns(), namedb_lookup_denial(), and rrset_sign().

rrset_type* domain_lookup_rrset ( domain_type domain,
ldns_rr_type  rrtype 
)
void domain_print ( FILE *  fd,
domain_type domain,
ods_status status 
)
void domain_rollback ( domain_type domain,
int  keepsc 
)
void log_dname ( ldns_rdf *  rdf,
const char *  pre,
int  level 
)