peer.c File Reference

#include <config.h>
#include <isc/mem.h>
#include <isc/string.h>
#include <isc/util.h>
#include <isc/sockaddr.h>
#include <dns/bit.h>
#include <dns/fixedname.h>
#include <dns/name.h>
#include <dns/peer.h>

Go to the source code of this file.

Defines

#define BOGUS_BIT   0
 Bit positions in the dns_peer_t structure flags field.
#define SERVER_TRANSFER_FORMAT_BIT   1
#define TRANSFERS_BIT   2
#define PROVIDE_IXFR_BIT   3
#define REQUEST_IXFR_BIT   4
#define SUPPORT_EDNS_BIT   5
#define SERVER_UDPSIZE_BIT   6
#define SERVER_MAXUDP_BIT   7
#define REQUEST_NSID_BIT   8
#define REQUEST_SIT_BIT   9
#define NOTIFY_DSCP_BIT   10
#define TRANSFER_DSCP_BIT   11
#define QUERY_DSCP_BIT   12
#define REQUEST_EXPIRE_BIT   13
#define EDNS_VERSION_BIT   14
#define FORCE_TCP_BIT   15

Functions

static void peerlist_delete (dns_peerlist_t **list)
static void peer_delete (dns_peer_t **peer)
isc_result_t dns_peerlist_new (isc_mem_t *mem, dns_peerlist_t **list)
void dns_peerlist_attach (dns_peerlist_t *source, dns_peerlist_t **target)
void dns_peerlist_detach (dns_peerlist_t **list)
void dns_peerlist_addpeer (dns_peerlist_t *peers, dns_peer_t *peer)
isc_result_t dns_peerlist_peerbyaddr (dns_peerlist_t *servers, isc_netaddr_t *addr, dns_peer_t **retval)
isc_result_t dns_peerlist_currpeer (dns_peerlist_t *peers, dns_peer_t **retval)
isc_result_t dns_peer_new (isc_mem_t *mem, isc_netaddr_t *addr, dns_peer_t **peerptr)
isc_result_t dns_peer_newprefix (isc_mem_t *mem, isc_netaddr_t *addr, unsigned int prefixlen, dns_peer_t **peerptr)
void dns_peer_attach (dns_peer_t *source, dns_peer_t **target)
void dns_peer_detach (dns_peer_t **peer)
isc_result_t dns_peer_setbogus (dns_peer_t *peer, isc_boolean_t newval)
isc_result_t dns_peer_getbogus (dns_peer_t *peer, isc_boolean_t *retval)
isc_result_t dns_peer_setprovideixfr (dns_peer_t *peer, isc_boolean_t newval)
isc_result_t dns_peer_getprovideixfr (dns_peer_t *peer, isc_boolean_t *retval)
isc_result_t dns_peer_setrequestixfr (dns_peer_t *peer, isc_boolean_t newval)
isc_result_t dns_peer_getrequestixfr (dns_peer_t *peer, isc_boolean_t *retval)
isc_result_t dns_peer_setsupportedns (dns_peer_t *peer, isc_boolean_t newval)
isc_result_t dns_peer_getsupportedns (dns_peer_t *peer, isc_boolean_t *retval)
isc_result_t dns_peer_setrequestnsid (dns_peer_t *peer, isc_boolean_t newval)
isc_result_t dns_peer_getrequestnsid (dns_peer_t *peer, isc_boolean_t *retval)
isc_result_t dns_peer_setrequestsit (dns_peer_t *peer, isc_boolean_t newval)
isc_result_t dns_peer_getrequestsit (dns_peer_t *peer, isc_boolean_t *retval)
isc_result_t dns_peer_setrequestexpire (dns_peer_t *peer, isc_boolean_t newval)
isc_result_t dns_peer_getrequestexpire (dns_peer_t *peer, isc_boolean_t *retval)
isc_result_t dns_peer_setforcetcp (dns_peer_t *peer, isc_boolean_t newval)
isc_result_t dns_peer_getforcetcp (dns_peer_t *peer, isc_boolean_t *retval)
isc_result_t dns_peer_settransfers (dns_peer_t *peer, isc_uint32_t newval)
isc_result_t dns_peer_gettransfers (dns_peer_t *peer, isc_uint32_t *retval)
isc_result_t dns_peer_settransferformat (dns_peer_t *peer, dns_transfer_format_t newval)
isc_result_t dns_peer_gettransferformat (dns_peer_t *peer, dns_transfer_format_t *retval)
isc_result_t dns_peer_getkey (dns_peer_t *peer, dns_name_t **retval)
isc_result_t dns_peer_setkey (dns_peer_t *peer, dns_name_t **keyval)
isc_result_t dns_peer_setkeybycharp (dns_peer_t *peer, const char *keyval)
isc_result_t dns_peer_settransfersource (dns_peer_t *peer, const isc_sockaddr_t *transfer_source)
isc_result_t dns_peer_gettransfersource (dns_peer_t *peer, isc_sockaddr_t *transfer_source)
isc_result_t dns_peer_setnotifysource (dns_peer_t *peer, const isc_sockaddr_t *notify_source)
isc_result_t dns_peer_getnotifysource (dns_peer_t *peer, isc_sockaddr_t *notify_source)
isc_result_t dns_peer_setquerysource (dns_peer_t *peer, const isc_sockaddr_t *query_source)
isc_result_t dns_peer_getquerysource (dns_peer_t *peer, isc_sockaddr_t *query_source)
isc_result_t dns_peer_setudpsize (dns_peer_t *peer, isc_uint16_t udpsize)
isc_result_t dns_peer_getudpsize (dns_peer_t *peer, isc_uint16_t *udpsize)
isc_result_t dns_peer_setmaxudp (dns_peer_t *peer, isc_uint16_t maxudp)
isc_result_t dns_peer_getmaxudp (dns_peer_t *peer, isc_uint16_t *maxudp)
isc_result_t dns_peer_setnotifydscp (dns_peer_t *peer, isc_dscp_t dscp)
isc_result_t dns_peer_getnotifydscp (dns_peer_t *peer, isc_dscp_t *dscpp)
isc_result_t dns_peer_settransferdscp (dns_peer_t *peer, isc_dscp_t dscp)
isc_result_t dns_peer_gettransferdscp (dns_peer_t *peer, isc_dscp_t *dscpp)
isc_result_t dns_peer_setquerydscp (dns_peer_t *peer, isc_dscp_t dscp)
isc_result_t dns_peer_getquerydscp (dns_peer_t *peer, isc_dscp_t *dscpp)
isc_result_t dns_peer_setednsversion (dns_peer_t *peer, isc_uint8_t ednsversion)
isc_result_t dns_peer_getednsversion (dns_peer_t *peer, isc_uint8_t *ednsversion)


