discard.txt
上传用户:heseme
上传日期:2009-12-23
资源大小:228k
文件大小:2k
开发平台:

Visual C++

  1. typedef struct _FilterConfig {
  2. ULONG   logMask;
  3. //#define CFG_CLR_SIZE (sizeof(FilterConfig) - sizeof(ULONG))
  4. //#define CFG_CLR_START in_number
  5. USHORT    in_number;//adapter num     
  6. USHORT    out_number;//adapter num     
  7. USHORT    dm_number;//adapter num  
  8. USHORT    media_type;//gj
  9. ULONG     in_ip;
  10. ULONG     out_ip;
  11. ULONG     dm_ip;
  12. ULONG     in_mask;
  13. ULONG     out_mask;
  14. ULONG     dm_mask;
  15. BOOL      discardIcmp;
  16. BOOL   discardMulticast;
  17. BOOL discardNonIp;
  18. BOOL discardOtherIp;
  19. BOOL discardSuspectOffset;
  20. BOOL discardFragmentedICMP;
  21. BOOL discardAttackICMP;
  22. BOOL     discardRouteIp;
  23. } FilterConfig;
  24. //流量统计信息
  25. typedef struct _Statistics {
  26. unsigned short running;
  27. SYSTEMTIME   starttime;
  28. ULONG p_insideFiltered;//过滤掉的内网包计数
  29. ULONG  p_dmFiltered;
  30. ULONG p_outsideFiltered;//过滤掉的外网包计数
  31. ULONG p_insideRx;//内网卡接收到的包总数:成功的+过滤掉的;
  32. ULONG  p_dmRx;
  33. ULONG p_outsideRx;
  34. ULONG p_insideTx;//成功的进站包数
  35. ULONG  p_dmTx;
  36. ULONG p_outsideTx;//成功的出站包数
  37. ULONG b_insideFiltered;//过滤掉的内网包总长(bytes)
  38. ULONG   b_dmFiltered;
  39. ULONG b_outsideFiltered;
  40. ULONG b_insideRx;
  41. ULONG  b_dmRx;
  42. ULONG b_outsideRx;
  43. ULONG b_insideTx;
  44. ULONG  b_dmTx;
  45. ULONG b_outsideTx;
  46.     ULONG  f_outsideOtherIp;
  47. ULONG   f_insideOtherIp;
  48. ULONG f_insideMcast;
  49. ULONG f_outsideMcast;
  50. ULONG f_insideTcpPort;
  51. ULONG f_insideUdpPort;
  52. ULONG f_insideIcmpType;
  53. ULONG f_outsideIcmpType;
  54. ULONG f_outsideRejectTable;
  55. ULONG f_outsideSuspectOffset;
  56. ULONG f_outsideIcmpFrag;
  57. ULONG f_outsideSmurfDos;
  58. ULONG f_outsidePongDos;
  59. ULONG f_insideAcceptTable;
  60. ULONG f_insideSuspectOffset;
  61. ULONG f_insideIcmpFrag;
  62. ULONG f_insideSmurfDos;
  63. ULONG f_insidePongDos;
  64. ULONG insideTCPreset;
  65. ULONG outsideTCPreset;
  66. } Statistics;