Check.h
上传用户:yitai_qhd
上传日期:2008-04-24
资源大小:31k
文件大小:1k
- #ifndef _CHECK_H
- #define _CHECK_H
- #include "packet.h"
- #include "windef.h"
- int CheckTcp(
- PIP_HEADER pIpHeader,
- PTCP_HEADER pTcpHeader,
- BOOLEAN IsSend,
- UINT LookaheadBufferSize,
- PVOID pVoid
- );
- int CheckUdp(
- PIP_HEADER pIpHeader,
- PUDP_HEADER pUdpHeader,
- BOOLEAN IsSend,
- UINT LookaheadBufferSize,
- void *pVoid
- );
- int CheckIcmp(
- PIP_HEADER pIpHeader,
- PICMP_HEADER pIcmpHeader,
- BOOLEAN IsSend,
- UINT LookaheadBufferSize
- );
- unsigned char* IPTrans(DWORD IP);
- struct __BUFFER__
- {
- unsigned char Protocol;
- ULONG SourceIp;
- ULONG DestinationIp;
- ULONG SourcePort : 16;
- ULONG DestinationPort : 16;
- USHORT TcpFin : 1;
- USHORT TcpSyn : 1;
- USHORT TcpRst : 1;
- USHORT TcpPsh : 1;
- USHORT TcpAck : 1;
- USHORT TcpUrg : 1;
- USHORT Direction : 1;
- USHORT SendOrRecv : 1;
- USHORT Action : 8;
- unsigned char Week;
- unsigned char IcmpType;
- unsigned char IcmpSubType;
- ULONG Time;
- };
- typedef __BUFFER__ *pBuffer;
- #endif