Detailed Description

Definition in file peer.c.


Define Documentation

#define BOGUS_BIT   0

Bit positions in the dns_peer_t structure flags field.

Definition at line 37 of file peer.c.

Referenced by dns_peer_getbogus(), and dns_peer_setbogus().

#define SERVER_TRANSFER_FORMAT_BIT   1

Definition at line 38 of file peer.c.

Referenced by dns_peer_gettransferformat(), and dns_peer_settransferformat().

#define TRANSFERS_BIT   2

Definition at line 39 of file peer.c.

Referenced by dns_peer_gettransfers(), and dns_peer_settransfers().

#define PROVIDE_IXFR_BIT   3

Definition at line 40 of file peer.c.

Referenced by dns_peer_getprovideixfr(), and dns_peer_setprovideixfr().

#define REQUEST_IXFR_BIT   4

Definition at line 41 of file peer.c.

Referenced by dns_peer_getrequestixfr(), and dns_peer_setrequestixfr().

#define SUPPORT_EDNS_BIT   5

Definition at line 42 of file peer.c.

Referenced by dns_peer_getsupportedns(), and dns_peer_setsupportedns().

#define SERVER_UDPSIZE_BIT   6

Definition at line 43 of file peer.c.

Referenced by dns_peer_getudpsize(), and dns_peer_setudpsize().

#define SERVER_MAXUDP_BIT   7

Definition at line 44 of file peer.c.

Referenced by dns_peer_getmaxudp(), and dns_peer_setmaxudp().

#define REQUEST_NSID_BIT   8

Definition at line 45 of file peer.c.

Referenced by dns_peer_getrequestnsid(), and dns_peer_setrequestnsid().

#define REQUEST_SIT_BIT   9

Definition at line 46 of file peer.c.

Referenced by dns_peer_getrequestsit(), and dns_peer_setrequestsit().

#define NOTIFY_DSCP_BIT   10

Definition at line 47 of file peer.c.

Referenced by dns_peer_getnotifydscp(), and dns_peer_setnotifydscp().

#define TRANSFER_DSCP_BIT   11

