common.inc
资源名称:ZtsFw.zip [点击查看]
上传用户:lingfuwu
上传日期:2013-03-31
资源大小:13k
文件大小:1k
源码类别:
防火墙与安全工具
开发平台:
Asm
- IPPROTO_IP equ 0
- IPPROTO_ICMP equ 1
- IPPROTO_GGP equ 2
- IPPROTO_TCP equ 6
- IPPROTO_PUP equ 12
- IPPROTO_UDP equ 17
- IPPROTO_IDP equ 22
- IPPROTO_ND equ 77
- IPPROTO_RAW equ 255
- IPPROTO_MAX equ 256
- MAX_PORTS equ 100
- IOCTL_START_IP_HOOK equ CTL_CODE(FILE_DEVICE_UNKNOWN, 800h, METHOD_BUFFERED, FILE_READ_ACCESS+FILE_WRITE_ACCESS)
- IOCTL_STOP_IP_HOOK equ CTL_CODE(FILE_DEVICE_UNKNOWN, 801h, METHOD_BUFFERED, FILE_READ_ACCESS+FILE_WRITE_ACCESS)
- IOCTL_ADD_FILTER equ CTL_CODE(FILE_DEVICE_UNKNOWN, 802h, METHOD_BUFFERED, FILE_READ_ACCESS+FILE_WRITE_ACCESS)
- IOCTL_GET_IP_INFO equ CTL_CODE(FILE_DEVICE_UNKNOWN, 803h, METHOD_BUFFERED, FILE_READ_ACCESS+FILE_WRITE_ACCESS)
- CALLBACK_IP_INFO struct
- protocol db ?
- srcIp dd ?
- srcPort dw ?
- dstIp dd ?
- dstPort dw ?
- bIn dd ?
- CALLBACK_IP_INFO ends
- IPHeader struct
- headerLength db ?
- tos db ?
- _length dw ?
- id dw ?
- _offset dw ?
- ttl db ?
- protocol db ?
- checksum dw ?
- source dd ?
- destination dd ?
- IPHeader ends
- TCPHeader struct
- sourcePort dw ?
- destinationPort dw ?
- nSequence dd ?
- nAck dd ?
- _offset db ?
- flags db ?
- window dw ?
- checksum dw ?
- urp dw ?
- TCPHeader ends