unbound 0.1
listen_port Struct Reference

Single linked list to store shared ports that have been opened for use by all threads. More...

#include <listen_dnsport.h>

Data Fields

struct listen_port * next
 next in list
int fd
 file descriptor, open and ready for use
enum listen_type ftype
 type of file descriptor, udp or tcp
int pp2_enabled
 if the port should support PROXYv2
struct unbound_socket * socket
 fill in unbound_socket structure for every opened socket at Unbound startup

Detailed Description

Single linked list to store shared ports that have been opened for use by all threads.

Field Documentation

◆ next

◆ fd

int listen_port::fd

file descriptor, open and ready for use

Referenced by add_open(), daemon_remote_open_accept(), listen_create(), listening_ports_free(), and port_insert().

◆ ftype

enum listen_type listen_port::ftype

type of file descriptor, udp or tcp

Referenced by listen_create(), and port_insert().

◆ pp2_enabled

int listen_port::pp2_enabled

if the port should support PROXYv2

Referenced by listen_create(), and port_insert().

◆ socket

struct unbound_socket* listen_port::socket

fill in unbound_socket structure for every opened socket at Unbound startup

Referenced by listen_create(), listening_ports_free(), port_insert(), and setup_acl_for_ports().


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