Definition at line 48 of file peer.c.

Referenced by dns_peer_gettransferdscp(), and dns_peer_settransferdscp().

#define QUERY_DSCP_BIT   12

Definition at line 49 of file peer.c.

Referenced by dns_peer_getquerydscp(), and dns_peer_setquerydscp().

#define REQUEST_EXPIRE_BIT   13

Definition at line 50 of file peer.c.

Referenced by dns_peer_getrequestexpire(), and dns_peer_setrequestexpire().

#define EDNS_VERSION_BIT   14

Definition at line 51 of file peer.c.

Referenced by dns_peer_getednsversion(), and dns_peer_setednsversion().

#define FORCE_TCP_BIT   15

Definition at line 52 of file peer.c.

Referenced by dns_peer_getforcetcp(), and dns_peer_setforcetcp().


Function Documentation

static void peerlist_delete ( dns_peerlist_t **  list  )  [static]

Definition at line 113 of file peer.c.

References dns_peer_detach(), DNS_PEERLIST_VALID, ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_LIST_UNLINK, isc_mem_put, dns_peerlist::magic, dns_peerlist::mem, dns_peerlist::refs, and REQUIRE.

Referenced by dns_peerlist_detach().

static void peer_delete ( dns_peer_t **  peer  )  [static]

Definition at line 290 of file peer.c.

References dns_name_free(), DNS_PEER_VALID, isc_mem_put, dns_peer::key, dns_peer::magic, dns_peer::mem, dns_peer::notify_source, dns_peer::query_source, dns_peer::refs, REQUIRE, and dns_peer::transfer_source.

Referenced by dns_peer_detach().

isc_result_t dns_peerlist_new ( isc_mem_t mem,
dns_peerlist_t **  list 
)

Definition at line 61 of file peer.c.

References DNS_PEERLIST_MAGIC, ISC_LIST_INIT, isc_mem_get, ISC_R_NOMEMORY, ISC_R_SUCCESS, dns_peerlist::magic, dns_peerlist::mem, dns_peerlist::refs, and REQUIRE.

Referenced by configure_view(), and dns_view_create().

void dns_peerlist_attach ( dns_peerlist_t source,
dns_peerlist_t **  target 
)

Definition at line 81 of file peer.c.

References DNS_PEERLIST_VALID, ENSURE, dns_peerlist::refs, and REQUIRE.

void dns_peerlist_detach ( dns_peerlist_t **  list  ) 

Definition at line 94 of file peer.c.

References DNS_PEERLIST_VALID, peerlist_delete(), dns_peerlist::refs, and REQUIRE.

Referenced by configure_view(), destroy(), and dns_view_create().

void dns_peerlist_addpeer ( dns_peerlist_t peers,
dns_peer_t peer 
)

Definition at line 139 of file peer.c.

References dns_peer_attach(), ISC_LIST_APPEND, ISC_LIST_HEAD, ISC_LIST_INSERTBEFORE, ISC_LIST_NEXT, and dns_peer::prefixlen.

Referenced by configure_view().

isc_result_t dns_peerlist_peerbyaddr ( dns_peerlist_t servers,
isc_netaddr_t addr,
dns_peer_t **  retval 
)

Definition at line 161 of file peer.c.

References dns_peer::address, DNS_PEERLIST_VALID, ISC_LIST_HEAD, ISC_LIST_NEXT, isc_netaddr_eqprefix(), ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::prefixlen, and REQUIRE.

Referenced by client_request(), dns_view_getpeertsig(), fctx_query(), got_transfer_quota(), notify_send_toaddr(), ns_query(), ns_xfr_start(), possibly_mark(), resquery_send(), soa_query(), and zmgr_start_xfrin_ifquota().

isc_result_t dns_peerlist_currpeer ( dns_peerlist_t peers,
dns_peer_t **  retval 
)

Definition at line 192 of file peer.c.

References dns_peer_attach(), ISC_LIST_TAIL, and ISC_R_SUCCESS.

isc_result_t dns_peer_new ( isc_mem_t mem,
isc_netaddr_t addr,
dns_peer_t **  peerptr 
)

Definition at line 203 of file peer.c.

References AF_INET6, dns_peer_newprefix(), isc_netaddr::family, INSIST, and REQUIRE.

Referenced by ATF_TC_BODY().

isc_result_t dns_peer_newprefix ( isc_mem_t mem,
isc_netaddr_t addr,
unsigned int  prefixlen,
dns_peer_t **  peerptr 
)

