Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/dns
File: peer.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef DNS_PEER_H
[12] Fix | Delete
#define DNS_PEER_H 1
[13] Fix | Delete
[14] Fix | Delete
/*****
[15] Fix | Delete
***** Module Info
[16] Fix | Delete
*****/
[17] Fix | Delete
[18] Fix | Delete
/*! \file dns/peer.h
[19] Fix | Delete
* \brief
[20] Fix | Delete
* Data structures for peers (e.g. a 'server' config file statement)
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
/***
[24] Fix | Delete
*** Imports
[25] Fix | Delete
***/
[26] Fix | Delete
[27] Fix | Delete
#include <inttypes.h>
[28] Fix | Delete
#include <stdbool.h>
[29] Fix | Delete
[30] Fix | Delete
#include <isc/lang.h>
[31] Fix | Delete
#include <isc/magic.h>
[32] Fix | Delete
#include <isc/netaddr.h>
[33] Fix | Delete
[34] Fix | Delete
#include <dns/types.h>
[35] Fix | Delete
[36] Fix | Delete
#define DNS_PEERLIST_MAGIC ISC_MAGIC('s','e','R','L')
[37] Fix | Delete
#define DNS_PEER_MAGIC ISC_MAGIC('S','E','r','v')
[38] Fix | Delete
[39] Fix | Delete
#define DNS_PEERLIST_VALID(ptr) ISC_MAGIC_VALID(ptr, DNS_PEERLIST_MAGIC)
[40] Fix | Delete
#define DNS_PEER_VALID(ptr) ISC_MAGIC_VALID(ptr, DNS_PEER_MAGIC)
[41] Fix | Delete
[42] Fix | Delete
/***
[43] Fix | Delete
*** Types
[44] Fix | Delete
***/
[45] Fix | Delete
[46] Fix | Delete
struct dns_peerlist {
[47] Fix | Delete
unsigned int magic;
[48] Fix | Delete
uint32_t refs;
[49] Fix | Delete
[50] Fix | Delete
isc_mem_t *mem;
[51] Fix | Delete
[52] Fix | Delete
ISC_LIST(dns_peer_t) elements;
[53] Fix | Delete
};
[54] Fix | Delete
[55] Fix | Delete
struct dns_peer {
[56] Fix | Delete
unsigned int magic;
[57] Fix | Delete
uint32_t refs;
[58] Fix | Delete
[59] Fix | Delete
isc_mem_t *mem;
[60] Fix | Delete
[61] Fix | Delete
isc_netaddr_t address;
[62] Fix | Delete
unsigned int prefixlen;
[63] Fix | Delete
bool bogus;
[64] Fix | Delete
dns_transfer_format_t transfer_format;
[65] Fix | Delete
uint32_t transfers;
[66] Fix | Delete
bool support_ixfr;
[67] Fix | Delete
bool provide_ixfr;
[68] Fix | Delete
bool request_ixfr;
[69] Fix | Delete
bool support_edns;
[70] Fix | Delete
bool request_nsid;
[71] Fix | Delete
bool send_cookie;
[72] Fix | Delete
bool request_expire;
[73] Fix | Delete
bool force_tcp;
[74] Fix | Delete
dns_name_t *key;
[75] Fix | Delete
isc_sockaddr_t *transfer_source;
[76] Fix | Delete
isc_dscp_t transfer_dscp;
[77] Fix | Delete
isc_sockaddr_t *notify_source;
[78] Fix | Delete
isc_dscp_t notify_dscp;
[79] Fix | Delete
isc_sockaddr_t *query_source;
[80] Fix | Delete
isc_dscp_t query_dscp;
[81] Fix | Delete
uint16_t udpsize; /* receive size */
[82] Fix | Delete
uint16_t maxudp; /* transmit size */
[83] Fix | Delete
uint8_t ednsversion; /* edns version */
[84] Fix | Delete
[85] Fix | Delete
uint32_t bitflags;
[86] Fix | Delete
[87] Fix | Delete
ISC_LINK(dns_peer_t) next;
[88] Fix | Delete
};
[89] Fix | Delete
[90] Fix | Delete
/***
[91] Fix | Delete
*** Functions
[92] Fix | Delete
***/
[93] Fix | Delete
[94] Fix | Delete
ISC_LANG_BEGINDECLS
[95] Fix | Delete
[96] Fix | Delete
isc_result_t
[97] Fix | Delete
dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list);
[98] Fix | Delete
[99] Fix | Delete
void
[100] Fix | Delete
dns_peerlist_attach(dns_peerlist_t *source, dns_peerlist_t **target);
[101] Fix | Delete
[102] Fix | Delete
void
[103] Fix | Delete
dns_peerlist_detach(dns_peerlist_t **list);
[104] Fix | Delete
[105] Fix | Delete
/*
[106] Fix | Delete
* After return caller still holds a reference to peer.
[107] Fix | Delete
*/
[108] Fix | Delete
void
[109] Fix | Delete
dns_peerlist_addpeer(dns_peerlist_t *peers, dns_peer_t *peer);
[110] Fix | Delete
[111] Fix | Delete
/*
[112] Fix | Delete
* Ditto. */
[113] Fix | Delete
isc_result_t
[114] Fix | Delete
dns_peerlist_peerbyaddr(dns_peerlist_t *peers, isc_netaddr_t *addr,
[115] Fix | Delete
dns_peer_t **retval);
[116] Fix | Delete
[117] Fix | Delete
/*
[118] Fix | Delete
* What he said.
[119] Fix | Delete
*/
[120] Fix | Delete
isc_result_t
[121] Fix | Delete
dns_peerlist_currpeer(dns_peerlist_t *peers, dns_peer_t **retval);
[122] Fix | Delete
[123] Fix | Delete
isc_result_t
[124] Fix | Delete
dns_peer_new(isc_mem_t *mem, isc_netaddr_t *ipaddr, dns_peer_t **peer);
[125] Fix | Delete
[126] Fix | Delete
isc_result_t
[127] Fix | Delete
dns_peer_newprefix(isc_mem_t *mem, isc_netaddr_t *ipaddr,
[128] Fix | Delete
unsigned int prefixlen, dns_peer_t **peer);
[129] Fix | Delete
[130] Fix | Delete
void
[131] Fix | Delete
dns_peer_attach(dns_peer_t *source, dns_peer_t **target);
[132] Fix | Delete
[133] Fix | Delete
void
[134] Fix | Delete
dns_peer_detach(dns_peer_t **list);
[135] Fix | Delete
[136] Fix | Delete
isc_result_t
[137] Fix | Delete
dns_peer_setbogus(dns_peer_t *peer, bool newval);
[138] Fix | Delete
[139] Fix | Delete
isc_result_t
[140] Fix | Delete
dns_peer_getbogus(dns_peer_t *peer, bool *retval);
[141] Fix | Delete
[142] Fix | Delete
isc_result_t
[143] Fix | Delete
dns_peer_setrequestixfr(dns_peer_t *peer, bool newval);
[144] Fix | Delete
[145] Fix | Delete
isc_result_t
[146] Fix | Delete
dns_peer_getrequestixfr(dns_peer_t *peer, bool *retval);
[147] Fix | Delete
[148] Fix | Delete
isc_result_t
[149] Fix | Delete
dns_peer_setprovideixfr(dns_peer_t *peer, bool newval);
[150] Fix | Delete
[151] Fix | Delete
isc_result_t
[152] Fix | Delete
dns_peer_getprovideixfr(dns_peer_t *peer, bool *retval);
[153] Fix | Delete
[154] Fix | Delete
isc_result_t
[155] Fix | Delete
dns_peer_setrequestnsid(dns_peer_t *peer, bool newval);
[156] Fix | Delete
[157] Fix | Delete
isc_result_t
[158] Fix | Delete
dns_peer_getrequestnsid(dns_peer_t *peer, bool *retval);
[159] Fix | Delete
[160] Fix | Delete
isc_result_t
[161] Fix | Delete
dns_peer_setsendcookie(dns_peer_t *peer, bool newval);
[162] Fix | Delete
[163] Fix | Delete
isc_result_t
[164] Fix | Delete
dns_peer_getsendcookie(dns_peer_t *peer, bool *retval);
[165] Fix | Delete
[166] Fix | Delete
isc_result_t
[167] Fix | Delete
dns_peer_setrequestexpire(dns_peer_t *peer, bool newval);
[168] Fix | Delete
[169] Fix | Delete
isc_result_t
[170] Fix | Delete
dns_peer_getrequestexpire(dns_peer_t *peer, bool *retval);
[171] Fix | Delete
[172] Fix | Delete
isc_result_t
[173] Fix | Delete
dns_peer_setsupportedns(dns_peer_t *peer, bool newval);
[174] Fix | Delete
[175] Fix | Delete
isc_result_t
[176] Fix | Delete
dns_peer_getforcetcp(dns_peer_t *peer, bool *retval);
[177] Fix | Delete
[178] Fix | Delete
isc_result_t
[179] Fix | Delete
dns_peer_setforcetcp(dns_peer_t *peer, bool newval);
[180] Fix | Delete
[181] Fix | Delete
isc_result_t
[182] Fix | Delete
dns_peer_getsupportedns(dns_peer_t *peer, bool *retval);
[183] Fix | Delete
[184] Fix | Delete
isc_result_t
[185] Fix | Delete
dns_peer_settransfers(dns_peer_t *peer, uint32_t newval);
[186] Fix | Delete
[187] Fix | Delete
isc_result_t
[188] Fix | Delete
dns_peer_gettransfers(dns_peer_t *peer, uint32_t *retval);
[189] Fix | Delete
[190] Fix | Delete
isc_result_t
[191] Fix | Delete
dns_peer_settransferformat(dns_peer_t *peer, dns_transfer_format_t newval);
[192] Fix | Delete
[193] Fix | Delete
isc_result_t
[194] Fix | Delete
dns_peer_gettransferformat(dns_peer_t *peer, dns_transfer_format_t *retval);
[195] Fix | Delete
[196] Fix | Delete
isc_result_t
[197] Fix | Delete
dns_peer_setkeybycharp(dns_peer_t *peer, const char *keyval);
[198] Fix | Delete
[199] Fix | Delete
isc_result_t
[200] Fix | Delete
dns_peer_getkey(dns_peer_t *peer, dns_name_t **retval);
[201] Fix | Delete
[202] Fix | Delete
isc_result_t
[203] Fix | Delete
dns_peer_setkey(dns_peer_t *peer, dns_name_t **keyval);
[204] Fix | Delete
[205] Fix | Delete
isc_result_t
[206] Fix | Delete
dns_peer_settransfersource(dns_peer_t *peer,
[207] Fix | Delete
const isc_sockaddr_t *transfer_source);
[208] Fix | Delete
[209] Fix | Delete
isc_result_t
[210] Fix | Delete
dns_peer_gettransfersource(dns_peer_t *peer, isc_sockaddr_t *transfer_source);
[211] Fix | Delete
[212] Fix | Delete
isc_result_t
[213] Fix | Delete
dns_peer_setudpsize(dns_peer_t *peer, uint16_t udpsize);
[214] Fix | Delete
[215] Fix | Delete
isc_result_t
[216] Fix | Delete
dns_peer_getudpsize(dns_peer_t *peer, uint16_t *udpsize);
[217] Fix | Delete
[218] Fix | Delete
isc_result_t
[219] Fix | Delete
dns_peer_setmaxudp(dns_peer_t *peer, uint16_t maxudp);
[220] Fix | Delete
[221] Fix | Delete
isc_result_t
[222] Fix | Delete
dns_peer_getmaxudp(dns_peer_t *peer, uint16_t *maxudp);
[223] Fix | Delete
[224] Fix | Delete
isc_result_t
[225] Fix | Delete
dns_peer_setnotifysource(dns_peer_t *peer, const isc_sockaddr_t *notify_source);
[226] Fix | Delete
[227] Fix | Delete
isc_result_t
[228] Fix | Delete
dns_peer_getnotifysource(dns_peer_t *peer, isc_sockaddr_t *notify_source);
[229] Fix | Delete
[230] Fix | Delete
isc_result_t
[231] Fix | Delete
dns_peer_setquerysource(dns_peer_t *peer, const isc_sockaddr_t *query_source);
[232] Fix | Delete
[233] Fix | Delete
isc_result_t
[234] Fix | Delete
dns_peer_getquerysource(dns_peer_t *peer, isc_sockaddr_t *query_source);
[235] Fix | Delete
[236] Fix | Delete
isc_result_t
[237] Fix | Delete
dns_peer_setnotifydscp(dns_peer_t *peer, isc_dscp_t dscp);
[238] Fix | Delete
[239] Fix | Delete
isc_result_t
[240] Fix | Delete
dns_peer_getnotifydscp(dns_peer_t *peer, isc_dscp_t *dscpp);
[241] Fix | Delete
[242] Fix | Delete
isc_result_t
[243] Fix | Delete
dns_peer_settransferdscp(dns_peer_t *peer, isc_dscp_t dscp);
[244] Fix | Delete
[245] Fix | Delete
isc_result_t
[246] Fix | Delete
dns_peer_gettransferdscp(dns_peer_t *peer, isc_dscp_t *dscpp);
[247] Fix | Delete
[248] Fix | Delete
isc_result_t
[249] Fix | Delete
dns_peer_setquerydscp(dns_peer_t *peer, isc_dscp_t dscp);
[250] Fix | Delete
[251] Fix | Delete
isc_result_t
[252] Fix | Delete
dns_peer_getquerydscp(dns_peer_t *peer, isc_dscp_t *dscpp);
[253] Fix | Delete
[254] Fix | Delete
isc_result_t
[255] Fix | Delete
dns_peer_setednsversion(dns_peer_t *peer, uint8_t ednsversion);
[256] Fix | Delete
[257] Fix | Delete
isc_result_t
[258] Fix | Delete
dns_peer_getednsversion(dns_peer_t *peer, uint8_t *ednsversion);
[259] Fix | Delete
ISC_LANG_ENDDECLS
[260] Fix | Delete
[261] Fix | Delete
#endif /* DNS_PEER_H */
[262] Fix | Delete
[263] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function