unbound 0.1
shared_ports_if Struct Reference

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.

Detailed Description

Shared ports for an interface.

Field Documentation

◆ addr

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

◆ addrlen

socklen_t shared_ports_if::addrlen

length of addr field

Referenced by shared_ports_find_if(), and shared_ports_setup_if().

◆ pfxlen

int shared_ports_if::pfxlen

if a netblock, the prefix

Referenced by shared_ports_find_if(), and shared_ports_setup_if().

◆ avail_ports

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

◆ avail_total

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

◆ inuse

int shared_ports_if::inuse

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