⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jiurl_tcpioctl.h

📁 这是一本学习 window编程的很好的参考教材
💻 H
字号:
#if 0 //================================================================
	Copyright (c) JIURL, All Rights Reserved
========================================================================

/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/

Module Name:

	Jiurl_tcpioctl.h

About:

  - 这个驱动项目由一个我写的 AppWizard 创建。

  [ HomePage ]  http://jiurl.yeah.net
                ~~~~~~~~~~~~~~~~~~~~~
  [ Email    ]  jiurl@mail.china.com
                ~~~~~~~~~~~~~~~~~~~~
  [ Forum    ]  http://jiurl.cosoft.org.cn/forum/index.php
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  - 有偿定制 AppWizard ,请发邮件联系 。

Comments:

	本文件中的所有内容目前都是未公开的,由我分析得出,是隐藏端口的关键内容。
	Undocumented?? 爽!要的就是 Undocumented 。

/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
#endif


// jiurl // IPSNMPInfo 结构的定义是根据 RFC 2011 
// jiurl // 所以我根据 RFC 2022 ,仿 IPSNMPInfo, 定义结构 TCPSNMPInfo 
// jiurl // 再通过一些分析得到一些扩展部分的定义

typedef struct TCPSNMPInfo {
    ULONG       tcpsi_RtoAlgorithm;
    ULONG       tcpsi_RtoMin;
    ULONG       tcpsi_RtoMax;
    ULONG       tcpsi_MaxConn;
    ULONG       tcpsi_ActiveOpens;
    ULONG       tcpsi_PassiveOpens;
    ULONG       tcpsi_AttemptFails;
    ULONG       tcpsi_EstabResets;
    ULONG       tcpsi_CurrEstab;
    ULONG       tcpsi_InSegs;
    ULONG       tcpsi_OutSegs;
    ULONG       tcpsi_RetransSegs;
	ULONG       tcpsi_unknown1;
	ULONG       tcpsi_unknown2;
	ULONG       tcpsi_numconn;
} TCPSNMPInfo;

#define tcpRtoAlgorithm_other    1 // none of the following
#define tcpRtoAlgorithm_constant 2 // a constant rto
#define tcpRtoAlgorithm_rsre     3 // MIL-STD-1778, Appendix B
#define tcpRtoAlgorithm_vanj     4 // Van Jacobson's algorithm

#define TCP_MIB_STATS_ID              1
#define TCP_MIB_ADDRTABLE_ENTRY_ID    0x101
#define TCP_MIB_ADDRTABLE_ENTRY_EX_ID 0x102


typedef struct TCPAddrEntry {
    ULONG       tae_ConnState;
    ULONG       tae_ConnLocalAddress;
    ULONG       tae_ConnLocalPort;
    ULONG       tae_ConnRemAddress;
    ULONG       tae_ConnRemPort;
} TCPAddrEntry;

#define tcpConnState_closed      1
#define tcpConnState_listen      2
#define tcpConnState_synSent     3
#define tcpConnState_synReceived 4
#define tcpConnState_established 5
#define tcpConnState_finWait1    6
#define tcpConnState_finWait2    7
#define tcpConnState_closeWait   8
#define tcpConnState_lastAck     9
#define tcpConnState_closing     10
#define tcpConnState_timeWait    11
#define tcpConnState_deleteTCB   12

typedef struct TCPAddrExEntry {
    ULONG       tae_ConnState;
    ULONG       tae_ConnLocalAddress;
    ULONG       tae_ConnLocalPort;
    ULONG       tae_ConnRemAddress;
    ULONG       tae_ConnRemPort;
    ULONG       pid;
} TCPAddrExEntry;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -