shared_ports
shared_ports_delete(w->shared_ports);
if(!(w->shared_ports = shared_ports_create(cfg->out_ifs,
cfg->tcp_auth_query_timeout, w->shared_ports);
struct shared_ports;
struct shared_ports* shared_ports;
shared_ports_return_port(outnet->shared_ports, pif->shpif, pc->number);
struct shared_ports* shp)
int tcp_auth_query_timeout, struct shared_ports* shared_ports)
outnet->shared_ports = shared_ports;
num_ports, outnet->shared_ports)) {
num_ports, outnet->shared_ports)) {
num_ports, outnet->shared_ports)){
num_ports, outnet->shared_ports)){
if(!shared_ports_fetch_random(outnet->shared_ports,
shared_ports_return_port(outnet->shared_ports,
outnet->shared_ports,
shared_ports_return_port(outnet->shared_ports, pif->shpif,
if(!shared_ports_fetch_random(outnet->shared_ports,
shared_ports_return_port(outnet->shared_ports,
static int shared_ports_alloc_ifs(struct shared_ports* shp, char** ifs,
struct shared_ports* shared_ports_create(char** ifs, int num_ifs, int do_ip4,
struct shared_ports* shp = calloc(1, sizeof(*shp));
void shared_ports_delete(struct shared_ports* shp)
struct shared_ports_if* shared_ports_find_if(struct shared_ports* shp,
int shared_ports_fetch_random(struct shared_ports* shp,
void shared_ports_return_port(struct shared_ports* shp,
struct shared_ports* shared_ports;
int tcp_auth_query_timeout, struct shared_ports* shared_ports);
struct shared_ports;
struct shared_ports* shared_ports_create(char** ifs, int num_ifs, int do_ip4,
void shared_ports_delete(struct shared_ports* shp);
struct shared_ports_if* shared_ports_find_if(struct shared_ports* shp,
int shared_ports_fetch_random(struct shared_ports* shp,
void shared_ports_return_port(struct shared_ports* shp,
shared_ports_delete(daemon->shared_ports);
daemon->shared_ports = NULL;
if(!(daemon->shared_ports = shared_ports_create(daemon->cfg->out_ifs,
struct shared_ports* shared_ports;
struct shared_ports;
cfg->tcp_auth_query_timeout, worker->daemon->shared_ports);
shared_ports_delete(w->shared_ports);
if(!(w->shared_ports = shared_ports_create(cfg->out_ifs,
cfg->tcp_auth_query_timeout, w->shared_ports);
struct shared_ports;
struct shared_ports* shared_ports;
shared_ports_return_port(outnet->shared_ports, pif->shpif, pc->number);
struct shared_ports* shp)
int tcp_auth_query_timeout, struct shared_ports* shared_ports)
outnet->shared_ports = shared_ports;
num_ports, outnet->shared_ports)) {
num_ports, outnet->shared_ports)) {
num_ports, outnet->shared_ports)){
num_ports, outnet->shared_ports)){
if(!shared_ports_fetch_random(outnet->shared_ports,
shared_ports_return_port(outnet->shared_ports,
outnet->shared_ports,
shared_ports_return_port(outnet->shared_ports, pif->shpif,
if(!shared_ports_fetch_random(outnet->shared_ports,
shared_ports_return_port(outnet->shared_ports,
static int shared_ports_alloc_ifs(struct shared_ports* shp, char** ifs,
struct shared_ports* shared_ports_create(char** ifs, int num_ifs, int do_ip4,
struct shared_ports* shp = calloc(1, sizeof(*shp));
void shared_ports_delete(struct shared_ports* shp)
struct shared_ports_if* shared_ports_find_if(struct shared_ports* shp,
int shared_ports_fetch_random(struct shared_ports* shp,
void shared_ports_return_port(struct shared_ports* shp,
struct shared_ports* shared_ports;
int tcp_auth_query_timeout, struct shared_ports* shared_ports);
struct shared_ports;
struct shared_ports* shared_ports_create(char** ifs, int num_ifs, int do_ip4,
void shared_ports_delete(struct shared_ports* shp);
struct shared_ports_if* shared_ports_find_if(struct shared_ports* shp,
int shared_ports_fetch_random(struct shared_ports* shp,
void shared_ports_return_port(struct shared_ports* shp,
struct shared_ports* ATTR_UNUSED(shared_ports))
struct shared_ports* shared_ports_create(char** ATTR_UNUSED(ifs),
return calloc(1, sizeof(struct shared_ports));
void shared_ports_delete(struct shared_ports* shp)
struct shared_ports* shp;
struct shared_ports* shp;