Definition at line 222 of file peer.c.

References dns_peer::address, dns_peer::bitflags, dns_peer::bogus, dns_one_answer, DNS_PEER_MAGIC, ISC_FALSE, ISC_LINK_INIT, isc_mem_get, ISC_R_NOMEMORY, ISC_R_SUCCESS, dns_peer::key, dns_peer::magic, dns_peer::mem, dns_peer::notify_source, dns_peer::prefixlen, dns_peer::provide_ixfr, dns_peer::query_source, dns_peer::refs, dns_peer::request_ixfr, REQUIRE, dns_peer::transfer_format, dns_peer::transfer_source, and dns_peer::transfers.

Referenced by configure_peer(), and dns_peer_new().

void dns_peer_attach ( dns_peer_t source,
dns_peer_t **  target 
)

Definition at line 258 of file peer.c.

References DNS_PEER_VALID, ENSURE, dns_peer::refs, and REQUIRE.

Referenced by dns_peerlist_addpeer(), and dns_peerlist_currpeer().

void dns_peer_detach ( dns_peer_t **  peer  ) 

Definition at line 271 of file peer.c.

References DNS_PEER_VALID, peer_delete(), dns_peer::refs, and REQUIRE.

Referenced by ATF_TC_BODY(), configure_peer(), configure_view(), and peerlist_delete().

isc_result_t dns_peer_setbogus ( dns_peer_t peer,
isc_boolean_t  newval 
)

Definition at line 326 of file peer.c.

References dns_peer::bitflags, dns_peer::bogus, BOGUS_BIT, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getbogus ( dns_peer_t peer,
isc_boolean_t retval 
)

Definition at line 340 of file peer.c.

References dns_peer::bitflags, dns_peer::bogus, BOGUS_BIT, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, and REQUIRE.

Referenced by possibly_mark().

isc_result_t dns_peer_setprovideixfr ( dns_peer_t peer,
isc_boolean_t  newval 
)

Definition at line 353 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, dns_peer::provide_ixfr, PROVIDE_IXFR_BIT, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getprovideixfr ( dns_peer_t peer,
isc_boolean_t retval 
)

Definition at line 367 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::provide_ixfr, PROVIDE_IXFR_BIT, and REQUIRE.

Referenced by ns_xfr_start().

isc_result_t dns_peer_setrequestixfr ( dns_peer_t peer,
isc_boolean_t  newval 
)

Definition at line 380 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, dns_peer::request_ixfr, REQUEST_IXFR_BIT, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getrequestixfr ( dns_peer_t peer,
isc_boolean_t retval 
)

Definition at line 394 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::request_ixfr, REQUEST_IXFR_BIT, and REQUIRE.

Referenced by got_transfer_quota().

isc_result_t dns_peer_setsupportedns ( dns_peer_t peer,
isc_boolean_t  newval 
)

Definition at line 406 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, REQUIRE, dns_peer::support_edns, and SUPPORT_EDNS_BIT.

Referenced by configure_peer().

isc_result_t dns_peer_getsupportedns ( dns_peer_t peer,
isc_boolean_t retval 
)

Definition at line 420 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, REQUIRE, dns_peer::support_edns, and SUPPORT_EDNS_BIT.

Referenced by ns_query(), resquery_send(), and soa_query().

isc_result_t dns_peer_setrequestnsid ( dns_peer_t peer,
isc_boolean_t  newval 
)

Definition at line 432 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, dns_peer::request_nsid, REQUEST_NSID_BIT, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getrequestnsid ( dns_peer_t peer,
isc_boolean_t retval 
)

Definition at line 446 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::request_nsid, REQUEST_NSID_BIT, and REQUIRE.

Referenced by ns_query(), resquery_send(), and soa_query().

isc_result_t dns_peer_setrequestsit ( dns_peer_t peer,
isc_boolean_t  newval 
)

Definition at line 458 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, dns_peer::request_sit, REQUEST_SIT_BIT, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getrequestsit ( dns_peer_t peer,
isc_boolean_t retval 
)

Definition at line 472 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::request_sit, REQUEST_SIT_BIT, and REQUIRE.

Referenced by resquery_send().

isc_result_t dns_peer_setrequestexpire ( dns_peer_t peer,
isc_boolean_t  newval 
)

Definition at line 484 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, dns_peer::request_expire, REQUEST_EXPIRE_BIT, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getrequestexpire ( dns_peer_t peer,
isc_boolean_t retval 
)

