Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

347 lines
7.5 KiB

  1. /*++
  2. Routine Description:
  3. Dumps global paramters.
  4. Arguments:
  5. Return Value:
  6. --*/
  7. #include "tcpipxp.h"
  8. #include "tcpipkd.h"
  9. #include "iproute.h"
  10. #include "igmp.h"
  11. #if TCPIPKD
  12. extern uint TotalFreeInterfaces;
  13. extern uint MaxFreeInterfaces;
  14. extern uint NumIF;
  15. extern uint NumNTE;
  16. extern uint NumActiveNTE;
  17. extern Interface *IFList;
  18. extern uint NET_TABLE_SIZE;
  19. extern uint NextNTEContext;
  20. extern uint DefaultTTL;
  21. extern uint DefaultTOS;
  22. extern uchar RATimeout;
  23. extern IPID_CACHE_LINE IPIDCacheLine;
  24. extern uint MaxFWPackets;
  25. extern uint CurrentFWPackets;
  26. extern uint MaxFWBufferSize;
  27. extern uint CurrentFWBufferSize;
  28. extern uchar ForwardPackets;
  29. extern uchar RouterConfigured;
  30. extern int IPEnableRouterRefCount;
  31. extern uchar ForwardBCast;
  32. extern RouteSendQ *BCastRSQ;
  33. extern uint DefGWConfigured;
  34. extern uint DefGWActive;
  35. extern uint DeadGWDetect;
  36. extern uint PMTUDiscovery;
  37. extern uint DisableIPSourceRouting;
  38. extern uint MaxRH;
  39. extern uint NumRH;
  40. extern uint MaxOverlap;
  41. extern uint FragmentAttackDrops;
  42. extern uint ArpUseEtherSnap;
  43. extern uint ArpAlwaysSourceRoute;
  44. extern uint IPAlwaysSourceRoute;
  45. extern uint ArpCacheLife;
  46. extern uint ArpRetryCount;
  47. extern uint ArpMinValidCacheLife;
  48. extern uint DisableDHCPMediaSense;
  49. extern uint DisableMediaSenseEventLog;
  50. extern uint EnableBcastArpReply;
  51. extern uint DisableTaskOffload;
  52. extern uint DisableUserTOS;
  53. extern ulong DisableUserTOSSetting;
  54. extern ulong DefaultTOSValue;
  55. extern uint EnableICMPRedirects;
  56. extern int IcmpEchoPendingCnt;
  57. extern int IcmpErrPendingCnt;
  58. extern uint sArpAlwaysSourceRoute;
  59. extern uint ArpRetryCount;
  60. extern uint sIPAlwaysSourceRoute;
  61. extern uint LoopIndex;
  62. extern uint LoopInstance;
  63. VOID
  64. Tcpipkd_gip(PVOID args[])
  65. {
  66. dprintf(ENDL);
  67. TCPIPDump_PtrSymbol(ForwardFilterPtr);
  68. TCPIPDump_PtrSymbol(DODCallout);
  69. TCPIPDump_PtrSymbol(IPSecHandlerPtr);
  70. TCPIPDump_PtrSymbol(IPSecSendCmpltPtr);
  71. dprintf(ENDL);
  72. //
  73. // init.c
  74. //
  75. TCPIPDump_uint(TotalFreeInterfaces);
  76. TCPIPDump_uint(MaxFreeInterfaces);
  77. TCPIPDump_int(NumNTE);
  78. TCPIPDump_int(NumActiveNTE);
  79. TCPIPDump_uint(NextNTEContext);
  80. TCPIPDump_uint(NET_TABLE_SIZE);
  81. TCPIPDump_ULONG(NumIF);
  82. TCPIPDump_uint(DHCPActivityCount);
  83. TCPIPDump_uint(IGMPLevel);
  84. TCPIPDump_uint(DefaultTTL);
  85. TCPIPDump_uint(DefaultTOS);
  86. TCPIPDump_uchar(RATimeout);
  87. dprintf(ENDL);
  88. //
  89. // ipxmit.c
  90. //
  91. TCPIPDump_ULONG(IPIDCacheLine.Value);
  92. dprintf(ENDL);
  93. //
  94. // iproute.c
  95. //
  96. TCPIPDump_uint(MaxFWPackets);
  97. TCPIPDump_uint(CurrentFWPackets);
  98. TCPIPDump_uint(MaxFWBufferSize);
  99. TCPIPDump_uint(CurrentFWBufferSize);
  100. TCPIPDump_uchar(ForwardPackets);
  101. TCPIPDump_uchar(RouterConfigured);
  102. TCPIPDump_uchar(ForwardBCast);
  103. TCPIPDump_uint(DefGWConfigured);
  104. TCPIPDump_uint(DefGWActive);
  105. TCPIPDump_uint(DeadGWDetect);
  106. TCPIPDump_uint(PMTUDiscovery);
  107. TCPIPDumpCfg_uint(DisableIPSourceRouting, TRUE);
  108. dprintf(ENDL);
  109. //
  110. // iprcv.c
  111. //
  112. TCPIPDumpCfg_uint(MaxRH, 100);
  113. TCPIPDump_uint(NumRH);
  114. TCPIPDumpCfg_uint(MaxOverlap, 5);
  115. TCPIPDump_uint(FragmentAttackDrops);
  116. dprintf(ENDL);
  117. //
  118. // ntip.c
  119. //
  120. TCPIPDumpCfg_uint(ArpUseEtherSnap, FALSE);
  121. TCPIPDumpCfg_uint(ArpAlwaysSourceRoute, FALSE);
  122. TCPIPDumpCfg_uint(IPAlwaysSourceRoute, TRUE);
  123. TCPIPDumpCfg_uint(DisableDHCPMediaSense, FALSE);
  124. TCPIPDump_uint(DisableMediaSenseEventLog);
  125. TCPIPDumpCfg_uint(EnableBcastArpReply, TRUE);
  126. TCPIPDumpCfg_uint(DisableTaskOffload, FALSE);
  127. TCPIPDumpCfg_ULONG(DisableUserTOS, TRUE);
  128. dprintf(ENDL);
  129. //
  130. // icmp.c, igmp.c
  131. //
  132. TCPIPDumpCfg_ULONG(DisableUserTOSSetting, TRUE);
  133. TCPIPDumpCfg_ULONG(DefaultTOSValue, 0);
  134. TCPIPDumpCfg_uint(EnableICMPRedirects, 0);
  135. TCPIPDump_uint(IcmpEchoPendingCnt);
  136. TCPIPDump_uint(IcmpErrPendingCnt);
  137. dprintf(ENDL);
  138. //
  139. // arp.c
  140. //
  141. TCPIPDumpCfg_uint(ArpCacheLife, DEFAULT_ARP_CACHE_LIFE);
  142. TCPIPDumpCfg_uint(ArpMinValidCacheLife, DEFAULT_ARP_MIN_VALID_CACHE_LIFE);
  143. TCPIPDumpCfg_uint(ArpRetryCount, DEFAULT_ARP_RETRY_COUNT);
  144. TCPIPDump_uint(sArpAlwaysSourceRoute);
  145. TCPIPDump_uint(sIPAlwaysSourceRoute);
  146. dprintf(ENDL);
  147. //
  148. // iploop.c
  149. //
  150. TCPIPDump_uint(LoopIndex);
  151. TCPIPDump_uint(LoopInstance);
  152. dprintf(ENDL);
  153. }
  154. extern uint MaxConnBlocks;
  155. extern uint ConnPerBlock;
  156. extern uint NextConnBlock;
  157. extern uint MaxAllocatedConnBlocks;
  158. extern SeqNum g_CurISN;
  159. extern uint ConnTableSize;
  160. extern uchar ConnInst;
  161. extern uint NextConnIndex;
  162. extern uint MaxRcvWin;
  163. extern uint MaxDupAcks;
  164. extern uint MaxSendSegments;
  165. extern uint TCPTime;
  166. extern uint TCBWalkCount;
  167. extern uint MaxHashTableSize;
  168. extern uint DeadmanTicks;
  169. extern uint NumTcbTablePartitions;
  170. extern uint PerPartitionSize;
  171. extern uint LogPerPartitionSize;
  172. extern BOOLEAN fTCBTimerStopping;
  173. extern USHORT NextUserPort;
  174. VOID
  175. Tcpipkd_gtcp(PVOID args[])
  176. {
  177. dprintf(ENDL);
  178. //
  179. // tcpconn.c
  180. //
  181. TCPIPDump_uint(MaxConnBlocks);
  182. TCPIPDumpCfg_uint(ConnPerBlock, MAX_CONN_PER_BLOCK);
  183. TCPIPDump_uint(NextConnBlock);
  184. TCPIPDump_uint(MaxAllocatedConnBlocks);
  185. dprintf(ENDL);
  186. TCPIPDump_DWORD(g_CurISN);
  187. dprintf(ENDL);
  188. TCPIPDump_uint(ConnTableSize);
  189. dprintf(ENDL);
  190. //
  191. // tcpdeliv.c
  192. //
  193. dprintf(ENDL);
  194. //
  195. // tcprcv.c
  196. //
  197. TCPIPDumpCfg_uint(MaxRcvWin, 0xffff);
  198. TCPIPDump_uint(MaxDupAcks);
  199. dprintf(ENDL);
  200. //
  201. // tcpsend.c
  202. //
  203. TCPIPDumpCfg_uint(MaxSendSegments, 64);
  204. dprintf(ENDL);
  205. //
  206. // tcb.c
  207. //
  208. TCPIPDump_uint(TCPTime);
  209. TCPIPDump_uint(TCBWalkCount);
  210. TCPIPDumpCfg_uint(MaxHashTableSize, 512);
  211. TCPIPDump_uint(DeadmanTicks);
  212. TCPIPDump_uint(NumTcbTablePartitions);
  213. TCPIPDump_uint(PerPartitionSize);
  214. TCPIPDump_uint(LogPerPartitionSize);
  215. TCPIPDump_BOOLEAN(fTCBTimerStopping);
  216. dprintf(ENDL);
  217. //
  218. // addr.c
  219. //
  220. TCPIPDump_ushort(NextUserPort);
  221. TCPIPDumpCfg_ULONG(DisableUserTOSSetting, TRUE);
  222. TCPIPDumpCfg_ULONG(DefaultTOSValue, 0);
  223. dprintf(ENDL);
  224. //
  225. // dgram.c
  226. //
  227. dprintf(ENDL);
  228. //
  229. // init.c
  230. //
  231. TCPIPDumpCfg_uint(DeadGWDetect, TRUE);
  232. TCPIPDumpCfg_uint(PMTUDiscovery, TRUE);
  233. TCPIPDumpCfg_uint(PMTUBHDetect, FALSE);
  234. TCPIPDumpCfg_uint(KeepAliveTime, 72000 /*DEFAULT_KEEPALIVE_TIME*/);
  235. TCPIPDumpCfg_uint(KAInterval, 10 /*DEFAULT_KEEPALIVE_INTERVAL*/);
  236. TCPIPDumpCfg_uint(DefaultRcvWin, 0);
  237. dprintf(ENDL);
  238. TCPIPDumpCfg_uint(MaxConnections, DEFAULT_MAX_CONNECTIONS);
  239. TCPIPDumpCfg_uint(MaxConnectRexmitCount, MAX_CONNECT_REXMIT_CNT);
  240. TCPIPDumpCfg_uint(MaxConnectResponseRexmitCount, MAX_CONNECT_RESPONSE_REXMIT_CNT);
  241. TCPIPDump_uint(MaxConnectResponseRexmitCountTmp);
  242. TCPIPDumpCfg_uint(MaxDataRexmitCount, MAX_REXMIT_CNT);
  243. dprintf(ENDL);
  244. //
  245. // ntinit.c
  246. //
  247. TCPIPDump_uint(TCPHalfOpen);
  248. TCPIPDump_uint(TCPHalfOpenRetried);
  249. TCPIPDump_uint(TCPMaxHalfOpen);
  250. TCPIPDump_uint(TCPMaxHalfOpenRetried);
  251. TCPIPDump_uint(TCPMaxHalfOpenRetriedLW);
  252. dprintf(ENDL);
  253. TCPIPDump_uint(TCPPortsExhausted);
  254. TCPIPDump_uint(TCPMaxPortsExhausted);
  255. TCPIPDump_uint(TCPMaxPortsExhaustedLW);
  256. dprintf(ENDL);
  257. TCPIPDumpCfg_uint(SynAttackProtect, FALSE);
  258. TCPIPDumpCfg_uint(BSDUrgent, TRUE);
  259. TCPIPDumpCfg_uint(FinWait2TO, FIN_WAIT2_TO * 10);
  260. TCPIPDumpCfg_uint(NTWMaxConnectCount, NTW_MAX_CONNECT_COUNT);
  261. TCPIPDumpCfg_uint(NTWMaxConnectTime, NTW_MAX_CONNECT_TIME * 2);
  262. TCPIPDumpCfg_uint(MaxUserPort, MAX_USER_PORT);
  263. TCPIPDumpCfg_uint(SecurityFilteringEnabled, FALSE);
  264. dprintf(ENDL);
  265. return;
  266. }
  267. #endif // TCPIPKD