2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

apply the modified style

This commit is contained in:
Evan Hunt
2020-02-13 14:44:37 -08:00
parent 0255a97473
commit e851ed0bb5
669 changed files with 35995 additions and 42219 deletions

View File

@@ -27,34 +27,31 @@
/*%
* Bit positions in the dns_peer_t structure flags field
*/
#define BOGUS_BIT 0
#define BOGUS_BIT 0
#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 SEND_COOKIE_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
#define SERVER_PADDING_BIT 16
#define REQUEST_TCP_KEEPALIVE_BIT 17
#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 SEND_COOKIE_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
#define SERVER_PADDING_BIT 16
#define REQUEST_TCP_KEEPALIVE_BIT 17
static void
peerlist_delete(dns_peerlist_t **list);
static void peerlist_delete(dns_peerlist_t **list);
static void
peer_delete(dns_peer_t **peer);
static void peer_delete(dns_peer_t **peer);
isc_result_t
dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list)
{
dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list) {
dns_peerlist_t *l;
REQUIRE(list != NULL);
@@ -72,8 +69,7 @@ dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list)
}
void
dns_peerlist_attach(dns_peerlist_t *source, dns_peerlist_t **target)
{
dns_peerlist_attach(dns_peerlist_t *source, dns_peerlist_t **target) {
REQUIRE(DNS_PEERLIST_VALID(source));
REQUIRE(target != NULL);
REQUIRE(*target == NULL);
@@ -84,8 +80,7 @@ dns_peerlist_attach(dns_peerlist_t *source, dns_peerlist_t **target)
}
void
dns_peerlist_detach(dns_peerlist_t **list)
{
dns_peerlist_detach(dns_peerlist_t **list) {
dns_peerlist_t *plist;
REQUIRE(list != NULL);
@@ -101,10 +96,9 @@ dns_peerlist_detach(dns_peerlist_t **list)
}
static void
peerlist_delete(dns_peerlist_t **list)
{
peerlist_delete(dns_peerlist_t **list) {
dns_peerlist_t *l;
dns_peer_t * server, *stmp;
dns_peer_t *server, *stmp;
REQUIRE(list != NULL);
REQUIRE(DNS_PEERLIST_VALID(*list));
@@ -127,8 +121,7 @@ peerlist_delete(dns_peerlist_t **list)
}
void
dns_peerlist_addpeer(dns_peerlist_t *peers, dns_peer_t *peer)
{
dns_peerlist_addpeer(dns_peerlist_t *peers, dns_peer_t *peer) {
dns_peer_t *p = NULL;
dns_peer_attach(peer, &p);
@@ -152,9 +145,8 @@ dns_peerlist_addpeer(dns_peerlist_t *peers, dns_peer_t *peer)
isc_result_t
dns_peerlist_peerbyaddr(dns_peerlist_t *servers, const isc_netaddr_t *addr,
dns_peer_t **retval)
{
dns_peer_t * server;
dns_peer_t **retval) {
dns_peer_t *server;
isc_result_t res;
REQUIRE(retval != NULL);
@@ -181,8 +173,7 @@ dns_peerlist_peerbyaddr(dns_peerlist_t *servers, const isc_netaddr_t *addr,
}
isc_result_t
dns_peerlist_currpeer(dns_peerlist_t *peers, dns_peer_t **retval)
{
dns_peerlist_currpeer(dns_peerlist_t *peers, dns_peer_t **retval) {
dns_peer_t *p = NULL;
p = ISC_LIST_TAIL(peers->elements);
@@ -193,8 +184,7 @@ dns_peerlist_currpeer(dns_peerlist_t *peers, dns_peer_t **retval)
}
isc_result_t
dns_peer_new(isc_mem_t *mem, const isc_netaddr_t *addr, dns_peer_t **peerptr)
{
dns_peer_new(isc_mem_t *mem, const isc_netaddr_t *addr, dns_peer_t **peerptr) {
unsigned int prefixlen = 0;
REQUIRE(peerptr != NULL);
@@ -215,8 +205,7 @@ dns_peer_new(isc_mem_t *mem, const isc_netaddr_t *addr, dns_peer_t **peerptr)
isc_result_t
dns_peer_newprefix(isc_mem_t *mem, const isc_netaddr_t *addr,
unsigned int prefixlen, dns_peer_t **peerptr)
{
unsigned int prefixlen, dns_peer_t **peerptr) {
dns_peer_t *peer;
REQUIRE(peerptr != NULL && *peerptr == NULL);
@@ -241,8 +230,7 @@ dns_peer_newprefix(isc_mem_t *mem, const isc_netaddr_t *addr,
}
void
dns_peer_attach(dns_peer_t *source, dns_peer_t **target)
{
dns_peer_attach(dns_peer_t *source, dns_peer_t **target) {
REQUIRE(DNS_PEER_VALID(source));
REQUIRE(target != NULL);
REQUIRE(*target == NULL);
@@ -253,8 +241,7 @@ dns_peer_attach(dns_peer_t *source, dns_peer_t **target)
}
void
dns_peer_detach(dns_peer_t **peer)
{
dns_peer_detach(dns_peer_t **peer) {
dns_peer_t *p;
REQUIRE(peer != NULL);
@@ -270,10 +257,9 @@ dns_peer_detach(dns_peer_t **peer)
}
static void
peer_delete(dns_peer_t **peer)
{
peer_delete(dns_peer_t **peer) {
dns_peer_t *p;
isc_mem_t * mem;
isc_mem_t *mem;
REQUIRE(peer != NULL);
REQUIRE(DNS_PEER_VALID(*peer));
@@ -309,8 +295,7 @@ peer_delete(dns_peer_t **peer)
}
isc_result_t
dns_peer_setbogus(dns_peer_t *peer, bool newval)
{
dns_peer_setbogus(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -324,8 +309,7 @@ dns_peer_setbogus(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_getbogus(dns_peer_t *peer, bool *retval)
{
dns_peer_getbogus(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -338,8 +322,7 @@ dns_peer_getbogus(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_setprovideixfr(dns_peer_t *peer, bool newval)
{
dns_peer_setprovideixfr(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -353,8 +336,7 @@ dns_peer_setprovideixfr(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_getprovideixfr(dns_peer_t *peer, bool *retval)
{
dns_peer_getprovideixfr(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -367,8 +349,7 @@ dns_peer_getprovideixfr(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_setrequestixfr(dns_peer_t *peer, bool newval)
{
dns_peer_setrequestixfr(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -382,8 +363,7 @@ dns_peer_setrequestixfr(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_getrequestixfr(dns_peer_t *peer, bool *retval)
{
dns_peer_getrequestixfr(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -396,8 +376,7 @@ dns_peer_getrequestixfr(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_setsupportedns(dns_peer_t *peer, bool newval)
{
dns_peer_setsupportedns(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -411,8 +390,7 @@ dns_peer_setsupportedns(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_getsupportedns(dns_peer_t *peer, bool *retval)
{
dns_peer_getsupportedns(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -425,8 +403,7 @@ dns_peer_getsupportedns(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_setrequestnsid(dns_peer_t *peer, bool newval)
{
dns_peer_setrequestnsid(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -440,8 +417,7 @@ dns_peer_setrequestnsid(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_getrequestnsid(dns_peer_t *peer, bool *retval)
{
dns_peer_getrequestnsid(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -454,8 +430,7 @@ dns_peer_getrequestnsid(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_setsendcookie(dns_peer_t *peer, bool newval)
{
dns_peer_setsendcookie(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -469,8 +444,7 @@ dns_peer_setsendcookie(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_getsendcookie(dns_peer_t *peer, bool *retval)
{
dns_peer_getsendcookie(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -483,8 +457,7 @@ dns_peer_getsendcookie(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_setrequestexpire(dns_peer_t *peer, bool newval)
{
dns_peer_setrequestexpire(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -498,8 +471,7 @@ dns_peer_setrequestexpire(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_getrequestexpire(dns_peer_t *peer, bool *retval)
{
dns_peer_getrequestexpire(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -512,8 +484,7 @@ dns_peer_getrequestexpire(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_setforcetcp(dns_peer_t *peer, bool newval)
{
dns_peer_setforcetcp(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -527,8 +498,7 @@ dns_peer_setforcetcp(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_getforcetcp(dns_peer_t *peer, bool *retval)
{
dns_peer_getforcetcp(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -541,8 +511,7 @@ dns_peer_getforcetcp(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_settcpkeepalive(dns_peer_t *peer, bool newval)
{
dns_peer_settcpkeepalive(dns_peer_t *peer, bool newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -556,8 +525,7 @@ dns_peer_settcpkeepalive(dns_peer_t *peer, bool newval)
}
isc_result_t
dns_peer_gettcpkeepalive(dns_peer_t *peer, bool *retval)
{
dns_peer_gettcpkeepalive(dns_peer_t *peer, bool *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -570,8 +538,7 @@ dns_peer_gettcpkeepalive(dns_peer_t *peer, bool *retval)
}
isc_result_t
dns_peer_settransfers(dns_peer_t *peer, uint32_t newval)
{
dns_peer_settransfers(dns_peer_t *peer, uint32_t newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -585,8 +552,7 @@ dns_peer_settransfers(dns_peer_t *peer, uint32_t newval)
}
isc_result_t
dns_peer_gettransfers(dns_peer_t *peer, uint32_t *retval)
{
dns_peer_gettransfers(dns_peer_t *peer, uint32_t *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -599,8 +565,7 @@ dns_peer_gettransfers(dns_peer_t *peer, uint32_t *retval)
}
isc_result_t
dns_peer_settransferformat(dns_peer_t *peer, dns_transfer_format_t newval)
{
dns_peer_settransferformat(dns_peer_t *peer, dns_transfer_format_t newval) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -614,8 +579,7 @@ 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)
{
dns_peer_gettransferformat(dns_peer_t *peer, dns_transfer_format_t *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -628,8 +592,7 @@ 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)
{
dns_peer_getkey(dns_peer_t *peer, dns_name_t **retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
@@ -641,8 +604,7 @@ 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)
{
dns_peer_setkey(dns_peer_t *peer, dns_name_t **keyval) {
bool exists = false;
if (peer->key != NULL) {
@@ -658,12 +620,11 @@ 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_buffer_t b;
dns_peer_setkeybycharp(dns_peer_t *peer, const char *keyval) {
isc_buffer_t b;
dns_fixedname_t fname;
dns_name_t * name;
isc_result_t result;
dns_name_t *name;
isc_result_t result;
dns_fixedname_init(&fname);
isc_buffer_constinit(&b, keyval, strlen(keyval));
@@ -688,9 +649,8 @@ 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)
{
dns_peer_settransfersource(dns_peer_t *peer,
const isc_sockaddr_t *transfer_source) {
REQUIRE(DNS_PEER_VALID(peer));
if (peer->transfer_source != NULL) {
@@ -708,8 +668,7 @@ dns_peer_settransfersource(dns_peer_t * peer,
}
isc_result_t
dns_peer_gettransfersource(dns_peer_t *peer, isc_sockaddr_t *transfer_source)
{
dns_peer_gettransfersource(dns_peer_t *peer, isc_sockaddr_t *transfer_source) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(transfer_source != NULL);
@@ -721,8 +680,8 @@ 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)
{
dns_peer_setnotifysource(dns_peer_t *peer,
const isc_sockaddr_t *notify_source) {
REQUIRE(DNS_PEER_VALID(peer));
if (peer->notify_source != NULL) {
@@ -731,8 +690,8 @@ dns_peer_setnotifysource(dns_peer_t *peer, const isc_sockaddr_t *notify_source)
peer->notify_source = NULL;
}
if (notify_source != NULL) {
peer->notify_source =
isc_mem_get(peer->mem, sizeof(*peer->notify_source));
peer->notify_source = isc_mem_get(peer->mem,
sizeof(*peer->notify_source));
*peer->notify_source = *notify_source;
}
@@ -740,8 +699,7 @@ 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)
{
dns_peer_getnotifysource(dns_peer_t *peer, isc_sockaddr_t *notify_source) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(notify_source != NULL);
@@ -753,8 +711,7 @@ 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)
{
dns_peer_setquerysource(dns_peer_t *peer, const isc_sockaddr_t *query_source) {
REQUIRE(DNS_PEER_VALID(peer));
if (peer->query_source != NULL) {
@@ -763,8 +720,8 @@ dns_peer_setquerysource(dns_peer_t *peer, const isc_sockaddr_t *query_source)
peer->query_source = NULL;
}
if (query_source != NULL) {
peer->query_source =
isc_mem_get(peer->mem, sizeof(*peer->query_source));
peer->query_source = isc_mem_get(peer->mem,
sizeof(*peer->query_source));
*peer->query_source = *query_source;
}
@@ -772,8 +729,7 @@ 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)
{
dns_peer_getquerysource(dns_peer_t *peer, isc_sockaddr_t *query_source) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(query_source != NULL);
@@ -785,8 +741,7 @@ dns_peer_getquerysource(dns_peer_t *peer, isc_sockaddr_t *query_source)
}
isc_result_t
dns_peer_setudpsize(dns_peer_t *peer, uint16_t udpsize)
{
dns_peer_setudpsize(dns_peer_t *peer, uint16_t udpsize) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -800,8 +755,7 @@ dns_peer_setudpsize(dns_peer_t *peer, uint16_t udpsize)
}
isc_result_t
dns_peer_getudpsize(dns_peer_t *peer, uint16_t *udpsize)
{
dns_peer_getudpsize(dns_peer_t *peer, uint16_t *udpsize) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(udpsize != NULL);
@@ -814,8 +768,7 @@ dns_peer_getudpsize(dns_peer_t *peer, uint16_t *udpsize)
}
isc_result_t
dns_peer_setmaxudp(dns_peer_t *peer, uint16_t maxudp)
{
dns_peer_setmaxudp(dns_peer_t *peer, uint16_t maxudp) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -829,8 +782,7 @@ dns_peer_setmaxudp(dns_peer_t *peer, uint16_t maxudp)
}
isc_result_t
dns_peer_getmaxudp(dns_peer_t *peer, uint16_t *maxudp)
{
dns_peer_getmaxudp(dns_peer_t *peer, uint16_t *maxudp) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(maxudp != NULL);
@@ -843,8 +795,7 @@ dns_peer_getmaxudp(dns_peer_t *peer, uint16_t *maxudp)
}
isc_result_t
dns_peer_setpadding(dns_peer_t *peer, uint16_t padding)
{
dns_peer_setpadding(dns_peer_t *peer, uint16_t padding) {
bool existed;
REQUIRE(DNS_PEER_VALID(peer));
@@ -861,8 +812,7 @@ dns_peer_setpadding(dns_peer_t *peer, uint16_t padding)
}
isc_result_t
dns_peer_getpadding(dns_peer_t *peer, uint16_t *padding)
{
dns_peer_getpadding(dns_peer_t *peer, uint16_t *padding) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(padding != NULL);
@@ -875,8 +825,7 @@ dns_peer_getpadding(dns_peer_t *peer, uint16_t *padding)
}
isc_result_t
dns_peer_setnotifydscp(dns_peer_t *peer, isc_dscp_t dscp)
{
dns_peer_setnotifydscp(dns_peer_t *peer, isc_dscp_t dscp) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(dscp < 64);
@@ -886,8 +835,7 @@ 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)
{
dns_peer_getnotifydscp(dns_peer_t *peer, isc_dscp_t *dscpp) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(dscpp != NULL);
@@ -899,8 +847,7 @@ 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)
{
dns_peer_settransferdscp(dns_peer_t *peer, isc_dscp_t dscp) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(dscp < 64);
@@ -910,8 +857,7 @@ 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)
{
dns_peer_gettransferdscp(dns_peer_t *peer, isc_dscp_t *dscpp) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(dscpp != NULL);
@@ -923,8 +869,7 @@ 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)
{
dns_peer_setquerydscp(dns_peer_t *peer, isc_dscp_t dscp) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(dscp < 64);
@@ -934,8 +879,7 @@ 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)
{
dns_peer_getquerydscp(dns_peer_t *peer, isc_dscp_t *dscpp) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(dscpp != NULL);
@@ -947,8 +891,7 @@ dns_peer_getquerydscp(dns_peer_t *peer, isc_dscp_t *dscpp)
}
isc_result_t
dns_peer_setednsversion(dns_peer_t *peer, uint8_t ednsversion)
{
dns_peer_setednsversion(dns_peer_t *peer, uint8_t ednsversion) {
REQUIRE(DNS_PEER_VALID(peer));
peer->ednsversion = ednsversion;
@@ -958,8 +901,7 @@ dns_peer_setednsversion(dns_peer_t *peer, uint8_t ednsversion)
}
isc_result_t
dns_peer_getednsversion(dns_peer_t *peer, uint8_t *ednsversion)
{
dns_peer_getednsversion(dns_peer_t *peer, uint8_t *ednsversion) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(ednsversion != NULL);