|
unbound 0.1
|
Shared ports for an 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 | pfxlen |
| if a netblock, the prefix | |
| int * | avail_ports |
| the available ports array. | |
| int | avail_total |
| the total number of available ports (size of the array) | |
| int | inuse |
| the number in use. | |
Shared ports for an interface.
| struct sockaddr_storage shared_ports_if::addr |
address ready to allocate new socket (except port no).
Referenced by shared_ports_find_if(), and shared_ports_setup_if().
| socklen_t shared_ports_if::addrlen |
length of addr field
Referenced by shared_ports_find_if(), and shared_ports_setup_if().
| int shared_ports_if::pfxlen |
if a netblock, the prefix
Referenced by shared_ports_find_if(), and shared_ports_setup_if().
| int* shared_ports_if::avail_ports |
the available ports array.
These are unused. Only the first total-inuse part is filled.
Referenced by pif_list_contains(), shared_ports_fetch_random(), shared_ports_if_delete(), shared_ports_return_port(), and shared_ports_setup_if().
| int shared_ports_if::avail_total |
the total number of available ports (size of the array)
Referenced by pif_list_contains(), shared_ports_fetch_random(), shared_ports_return_port(), and shared_ports_setup_if().
| int shared_ports_if::inuse |
the number in use.
Referenced by pif_list_contains(), shared_ports_fetch_random(), shared_ports_return_port(), and shared_ports_setup_if().