NF_SRV_OPTIONS

The filtering options for local proxies.

typedef enum _NF_SRV_FLAGS
{
	NSF_NONE = 0,
	NSF_DONT_START_LOCAL_TCP_PROXY = 1,
	NSF_DONT_START_LOCAL_UDP_PROXY = 2,
	NSF_USE_REAL_UDP_RECV_ADDRESS = 4
} NF_SRV_FLAGS;

typedef struct _NF_SRV_OPTIONS
{
	unsigned int		flags;
	unsigned short		defaultProxyPort;
	unsigned int		proxyThreadCount;
} NF_SRV_OPTIONS, *PNF_SRV_OPTIONS;

Members

flags
A combination of NF_SRV_FLAGS flags. NSF_DONT_START_LOCAL_TCP_PROXY disables activating TCP local proxy. NSF_DONT_START_LOCAL_UDP_PROXY disables UDP proxy. NSF_USE_REAL_UDP_RECV_ADDRESS enables full cone NAT for UDP, with specifying real remote address for inbound UDP packets.
defaultProxyPort
Port number for binding the local proxies, in network byte order. If the number is zero, the default number 10080 is used for both TCP and UDP proxies. If the port number is occupied, the proxy tries to use incremented number in a loop 10 times.
proxyThreadCount
Number of worker threads for each proxy. When proxyThreadCount is zero, the proxy uses a number of logical processors.

Requirements

Header nfsrvapi.h