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.
| 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().