OpenDNSSEC-signer  1.3.9
Functions
domain.c File Reference
#include "config.h"
#include "shared/duration.h"
#include "shared/allocator.h"
#include "shared/log.h"
#include "shared/status.h"
#include "shared/util.h"
#include "signer/backup.h"
#include "signer/domain.h"
#include "signer/rrset.h"
#include <ldns/ldns.h>
Include dependency graph for domain.c:

Go to the source code of this file.

Functions

domain_typedomain_create (ldns_rdf *dname)
 
ods_status domain_recover (domain_type *domain, FILE *fd, domain_status dstatus)
 
rrset_typedomain_lookup_rrset (domain_type *domain, ldns_rr_type rrtype)
 
rrset_typedomain_add_rrset (domain_type *domain, rrset_type *rrset)
 
rrset_typedomain_del_rrset (domain_type *domain, rrset_type *rrset)
 
size_t domain_count_rrset (domain_type *domain)
 
ods_status domain_diff (domain_type *domain, keylist_type *kl)
 
int domain_examine_data_exists (domain_type *domain, ldns_rr_type rrtype, int skip_glue)
 
int domain_examine_rrset_is_alone (domain_type *domain, ldns_rr_type rrtype)
 
int domain_examine_valid_zonecut (domain_type *domain)
 
int domain_examine_rrset_is_singleton (domain_type *domain, ldns_rr_type rrtype)
 
ods_status domain_commit (domain_type *domain)
 
void domain_rollback (domain_type *domain)
 
void domain_dstatus (domain_type *domain)
 
ods_status domain_queue (domain_type *domain, fifoq_type *q, worker_type *worker)
 
int domain_examine_ns_rdata (domain_type *domain, ldns_rdf *nsdname)
 
void domain_cleanup (domain_type *domain)
 
void domain_print (FILE *fd, domain_type *domain)
 
void domain_backup (FILE *fd, domain_type *domain)
 

Function Documentation

rrset_type* domain_add_rrset ( domain_type domain,
rrset_type rrset 
)

Add RRset to domain.

Definition at line 332 of file domain.c.

References ods_log_assert, ods_log_error(), and domain_struct::rrsets.

Referenced by zone_add_rr().

void domain_backup ( FILE *  fd,
domain_type domain 
)
void domain_cleanup ( domain_type domain)
ods_status domain_commit ( domain_type domain)
size_t domain_count_rrset ( domain_type domain)

Count the number of RRsets at this domain.

Definition at line 401 of file domain.c.

References COUNT_RR, rrset_count_rr(), and domain_struct::rrsets.

Referenced by domain_dstatus(), domain_examine_rrset_is_alone(), zonedata_commit(), and zonedata_nsecify().

domain_type* domain_create ( ldns_rdf *  dname)
rrset_type* domain_del_rrset ( domain_type domain,
rrset_type rrset 
)

Delete RRset from domain.

Definition at line 364 of file domain.c.

References ods_log_assert, ods_log_error(), rrset_struct::rr_type, rrset_cleanup(), and domain_struct::rrsets.

Referenced by domain_commit().

ods_status domain_diff ( domain_type domain,
keylist_type kl 
)

Calculate differences at this domain between current and new RRsets.

Definition at line 430 of file domain.c.

References ODS_STATUS_OK, rrset_struct::rr_type, rrset_diff(), and domain_struct::rrsets.

Referenced by zonedata_diff().

void domain_dstatus ( domain_type domain)
int domain_examine_data_exists ( domain_type domain,
ldns_rr_type  rrtype,
int  skip_glue 
)

Examine domain and verify if data exists.

Definition at line 465 of file domain.c.

References ods_log_assert, rrset_struct::rr_type, rrset_count_RR(), and domain_struct::rrsets.

int domain_examine_ns_rdata ( domain_type domain,
ldns_rdf *  nsdname 
)

Examine domain NS RRset and verify its RDATA.

Definition at line 845 of file domain.c.

References domain_lookup_rrset(), and rrset_examine_ns_rdata().

int domain_examine_rrset_is_alone ( domain_type domain,
ldns_rr_type  rrtype 
)

Examine domain and verify if there is no other data next to a RRset.

Definition at line 505 of file domain.c.

References rrset_struct::add, domain_struct::dname, domain_count_rrset(), domain_lookup_rrset(), log_rr(), ods_log_assert, ods_log_error(), rrset_struct::rr_type, rrset_struct::rrs, rrset_count_RR(), and domain_struct::rrsets.

Referenced by zonedata_examine().

int domain_examine_rrset_is_singleton ( domain_type domain,
ldns_rr_type  rrtype 
)

Examine domain and verify if the RRset is a singleton.

Definition at line 626 of file domain.c.

References domain_struct::dname, domain_lookup_rrset(), ods_log_assert, ods_log_error(), and rrset_count_RR().

Referenced by zonedata_examine().

int domain_examine_valid_zonecut ( domain_type domain)

Examine domain and verify if there is no occluded data next to a delegation.

Definition at line 570 of file domain.c.

References domain_lookup_rrset(), ods_log_assert, ods_log_error(), rrset_struct::rr_type, rrset_count_RR(), and domain_struct::rrsets.

rrset_type* domain_lookup_rrset ( domain_type domain,
ldns_rr_type  rrtype 
)
void domain_print ( FILE *  fd,
domain_type domain 
)
ods_status domain_queue ( domain_type domain,
fifoq_type q,
worker_type worker 
)
ods_status domain_recover ( domain_type domain,
FILE *  fd,
domain_status  dstatus 
)
void domain_rollback ( domain_type domain)

Rollback updates from domain.

Definition at line 720 of file domain.c.

References rrset_rollback(), and domain_struct::rrsets.

Referenced by zonedata_rollback().