OpenDNSSEC-signer
1.4.7
|
Go to the source code of this file.
Functions | |
uint32_t | adapi_get_serial (zone_type *zone) |
void | adapi_set_serial (zone_type *zone, uint32_t serial) |
ldns_rdf * | adapi_get_origin (zone_type *zone) |
ldns_rr_class | adapi_get_class (zone_type *zone) |
uint32_t | adapi_get_ttl (zone_type *zone) |
void | adapi_trans_full (zone_type *zone, unsigned more_coming) |
void | adapi_trans_diff (zone_type *zone, unsigned more_coming) |
ods_status | adapi_add_rr (zone_type *zone, ldns_rr *rr, int backup) |
ods_status | adapi_del_rr (zone_type *zone, ldns_rr *rr, int backup) |
ods_status | adapi_printzone (FILE *fd, zone_type *zone) |
ods_status | adapi_printaxfr (FILE *fd, zone_type *zone) |
ods_status | adapi_printixfr (FILE *fd, zone_type *zone) |
ods_status adapi_add_rr | ( | zone_type * | zone, |
ldns_rr * | rr, | ||
int | backup | ||
) |
Add RR.
[in] | zone | zone |
[in] | rr | RR |
[in] | backup | from backup |
Add RR.
Definition at line 356 of file adapi.c.
Referenced by backup_read_namedb().
ods_status adapi_del_rr | ( | zone_type * | zone, |
ldns_rr * | rr, | ||
int | backup | ||
) |
ldns_rr_class adapi_get_class | ( | zone_type * | zone | ) |
Get class.
[in] | zone | zone |
Get class.
Definition at line 93 of file adapi.c.
References zone_struct::klass.
ldns_rdf* adapi_get_origin | ( | zone_type * | zone | ) |
Get origin.
[in] | zone | zone |
Get origin.
Definition at line 79 of file adapi.c.
References zone_struct::apex.
Referenced by backup_read_ixfr(), and backup_read_namedb().
uint32_t adapi_get_serial | ( | zone_type * | zone | ) |
Adapter API. Get the inbound serial.
[in] | zone | zone |
Get the inbound serial.
Definition at line 50 of file adapi.c.
References zone_struct::db, and namedb_struct::inbserial.
uint32_t adapi_get_ttl | ( | zone_type * | zone | ) |
Get ttl.
[in] | zone | zone |
Get ttl.
Definition at line 107 of file adapi.c.
References zone_struct::default_ttl.
ods_status adapi_printaxfr | ( | FILE * | fd, |
zone_type * | zone | ||
) |
Print axfr.
[in] | fd | file descriptor |
[in] | zone | zone |
Print axfr.
Definition at line 396 of file adapi.c.
References zone_struct::apex, zone_struct::db, namedb_export(), ods_log_assert, ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_OK, rrset_print(), and zone_lookup_rrset().
Referenced by addns_write().
ods_status adapi_printixfr | ( | FILE * | fd, |
zone_type * | zone | ||
) |
Print ixfr.
[in] | fd | file descriptor |
[in] | zone | zone |
Print ixfr.
Definition at line 420 of file adapi.c.
References zone_struct::apex, zone_struct::db, namedb_struct::is_initialized, zone_struct::ixfr, ixfr_struct::ixfr_lock, ixfr_print(), lock_basic_lock, lock_basic_unlock, ods_log_assert, ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_OK, rrset_print(), and zone_lookup_rrset().
Referenced by addns_write().
ods_status adapi_printzone | ( | FILE * | fd, |
zone_type * | zone | ||
) |
Print zonefile.
[in] | fd | file descriptor |
[in] | zone | zone |
Print zone.
Definition at line 378 of file adapi.c.
References zone_struct::db, namedb_export(), ods_log_error(), ODS_STATUS_ASSERT_ERR, and ODS_STATUS_OK.
Referenced by adfile_write().
void adapi_set_serial | ( | zone_type * | zone, |
uint32_t | serial | ||
) |
Set the inbound serial.
[in] | zone | zone |
[in] | serial | inbound serial |
Set the inbound serial.
Definition at line 64 of file adapi.c.
References zone_struct::db, and namedb_struct::inbserial.
void adapi_trans_diff | ( | zone_type * | zone, |
unsigned | more_coming | ||
) |
Definition at line 159 of file adapi.c.
References zone_struct::db, lock_basic_lock, lock_basic_unlock, namedb_diff(), namedb_nsecify(), stats_struct::nsec_count, stats_struct::nsec_time, stats_struct::start_time, zone_struct::stats, and stats_struct::stats_lock.
Referenced by addns_read().
void adapi_trans_full | ( | zone_type * | zone, |
unsigned | more_coming | ||
) |
Definition at line 121 of file adapi.c.
References zone_struct::db, lock_basic_lock, lock_basic_unlock, namedb_diff(), namedb_nsecify(), stats_struct::nsec_count, stats_struct::nsec_time, stats_struct::start_time, zone_struct::stats, and stats_struct::stats_lock.
Referenced by adfile_read().