Definition at line 498 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::request_expire, REQUEST_EXPIRE_BIT, and REQUIRE.

Referenced by soa_query().

isc_result_t dns_peer_setforcetcp ( dns_peer_t peer,
isc_boolean_t  newval 
)

Definition at line 510 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, dns_peer::force_tcp, FORCE_TCP_BIT, ISC_R_EXISTS, ISC_R_SUCCESS, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getforcetcp ( dns_peer_t peer,
isc_boolean_t retval 
)

Definition at line 524 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, dns_peer::force_tcp, FORCE_TCP_BIT, ISC_R_NOTFOUND, ISC_R_SUCCESS, and REQUIRE.

Referenced by fctx_query(), notify_send_toaddr(), and soa_query().

isc_result_t dns_peer_settransfers ( dns_peer_t peer,
isc_uint32_t  newval 
)

Definition at line 536 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, REQUIRE, dns_peer::transfers, and TRANSFERS_BIT.

Referenced by configure_peer().

isc_result_t dns_peer_gettransfers ( dns_peer_t peer,
isc_uint32_t retval 
)

Definition at line 550 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, REQUIRE, dns_peer::transfers, and TRANSFERS_BIT.

Referenced by zmgr_start_xfrin_ifquota().

isc_result_t dns_peer_settransferformat ( dns_peer_t peer,
dns_transfer_format_t  newval 
)

Definition at line 563 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, REQUIRE, SERVER_TRANSFER_FORMAT_BIT, and dns_peer::transfer_format.

Referenced by configure_peer().

isc_result_t dns_peer_gettransferformat ( dns_peer_t peer,
dns_transfer_format_t retval 
)

Definition at line 578 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, REQUIRE, SERVER_TRANSFER_FORMAT_BIT, and dns_peer::transfer_format.

Referenced by ns_xfr_start().

isc_result_t dns_peer_getkey ( dns_peer_t peer,
dns_name_t **  retval 
)

Definition at line 591 of file peer.c.

References DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::key, and REQUIRE.

Referenced by dns_view_getpeertsig().

isc_result_t dns_peer_setkey ( dns_peer_t peer,
dns_name_t **  keyval 
)

Definition at line 603 of file peer.c.

References dns_name_free(), ISC_FALSE, isc_mem_put, ISC_R_EXISTS, ISC_R_SUCCESS, ISC_TRUE, dns_peer::key, and dns_peer::mem.

Referenced by dns_peer_setkeybycharp().

isc_result_t dns_peer_setkeybycharp ( dns_peer_t peer,
const char *  keyval 
)

Definition at line 619 of file peer.c.

References dns_fixedname_init, dns_fixedname_name, dns_name_dup(), dns_name_fromtext(), dns_name_init(), dns_peer_setkey(), dns_rootname, isc_buffer_add, isc_buffer_constinit, isc_mem_get, isc_mem_put, ISC_R_NOMEMORY, ISC_R_SUCCESS, dns_peer::mem, and name.

Referenced by configure_peer().

isc_result_t dns_peer_settransfersource ( dns_peer_t peer,
const isc_sockaddr_t transfer_source 
)

Definition at line 652 of file peer.c.

References DNS_PEER_VALID, isc_mem_get, isc_mem_put, ISC_R_NOMEMORY, ISC_R_SUCCESS, dns_peer::mem, REQUIRE, and dns_peer::transfer_source.

Referenced by configure_peer().

isc_result_t dns_peer_gettransfersource ( dns_peer_t peer,
isc_sockaddr_t transfer_source 
)

Definition at line 674 of file peer.c.

References DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, REQUIRE, and dns_peer::transfer_source.

Referenced by ns_query(), and soa_query().

isc_result_t dns_peer_setnotifysource ( dns_peer_t peer,
const isc_sockaddr_t notify_source 
)

Definition at line 685 of file peer.c.

References DNS_PEER_VALID, isc_mem_get, isc_mem_put, ISC_R_NOMEMORY, ISC_R_SUCCESS, dns_peer::mem, dns_peer::notify_source, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getnotifysource ( dns_peer_t peer,
isc_sockaddr_t notify_source 
)

Definition at line 707 of file peer.c.

References DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::notify_source, and REQUIRE.

Referenced by notify_send_toaddr().

isc_result_t dns_peer_setquerysource ( dns_peer_t peer,
const isc_sockaddr_t query_source 
)

Definition at line 718 of file peer.c.

