OpenDNSSEC-signer
1.4.10
|
#include "config.h"
#include "shared/allocator.h"
#include "wire/acl.h"
#include "wire/buffer.h"
#include "wire/netio.h"
#include "wire/tsig.h"
#include <ldns/ldns.h>
Go to the source code of this file.
Data Structures | |
struct | notify_struct |
Macros | |
#define | NOTIFY_MAX_UDP 50 |
#define | NOTIFY_MAX_RETRY 5 |
#define | NOTIFY_RETRY_TIMEOUT 15 |
Typedefs | |
typedef struct notify_struct | notify_type |
Functions | |
notify_type * | notify_create (void *xfrhandler, void *zone) |
void | notify_enable (notify_type *notify, ldns_rr *soa) |
void | notify_send (notify_type *notify) |
void | notify_cleanup (notify_type *notify) |
#define NOTIFY_MAX_RETRY 5 |
Definition at line 45 of file notify.h.
Referenced by notify_send().
#define NOTIFY_MAX_UDP 50 |
Notify sending.
Definition at line 44 of file notify.h.
Referenced by notify_create(), and notify_enable().
#define NOTIFY_RETRY_TIMEOUT 15 |
Definition at line 46 of file notify.h.
Referenced by notify_send().
typedef struct notify_struct notify_type |
void notify_cleanup | ( | notify_type * | notify | ) |
Cleanup notify structure.
[in] | notify | notify structure. |
Cleanup notify structure.
Definition at line 590 of file notify.c.
References notify_struct::allocator, allocator_cleanup(), allocator_deallocate(), netio_handler_struct::fd, notify_struct::handler, notify_struct::soa, notify_struct::tsig_rr, and tsig_rr_cleanup().
Referenced by engine_wakeup_workers(), notify_create(), and zone_cleanup().
notify_type* notify_create | ( | void * | xfrhandler, |
void * | zone | ||
) |
Create notify structure.
[in] | xfrhandler | zone transfer handler |
[in] | zone | zone reference |
Create notify structure.
Definition at line 101 of file notify.c.
References ADAPTER_DNS, acl_struct::address, zone_struct::adoutbound, tsig_rr_struct::algo, tsig_rr_struct::algo_name, tsig_struct::algorithm, notify_struct::allocator, allocator_alloc(), allocator_cleanup(), allocator_create(), buffer_begin(), buffer_clear(), buffer_current(), buffer_pkt_arcount(), buffer_pkt_id(), buffer_pkt_opcode(), buffer_pkt_qr(), buffer_pkt_rcode(), buffer_pkt_set_arcount(), buffer_position(), buffer_rcode2str(), buffer_remaining(), buffer_set_limit(), adapter_struct::config, tsig_key_struct::dname, dnsout_struct::do_notify, netio_handler_struct::event_handler, netio_handler_struct::event_types, acl_struct::family, netio_handler_struct::fd, notify_struct::handler, notify_struct::is_waiting, tsig_struct::key, tsig_rr_struct::key, tsig_rr_struct::key_name, buffer_struct::limit, LOG_DEBUG, log_dname(), zone_struct::name, NETIO_EVENT_READ, NETIO_EVENT_TIMEOUT, acl_struct::next, notify_cleanup(), NOTIFY_MAX_UDP, xfrhandler_struct::notify_udp_num, xfrhandler_struct::notify_waiting_first, xfrhandler_struct::notify_waiting_last, ods_log_assert, ods_log_debug(), ods_log_deeebug(), ods_log_error(), tsig_rr_struct::original_query_id, xfrhandler_struct::packet, PF_INET, PF_INET6, notify_struct::query_id, notify_struct::retry, notify_struct::secondary, notify_struct::soa, notify_struct::timeout, netio_handler_struct::timeout, acl_struct::tsig, tsig_lookup_algo(), notify_struct::tsig_rr, tsig_rr_append(), tsig_rr_create(), tsig_rr_prepare(), tsig_rr_reset(), tsig_rr_sign(), tsig_rr_update(), adapter_struct::type, netio_handler_struct::user_data, notify_struct::waiting_next, tsig_algo_struct::wf_name, xfrd_acl_sockaddr_to(), notify_struct::xfrhandler, and notify_struct::zone.
Referenced by engine_wakeup_workers().
void notify_enable | ( | notify_type * | notify, |
ldns_rr * | soa | ||
) |
Enable notify.
[in] | notify | notify structure |
[in] | soa | current soa |
Enable notify.
Definition at line 533 of file notify.c.
References ADAPTER_DNS, zone_struct::adoutbound, adapter_struct::config, dnsout_struct::do_notify, netio_handler_struct::fd, notify_struct::handler, notify_struct::is_waiting, zone_struct::name, NOTIFY_MAX_UDP, xfrhandler_struct::notify_udp_num, xfrhandler_struct::notify_waiting_first, xfrhandler_struct::notify_waiting_last, ods_log_assert, ods_log_debug(), ods_log_warning(), notify_struct::secondary, netio_handler_struct::timeout, adapter_struct::type, notify_struct::waiting_next, notify_struct::xfrhandler, and notify_struct::zone.
Referenced by dnsout_update().
void notify_send | ( | notify_type * | notify | ) |
Send notify.
[in] | notify | notify structure |
Send notify.
Definition at line 408 of file notify.c.
References acl_struct::address, zone_struct::apex, buffer_flip(), buffer_pkt_id(), buffer_pkt_notify(), buffer_pkt_set_aa(), buffer_pkt_set_ancount(), buffer_write_rr(), netio_handler_struct::fd, notify_struct::handler, notify_struct::is_waiting, zone_struct::name, NETIO_EVENT_READ, NETIO_EVENT_TIMEOUT, NOTIFY_MAX_RETRY, NOTIFY_RETRY_TIMEOUT, notify_send(), ods_log_assert, ods_log_debug(), ods_log_error(), ods_log_verbose(), xfrhandler_struct::packet, notify_struct::query_id, notify_struct::retry, notify_struct::secondary, notify_struct::soa, notify_struct::timeout, acl_struct::tsig, netio_handler_struct::user_data, notify_struct::xfrhandler, and notify_struct::zone.
Referenced by notify_send().