ReactOS 0.4.16-dev-136-g52192f1
pfhook.h File Reference

Go to the source code of this file.

Classes

struct  _PF_SET_EXTENSION_HOOK_INFO
 

Macros

#define DD_IPFLTRDRVR_DEVICE_NAME   L"\\Device\\IPFILTERDRIVER"
 
#define INVALID_PF_IF_INDEX   0xffffffff
 
#define ZERO_PF_IP_ADDR   0
 
#define FSCTL_IPFLTRDRVR_BASE   FILE_DEVICE_NETWORK
 
#define _IPFLTRDRVR_CTL_CODE(function, method, access)    CTL_CODE(FSCTL_IPFLTRDRVR_BASE, function, method, access)
 
#define IOCTL_PF_SET_EXTENSION_POINTER    _IPFLTRDRVR_CTL_CODE(22, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 

Typedefs

typedef ULONG IPAddr
 
typedef enum _PF_FORWARD_ACTION PF_FORWARD_ACTION
 
typedef PF_FORWARD_ACTION(NTAPIPacketFilterExtensionPtr) (IN unsigned char *PacketHeader, IN unsigned char *Packet, IN unsigned int PacketLength, IN unsigned int RecvInterfaceIndex, IN unsigned int SendInterfaceIndex, IN IPAddr RecvLinkNextHop, IN IPAddr SendLinkNextHop)
 
typedef struct _PF_SET_EXTENSION_HOOK_INFO PF_SET_EXTENSION_HOOK_INFO
 
typedef struct _PF_SET_EXTENSION_HOOK_INFOPPF_SET_EXTENSION_HOOK_INFO
 

Enumerations

enum  _PF_FORWARD_ACTION { PF_FORWARD = 0 , PF_DROP = 1 , PF_PASS = 2 , PF_ICMP_ON_DROP = 3 }
 

Macro Definition Documentation

◆ _IPFLTRDRVR_CTL_CODE

#define _IPFLTRDRVR_CTL_CODE (   function,
  method,
  access 
)     CTL_CODE(FSCTL_IPFLTRDRVR_BASE, function, method, access)

Definition at line 60 of file pfhook.h.

◆ DD_IPFLTRDRVR_DEVICE_NAME

#define DD_IPFLTRDRVR_DEVICE_NAME   L"\\Device\\IPFILTERDRIVER"

Definition at line 30 of file pfhook.h.

◆ FSCTL_IPFLTRDRVR_BASE

#define FSCTL_IPFLTRDRVR_BASE   FILE_DEVICE_NETWORK

Definition at line 58 of file pfhook.h.

◆ INVALID_PF_IF_INDEX

#define INVALID_PF_IF_INDEX   0xffffffff

Definition at line 32 of file pfhook.h.

◆ IOCTL_PF_SET_EXTENSION_POINTER

#define IOCTL_PF_SET_EXTENSION_POINTER    _IPFLTRDRVR_CTL_CODE(22, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 63 of file pfhook.h.

◆ ZERO_PF_IP_ADDR

#define ZERO_PF_IP_ADDR   0

Definition at line 33 of file pfhook.h.

Typedef Documentation

◆ IPAddr

typedef ULONG IPAddr

Definition at line 35 of file pfhook.h.

◆ PacketFilterExtensionPtr

typedef PF_FORWARD_ACTION(NTAPI * PacketFilterExtensionPtr) (IN unsigned char *PacketHeader, IN unsigned char *Packet, IN unsigned int PacketLength, IN unsigned int RecvInterfaceIndex, IN unsigned int SendInterfaceIndex, IN IPAddr RecvLinkNextHop, IN IPAddr SendLinkNextHop)

Definition at line 44 of file pfhook.h.

◆ PF_FORWARD_ACTION

◆ PF_SET_EXTENSION_HOOK_INFO

◆ PPF_SET_EXTENSION_HOOK_INFO

Enumeration Type Documentation

◆ _PF_FORWARD_ACTION

Enumerator
PF_FORWARD 
PF_DROP 
PF_PASS 
PF_ICMP_ON_DROP 

Definition at line 37 of file pfhook.h.

37 {
38 PF_FORWARD = 0,
39 PF_DROP = 1,
40 PF_PASS = 2,
@ PF_ICMP_ON_DROP
Definition: pfhook.h:41
@ PF_DROP
Definition: pfhook.h:39
@ PF_PASS
Definition: pfhook.h:40
@ PF_FORWARD
Definition: pfhook.h:38
enum _PF_FORWARD_ACTION PF_FORWARD_ACTION