unbound 0.1
|
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 |
Outgoing interface.
Ports available and currently used are tracked per interface
struct sockaddr_storage port_if::addr |
address ready to allocate new socket (except port no).
Referenced by pick_outgoing_tcp(), select_ifport(), and setup_if().
int* port_if::avail_ports |
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 |
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().