]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Move structure declarations from dns/peer.h into peer.c
authorMark Andrews <marka@isc.org>
Thu, 19 Mar 2020 22:53:32 +0000 (09:53 +1100)
committerMark Andrews <marka@isc.org>
Mon, 20 Apr 2020 08:59:09 +0000 (08:59 +0000)
lib/dns/include/dns/peer.h
lib/dns/peer.c

index 03185cf0fb5f658442840ca315158e8fffe802ae..12e86b7640c59052956ac7c209d044cacd0e1c7d 100644 (file)
 #define DNS_PEERLIST_VALID(ptr) ISC_MAGIC_VALID(ptr, DNS_PEERLIST_MAGIC)
 #define DNS_PEER_VALID(ptr)    ISC_MAGIC_VALID(ptr, DNS_PEER_MAGIC)
 
-/***
- *** Types
- ***/
-
-struct dns_peerlist {
-       unsigned int   magic;
-       isc_refcount_t refs;
-
-       isc_mem_t *mem;
-
-       ISC_LIST(dns_peer_t) elements;
-};
-
-struct dns_peer {
-       unsigned int   magic;
-       isc_refcount_t refs;
-
-       isc_mem_t *mem;
-
-       isc_netaddr_t         address;
-       unsigned int          prefixlen;
-       bool                  bogus;
-       dns_transfer_format_t transfer_format;
-       uint32_t              transfers;
-       bool                  support_ixfr;
-       bool                  provide_ixfr;
-       bool                  request_ixfr;
-       bool                  support_edns;
-       bool                  request_nsid;
-       bool                  send_cookie;
-       bool                  request_expire;
-       bool                  force_tcp;
-       bool                  tcp_keepalive;
-       dns_name_t *          key;
-       isc_sockaddr_t *      transfer_source;
-       isc_dscp_t            transfer_dscp;
-       isc_sockaddr_t *      notify_source;
-       isc_dscp_t            notify_dscp;
-       isc_sockaddr_t *      query_source;
-       isc_dscp_t            query_dscp;
-       uint16_t              udpsize;     /* receive size */
-       uint16_t              maxudp;      /* transmit size */
-       uint16_t              padding;     /* pad block size */
-       uint8_t               ednsversion; /* edns version */
-
-       uint32_t bitflags;
-
-       ISC_LINK(dns_peer_t) next;
-};
-
 /***
  *** Functions
  ***/
index c78fab27f6e9fdd789f9809b13bded0592c0b5b3..3f22b51d7c9d8df9b9e5824e3575a1fe192ff307 100644 (file)
 #include <dns/name.h>
 #include <dns/peer.h>
 
+/***
+ *** Types
+ ***/
+
+struct dns_peerlist {
+       unsigned int magic;
+       isc_refcount_t refs;
+
+       isc_mem_t *mem;
+
+       ISC_LIST(dns_peer_t) elements;
+};
+
+struct dns_peer {
+       unsigned int magic;
+       isc_refcount_t refs;
+
+       isc_mem_t *mem;
+
+       isc_netaddr_t address;
+       unsigned int prefixlen;
+       bool bogus;
+       dns_transfer_format_t transfer_format;
+       uint32_t transfers;
+       bool support_ixfr;
+       bool provide_ixfr;
+       bool request_ixfr;
+       bool support_edns;
+       bool request_nsid;
+       bool send_cookie;
+       bool request_expire;
+       bool force_tcp;
+       bool tcp_keepalive;
+       bool check_axfr_id;
+       dns_name_t *key;
+       isc_sockaddr_t *transfer_source;
+       isc_dscp_t transfer_dscp;
+       isc_sockaddr_t *notify_source;
+       isc_dscp_t notify_dscp;
+       isc_sockaddr_t *query_source;
+       isc_dscp_t query_dscp;
+       uint16_t udpsize;    /* receive size */
+       uint16_t maxudp;     /* transmit size */
+       uint16_t padding;    /* pad block size */
+       uint8_t ednsversion; /* edns version */
+
+       uint32_t bitflags;
+
+       ISC_LINK(dns_peer_t) next;
+};
+
 /*%
  * Bit positions in the dns_peer_t structure flags field
  */