Changeset 17262 in vbox for trunk/src/VBox
- Timestamp:
- Mar 3, 2009 9:29:19 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r17222 r17262 23 23 #include <iprt/req.h> 24 24 #include "ip_icmp.h" 25 #ifdef VBOX_WITH_SLIRP_DNS_PROXY 26 # include "dnsproxy/dnsproxy.h" 27 #endif 25 28 26 29 /** Number of DHCP clients supported by NAT. */ … … 177 180 int fIcmp; 178 181 #endif 182 #ifdef VBOX_WITH_SLIRP_DNS_PROXY 183 /* from dnsproxy/dnsproxy.h*/ 184 unsigned int authoritative_port; 185 unsigned int authoritative_timeout; 186 unsigned int recursive_port; 187 unsigned int recursive_timeout; 188 unsigned int stats_timeout; 189 unsigned int port; 190 191 unsigned long active_queries; 192 unsigned long all_queries; 193 unsigned long authoritative_queries; 194 unsigned long recursive_queries; 195 unsigned long removed_queries; 196 unsigned long dropped_queries; 197 unsigned long answered_queries; 198 unsigned long dropped_answers; 199 unsigned long late_answers; 200 unsigned long hash_collisions; 201 /*dnsproxy/dnsproxy.c*/ 202 unsigned short queryid; 203 struct sockaddr_in authoritative_addr; 204 struct sockaddr_in recursive_addr; 205 int sock_query; 206 int sock_answer; 207 /* dnsproxy/hash.c */ 208 #define HASHSIZE 10 209 #define HASH(id) (id & ((1 << HASHSIZE) - 1)) 210 struct request *request_hash[1 << HASHSIZE]; 211 #endif 179 212 STAMPROFILE StatFill; 180 213 STAMPROFILE StatPoll; … … 591 624 #define UDP_DETACH(data, so, so_next) DO_UDP_DETACH((data), (so), (so_next)) 592 625 626 #ifdef VBOX_WITH_SLIRP_DNS_PROXY 627 /* dnsproxy/dnsproxy.c */ 628 # define authoritative_port pData->authoritative_port 629 # define authoritative_timeout pData->authoritative_timeout 630 # define recursive_port pData->recursive_port 631 # define recursive_timeout pData->recursive_timeout 632 # define stats_timeout pData->stats_timeout 633 /* dnsproxy/hash.c */ 634 # define dns_port pData->port 635 # define request_hash pData->request_hash 636 # define hash_collisions pData->hash_collisions 637 # define active_queries pData->active_queries 638 # define all_queries pData->all_queries 639 # define authoritative_queries pData->authoritative_queries 640 # define recursive_queries pData->recursive_queries 641 # define removed_queries pData->removed_queries 642 # define dropped_queries pData->dropped_queries 643 # define answered_queries pData->answered_queries 644 # define dropped_answers pData->dropped_answers 645 # define late_answers pData->late_answers 646 647 /* dnsproxy/dnsproxy.c */ 648 # define queryid pData->queryid 649 # define authoritative_addr pData->authoritative_addr 650 # define recursive_addr pData->recursive_addr 651 # define sock_query pData->sock_query 652 # define sock_answer pData->sock_answer 653 #endif 654 593 655 #endif /* !_slirp_state_h_ */
Note:
See TracChangeset
for help on using the changeset viewer.