NF_TCP_CONN_INFO

TCP connection properties.

typedef struct _NF_TCP_CONN_INFO
{
	unsigned long	filteringFlag;	// See NF_FILTERING_FLAG
	unsigned long	processId;		// Process identifier
	unsigned char	direction;		// See NF_DIRECTION
	unsigned short	ip_family;		// AF_INET for IPv4 and AF_INET6 for IPv6
	
	// Local address as sockaddr_in for IPv4 and sockaddr_in6 for IPv6
	unsigned char	localAddress[NF_MAX_ADDRESS_LENGTH]; 
	
	// Remote address as sockaddr_in for IPv4 and sockaddr_in6 for IPv6
	unsigned char	remoteAddress[NF_MAX_ADDRESS_LENGTH];
} NF_TCP_CONN_INFO, *PNF_TCP_CONN_INFO;

Members

filteringFlag
A value from NF_FILTERING_FLAG enumeration.
processId
Process identifier.
direction
The direction of network activity. Specify NF_D_IN for the inbound TCP connections and UDP datagrams, NF_D_OUT for the outbound TCP connections and UDP datagrams. Zero or NF_D_BOTH mean any direction.
ip_family
Describes the family of IP addresses (AF_INET for IPv4 and AF_INET6 for IPv6).
localAddress
Source IPv4 or IPv6 address as sockaddr_in or sockaddr_in6.
remoteAddress
Destination IPv4 or IPv6 address as sockaddr_in or sockaddr_in6.
 

Requirements

Header nfapi.h