Process Hacker
phnet.h File Reference
#include <inaddr.h>
#include <in6addr.h>

Go to the source code of this file.

Data Structures

struct  _PH_IP_ADDRESS
 
struct  _PH_IP_ENDPOINT
 

Macros

#define PH_IPV4_NETWORK_TYPE   0x1
 
#define PH_IPV6_NETWORK_TYPE   0x2
 
#define PH_NETWORK_TYPE_MASK   0x3
 
#define PH_TCP_PROTOCOL_TYPE   0x10
 
#define PH_UDP_PROTOCOL_TYPE   0x20
 
#define PH_PROTOCOL_TYPE_MASK   0x30
 
#define PH_NO_NETWORK_PROTOCOL   0x0
 
#define PH_TCP4_NETWORK_PROTOCOL   (PH_IPV4_NETWORK_TYPE | PH_TCP_PROTOCOL_TYPE)
 
#define PH_TCP6_NETWORK_PROTOCOL   (PH_IPV6_NETWORK_TYPE | PH_TCP_PROTOCOL_TYPE)
 
#define PH_UDP4_NETWORK_PROTOCOL   (PH_IPV4_NETWORK_TYPE | PH_UDP_PROTOCOL_TYPE)
 
#define PH_UDP6_NETWORK_PROTOCOL   (PH_IPV6_NETWORK_TYPE | PH_UDP_PROTOCOL_TYPE)
 

Typedefs

typedef struct _PH_IP_ADDRESS PH_IP_ADDRESS
 
typedef struct _PH_IP_ADDRESSPPH_IP_ADDRESS
 
typedef struct _PH_IP_ENDPOINT PH_IP_ENDPOINT
 
typedef struct _PH_IP_ENDPOINTPPH_IP_ENDPOINT
 

Functions

FORCEINLINE BOOLEAN PhEqualIpAddress (_In_ PPH_IP_ADDRESS Address1, _In_ PPH_IP_ADDRESS Address2)
 
FORCEINLINE ULONG PhHashIpAddress (_In_ PPH_IP_ADDRESS Address)
 
FORCEINLINE BOOLEAN PhIsNullIpAddress (_In_ PPH_IP_ADDRESS Address)
 
FORCEINLINE BOOLEAN PhEqualIpEndpoint (_In_ PPH_IP_ENDPOINT Endpoint1, _In_ PPH_IP_ENDPOINT Endpoint2)
 
FORCEINLINE ULONG PhHashIpEndpoint (_In_ PPH_IP_ENDPOINT Endpoint)
 

Macro Definition Documentation

#define PH_IPV4_NETWORK_TYPE   0x1

Definition at line 7 of file phnet.h.

#define PH_IPV6_NETWORK_TYPE   0x2

Definition at line 8 of file phnet.h.

#define PH_NETWORK_TYPE_MASK   0x3

Definition at line 9 of file phnet.h.

#define PH_NO_NETWORK_PROTOCOL   0x0

Definition at line 15 of file phnet.h.

#define PH_PROTOCOL_TYPE_MASK   0x30

Definition at line 13 of file phnet.h.

#define PH_TCP4_NETWORK_PROTOCOL   (PH_IPV4_NETWORK_TYPE | PH_TCP_PROTOCOL_TYPE)

Definition at line 16 of file phnet.h.

#define PH_TCP6_NETWORK_PROTOCOL   (PH_IPV6_NETWORK_TYPE | PH_TCP_PROTOCOL_TYPE)

Definition at line 17 of file phnet.h.

#define PH_TCP_PROTOCOL_TYPE   0x10

Definition at line 11 of file phnet.h.

#define PH_UDP4_NETWORK_PROTOCOL   (PH_IPV4_NETWORK_TYPE | PH_UDP_PROTOCOL_TYPE)

Definition at line 18 of file phnet.h.

#define PH_UDP6_NETWORK_PROTOCOL   (PH_IPV6_NETWORK_TYPE | PH_UDP_PROTOCOL_TYPE)

Definition at line 19 of file phnet.h.

#define PH_UDP_PROTOCOL_TYPE   0x20

Definition at line 12 of file phnet.h.

Typedef Documentation

typedef struct _PH_IP_ADDRESS PH_IP_ADDRESS
typedef struct _PH_IP_ADDRESS * PPH_IP_ADDRESS
typedef struct _PH_IP_ENDPOINT * PPH_IP_ENDPOINT

Function Documentation

FORCEINLINE BOOLEAN PhEqualIpAddress ( _In_ PPH_IP_ADDRESS  Address1,
_In_ PPH_IP_ADDRESS  Address2 
)

Definition at line 33 of file phnet.h.

FORCEINLINE BOOLEAN PhEqualIpEndpoint ( _In_ PPH_IP_ENDPOINT  Endpoint1,
_In_ PPH_IP_ENDPOINT  Endpoint2 
)

Definition at line 122 of file phnet.h.

FORCEINLINE ULONG PhHashIpAddress ( _In_ PPH_IP_ADDRESS  Address)

Definition at line 63 of file phnet.h.

FORCEINLINE ULONG PhHashIpEndpoint ( _In_ PPH_IP_ENDPOINT  Endpoint)

Definition at line 132 of file phnet.h.

FORCEINLINE BOOLEAN PhIsNullIpAddress ( _In_ PPH_IP_ADDRESS  Address)

Definition at line 89 of file phnet.h.