outside_network Struct Reference

Send queries to outside servers and wait for answers from servers. More...

#include <outside_network.h>


Data Fields

struct comm_basebase
 Base for select calls.
uint32_t * now_secs
 pointer to time in seconds
struct timeval * now_tv
 pointer to time in microseconds
ldns_buffer * udp_buff
 buffer shared by UDP connections, since there is only one datagram at any time.
size_t svcd_overhead
 serviced_callbacks malloc overhead when processing multiple identical serviced queries to the same server.
int use_caps_for_id
 use x20 bits to encode additional ID random bits
struct port_communused_fds
 linked list of available commpoints, unused file descriptors, for use as outgoing UDP ports.
struct port_ifip4_ifs
 array of outgoing IP4 interfaces
int num_ip4
 number of outgoing IP4 interfaces
struct port_ifip6_ifs
 array of outgoing IP6 interfaces
int num_ip6
 number of outgoing IP6 interfaces
struct pendingudp_wait_first
 pending udp queries waiting to be sent out, waiting for fd
struct pendingudp_wait_last
 last pending udp query in list
rbtree_tpending
 pending udp answers.
rbtree_tserviced
 serviced queries, sorted by qbuf, addr, dnssec
struct infra_cacheinfra
 host cache, pointer but not owned by outnet.
struct ub_randstaternd
 where to get random numbers
struct pending_tcp ** tcp_conns
 Array of tcp pending used for outgoing TCP connections.
size_t num_tcp
 number of tcp communication points.
struct pending_tcptcp_free
 list of tcp comm points that are free for use
struct waiting_tcptcp_wait_first
 list of tcp queries waiting for a buffer
struct waiting_tcptcp_wait_last
 last of waiting query list


Detailed Description

Send queries to outside servers and wait for answers from servers.

Contains answer-listen sockets.


Field Documentation

buffer shared by UDP connections, since there is only one datagram at any time.

Referenced by handle_newq(), libworker_fg(), libworker_send_query(), outnet_get_mem(), outnet_send_wait_udp(), outside_network_create(), outside_network_delete(), setup_qinfo_edns(), and worker_send_query().

serviced_callbacks malloc overhead when processing multiple identical serviced queries to the same server.

Referenced by outnet_get_mem(), outside_network_create(), and serviced_callbacks().

linked list of available commpoints, unused file descriptors, for use as outgoing UDP ports.

cp.fd=-1 in them.

Referenced by outnet_get_mem(), outnet_send_wait_udp(), outside_network_create(), outside_network_delete(), pending_udp_query(), portcomm_loweruse(), and select_ifport().

host cache, pointer but not owned by outnet.

Referenced by outside_network_create(), serviced_tcp_callback(), serviced_udp_callback(), and serviced_udp_send().

Array of tcp pending used for outgoing TCP connections.

Each can be used to establish a TCP connection with a server. The file descriptors are -1 if they are free, and need to be opened for the tcp connection. Can be used for ip4 and ip6.

Referenced by create_pending_tcp(), outnet_get_mem(), and outside_network_delete().

number of tcp communication points.

Referenced by create_pending_tcp(), outnet_get_mem(), outside_network_create(), and outside_network_delete().


The documentation for this struct was generated from the following file:

Generated on Sun Sep 21 16:23:31 2008 for unbound by  doxygen 1.5.6