References DNS_PEER_VALID, isc_mem_get, isc_mem_put, ISC_R_NOMEMORY, ISC_R_SUCCESS, dns_peer::mem, dns_peer::query_source, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getquerysource ( dns_peer_t peer,
isc_sockaddr_t query_source 
)

Definition at line 738 of file peer.c.

References DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::query_source, and REQUIRE.

Referenced by fctx_query().

isc_result_t dns_peer_setudpsize ( dns_peer_t peer,
isc_uint16_t  udpsize 
)

Definition at line 749 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, REQUIRE, SERVER_UDPSIZE_BIT, and dns_peer::udpsize.

Referenced by configure_peer().

isc_result_t dns_peer_getudpsize ( dns_peer_t peer,
isc_uint16_t udpsize 
)

Definition at line 763 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, REQUIRE, SERVER_UDPSIZE_BIT, and dns_peer::udpsize.

Referenced by ns_query(), resquery_send(), and soa_query().

isc_result_t dns_peer_setmaxudp ( dns_peer_t peer,
isc_uint16_t  maxudp 
)

Definition at line 777 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_EXISTS, ISC_R_SUCCESS, dns_peer::maxudp, REQUIRE, and SERVER_MAXUDP_BIT.

Referenced by configure_peer().

isc_result_t dns_peer_getmaxudp ( dns_peer_t peer,
isc_uint16_t maxudp 
)

Definition at line 791 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::maxudp, REQUIRE, and SERVER_MAXUDP_BIT.

Referenced by client_request().

isc_result_t dns_peer_setnotifydscp ( dns_peer_t peer,
isc_dscp_t  dscp 
)

Definition at line 805 of file peer.c.

References dns_peer::bitflags, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_SUCCESS, dns_peer::notify_dscp, NOTIFY_DSCP_BIT, and REQUIRE.

Referenced by ATF_TC_BODY(), and configure_peer().

isc_result_t dns_peer_getnotifydscp ( dns_peer_t peer,
isc_dscp_t dscpp 
)

Definition at line 815 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::notify_dscp, NOTIFY_DSCP_BIT, and REQUIRE.

Referenced by ATF_TC_BODY(), and notify_send_toaddr().

isc_result_t dns_peer_settransferdscp ( dns_peer_t peer,
isc_dscp_t  dscp 
)

Definition at line 827 of file peer.c.

References dns_peer::bitflags, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_SUCCESS, REQUIRE, dns_peer::transfer_dscp, and TRANSFER_DSCP_BIT.

Referenced by ATF_TC_BODY(), and configure_peer().

isc_result_t dns_peer_gettransferdscp ( dns_peer_t peer,
isc_dscp_t dscpp 
)

Definition at line 837 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, REQUIRE, dns_peer::transfer_dscp, and TRANSFER_DSCP_BIT.

Referenced by ATF_TC_BODY(), ns_query(), and soa_query().

isc_result_t dns_peer_setquerydscp ( dns_peer_t peer,
isc_dscp_t  dscp 
)

Definition at line 849 of file peer.c.

References dns_peer::bitflags, DNS_BIT_SET, DNS_PEER_VALID, ISC_R_SUCCESS, dns_peer::query_dscp, QUERY_DSCP_BIT, and REQUIRE.

Referenced by ATF_TC_BODY(), and configure_peer().

isc_result_t dns_peer_getquerydscp ( dns_peer_t peer,
isc_dscp_t dscpp 
)

Definition at line 859 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_peer::query_dscp, QUERY_DSCP_BIT, and REQUIRE.

Referenced by ATF_TC_BODY(), and fctx_query().

isc_result_t dns_peer_setednsversion ( dns_peer_t peer,
isc_uint8_t  ednsversion 
)

Definition at line 871 of file peer.c.

References dns_peer::bitflags, DNS_BIT_SET, DNS_PEER_VALID, EDNS_VERSION_BIT, dns_peer::ednsversion, ISC_R_SUCCESS, and REQUIRE.

Referenced by configure_peer().

isc_result_t dns_peer_getednsversion ( dns_peer_t peer,
isc_uint8_t ednsversion 
)

Definition at line 881 of file peer.c.

References dns_peer::bitflags, DNS_BIT_CHECK, DNS_PEER_VALID, EDNS_VERSION_BIT, dns_peer::ednsversion, ISC_R_NOTFOUND, ISC_R_SUCCESS, and REQUIRE.

Referenced by resquery_send().


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