port_if Struct Reference

Outgoing interface. More...

#include <outside_network.h>


Data Fields

struct sockaddr_storage addr
 address ready to allocate new socket (except port no).
socklen_t addrlen
 length of addr field
int * avail_ports
 the available ports array.
int avail_total
 the total number of available ports (size of the array)
struct port_comm ** out
 array of the commpoints currently in use.
int maxout
 max number of fds, size of out array
int inuse
 number of commpoints (and thus also ports) in use


Detailed Description

Outgoing interface.

Ports available and currently used are tracked per interface


Field Documentation

struct sockaddr_storage port_if::addr [read]

address ready to allocate new socket (except port no).

Referenced by select_ifport(), and setup_if().

the available ports array.

These are unused. Only the first total-inuse part is filled.

Referenced by outside_network_delete(), portcomm_loweruse(), select_ifport(), and setup_if().

struct port_comm** port_if::out [read]

array of the commpoints currently in use.

allocated for max number of fds, first part in use.

Referenced by if_get_mem(), outside_network_delete(), portcomm_loweruse(), select_ifport(), and setup_if().


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

Generated on Thu Mar 26 09:45:03 2009 for unbound by  doxygen 1.5.8