soa.h File Reference

SOA utilities. More...

#include <isc/lang.h>
#include <isc/types.h>
#include <dns/types.h>

Go to the source code of this file.

Defines

#define DNS_SOA_H   1
#define DNS_SOA_BUFFERSIZE   ((2 * DNS_NAME_MAXWIRE) + (4 * 5))

Functions

isc_result_t dns_soa_buildrdata (dns_name_t *origin, dns_name_t *contact, dns_rdataclass_t rdclass, isc_uint32_t serial, isc_uint32_t refresh, isc_uint32_t retry, isc_uint32_t expire, isc_uint32_t minimum, unsigned char *buffer, dns_rdata_t *rdata)
 Build the rdata of an SOA record.
isc_uint32_t dns_soa_getserial (dns_rdata_t *rdata)
isc_uint32_t dns_soa_getrefresh (dns_rdata_t *rdata)
isc_uint32_t dns_soa_getretry (dns_rdata_t *rdata)
isc_uint32_t dns_soa_getexpire (dns_rdata_t *rdata)
isc_uint32_t dns_soa_getminimum (dns_rdata_t *rdata)
void dns_soa_setserial (isc_uint32_t val, dns_rdata_t *rdata)
void dns_soa_setrefresh (isc_uint32_t val, dns_rdata_t *rdata)
void dns_soa_setretry (isc_uint32_t val, dns_rdata_t *rdata)
void dns_soa_setexpire (isc_uint32_t val, dns_rdata_t *rdata)
void dns_soa_setminimum (isc_uint32_t val, dns_rdata_t *rdata)


Detailed Description

SOA utilities.

Definition in file soa.h.


Define Documentation

#define DNS_SOA_H   1

Definition at line 21 of file soa.h.

#define DNS_SOA_BUFFERSIZE   ((2 * DNS_NAME_MAXWIRE) + (4 * 5))

Definition at line 43 of file soa.h.

Referenced by add_soa(), checkandaddsoa(), and dns_soa_buildrdata().


Function Documentation

isc_result_t dns_soa_buildrdata ( dns_name_t origin,
dns_name_t contact,
dns_rdataclass_t  rdclass,
isc_uint32_t  serial,
isc_uint32_t  refresh,
isc_uint32_t  retry,
isc_uint32_t  expire,
isc_uint32_t  minimum,
unsigned char *  buffer,
dns_rdata_t rdata 
)

Build the rdata of an SOA record.

Requires:

Ensures:

Definition at line 67 of file soa.c.

References dns_name_clone(), dns_name_init(), dns_rdata_fromstruct(), DNS_SOA_BUFFERSIZE, isc_buffer_init, and REQUIRE.

Referenced by add_soa().

isc_uint32_t dns_soa_getserial ( dns_rdata_t rdata  ) 

Definition at line 100 of file soa.c.

References soa_get().

Referenced by check_soa_increment(), dns_journal_writediff(), ns_xfr_start(), read_one_rr(), receive_secure_serial(), setsoaserial(), update_soa_serial(), xfr_rr(), and xfrin_send_request().

isc_uint32_t dns_soa_getrefresh ( dns_rdata_t rdata  ) 

Definition at line 104 of file soa.c.

References soa_get().

isc_uint32_t dns_soa_getretry ( dns_rdata_t rdata  ) 

Definition at line 108 of file soa.c.

References soa_get().

isc_uint32_t dns_soa_getexpire ( dns_rdata_t rdata  ) 

Definition at line 112 of file soa.c.

References soa_get().

isc_uint32_t dns_soa_getminimum ( dns_rdata_t rdata  ) 

Definition at line 116 of file soa.c.

References soa_get().

Referenced by get_soa_ttls(), and load_text().

void dns_soa_setserial ( isc_uint32_t  val,
dns_rdata_t rdata 
)

Definition at line 129 of file soa.c.

References soa_set().

Referenced by receive_secure_serial(), setsoaserial(), and update_soa_serial().

void dns_soa_setrefresh ( isc_uint32_t  val,
dns_rdata_t rdata 
)

Definition at line 133 of file soa.c.

References soa_set().

void dns_soa_setretry ( isc_uint32_t  val,
dns_rdata_t rdata 
)

Definition at line 137 of file soa.c.

References soa_set().

void dns_soa_setexpire ( isc_uint32_t  val,
dns_rdata_t rdata 
)

Definition at line 141 of file soa.c.

References soa_set().

void dns_soa_setminimum ( isc_uint32_t  val,
dns_rdata_t rdata 
)

Definition at line 145 of file soa.c.

References soa_set().


Generated on Tue Apr 28 17:41:10 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha