iphookKrnl.h
资源名称:ipfilter.zip [点击查看]
上传用户:nnxzhh
上传日期:2007-01-11
资源大小:742k
文件大小:2k
源码类别:
防火墙与安全工具
开发平台:
WINDOWS
- ///////////////////////////////////////////////////////////////////////////////
- //
- // (C) Copyright 1999 - 2000 Mark Roddy
- // All Rights Reserved
- //
- // Hollis Technology Solutions
- // 94 Dow Road
- // Hollis, NH 03049
- // info@hollistech.com
- //
- // Synopsis:
- //
- //
- // Version Information:
- //
- // $Header: /iphook/sys/driver/iphookKrnl.h 2 1/27/00 10:35p Markr $
- //
- ///////////////////////////////////////////////////////////////////////////////
- #pragma once
- #include "htscpp.h"
- #include "HtsGLib.h"
- #include "IpHook.h"
- #include "ntddndis.h"
- #include "pfHook.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- void
- IpHookUnload(PDRIVER_OBJECT DriverObject);
- NTSTATUS
- IpHookCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp);
- NTSTATUS
- IpHookClose(PDEVICE_OBJECT DeviceObject, PIRP Irp);
- NTSTATUS
- IpHookDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp);
- PF_FORWARD_ACTION
- IpHookFilter(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);
- #ifdef __cplusplus
- }
- #endif
- //
- // device object extension definitions
- // well we don't actually have a device extension as
- // the hook function is not device based.
- //
- extern "C"
- VOID
- GlobalCancel(
- IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp
- );
- #include "IpHookGlobal.h"
- extern IP_HOOK_GLOBAL_DATA ipGlobal;
- ///////////////////////////////////////////////////////////////////////////////
- //
- // Change History Log
- //
- // $Log: /iphook/sys/driver/iphookKrnl.h $
- //
- // 2 1/27/00 10:35p Markr
- // Prepare to release!
- //
- ///////////////////////////////////////////////////////////////////////////////