Leaked source code of windows server 2003
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.

164 lines
6.7 KiB

  1. // Dump structs of ipconfig.h
  2. // Generated by pdbg on Wed May 21 14:23:06 1997
  3. // ==================================================
  4. // ipconfig.h:100
  5. #include "precomp.h"
  6. void
  7. print_IP_ADDRESS_STRING( char* message, IP_ADDRESS_STRING * s )
  8. {
  9. if( message ){
  10. DEBUG_PRINT(( "%s\n", message ));
  11. }
  12. if( s == NULL ){
  13. DEBUG_PRINT(( "struct IP_ADDRESS_STRING is NULL.\n"));
  14. return;
  15. }
  16. DEBUG_PRINT(("struct IP_ADDRESS_STRING = {\n" ));
  17. DEBUG_PRINT(( "}; // struct IP_ADDRESS_STRING.\n"));
  18. return;
  19. } /* print_IP_ADDRESS_STRING */
  20. // ==================================================
  21. // ipconfig.h:109
  22. void
  23. print_IP_ADDR_STRING( char* message, struct _IP_ADDR_STRING * s )
  24. {
  25. if( message ){
  26. DEBUG_PRINT(( "%s\n", message ));
  27. }
  28. if( s == NULL ){
  29. DEBUG_PRINT(( "struct _IP_ADDR_STRING is NULL.\n"));
  30. return;
  31. }
  32. DEBUG_PRINT(("struct _IP_ADDR_STRING = {\n" ));
  33. DEBUG_PRINT((" Next = 0x%p \n", s->Next ));
  34. DEBUG_PRINT((" IpAddress = 0x%08p \n", s->IpAddress ));
  35. DEBUG_PRINT((" IpMask = 0x%08p \n", s->IpMask ));
  36. DEBUG_PRINT((" Context = %d \n", s->Context ));
  37. DEBUG_PRINT(( "}; // struct _IP_ADDR_STRING.\n"));
  38. return;
  39. } /* print_IP_ADDR_STRING */
  40. // ==================================================
  41. // ipconfig.h:121
  42. void
  43. print_IP_ADAPTER_INFO( char* message, struct _IP_ADAPTER_INFO * s )
  44. {
  45. if( message ){
  46. DEBUG_PRINT(( "%s\n", message ));
  47. }
  48. if( s == NULL ){
  49. DEBUG_PRINT(( "struct _IP_ADAPTER_INFO is NULL.\n"));
  50. return;
  51. }
  52. DEBUG_PRINT(("struct _IP_ADAPTER_INFO = {\n" ));
  53. DEBUG_PRINT((" Next = 0x%p \n", s->Next ));
  54. DEBUG_PRINT((" AddressLength = %d \n", s->AddressLength ));
  55. DEBUG_PRINT((" Index = %d \n", s->Index ));
  56. DEBUG_PRINT((" Type = %d \n", s->Type ));
  57. DEBUG_PRINT((" DhcpEnabled = %d \n", s->DhcpEnabled ));
  58. // DEBUG_PRINT((" AutoconfigEnabled = %d \n", s->AutoconfigEnabled ));
  59. // DEBUG_PRINT((" AutoconfigActive = %d \n", s->AutoconfigActive ));
  60. // DEBUG_PRINT((" NodeType = %d \n", s->NodeType ));
  61. DEBUG_PRINT((" IpAddressList = 0x%08p \n", s->IpAddressList ));
  62. DEBUG_PRINT((" GatewayList = 0x%08p \n", s->GatewayList ));
  63. DEBUG_PRINT((" DhcpServer = 0x%08p \n", s->DhcpServer ));
  64. DEBUG_PRINT((" HaveWins = 0x%08x \n", s->HaveWins ));
  65. DEBUG_PRINT((" PrimaryWinsServer = 0x%08p \n", s->PrimaryWinsServer ));
  66. DEBUG_PRINT((" SecondaryWinsServer = 0x%08p \n", s->SecondaryWinsServer ));
  67. DEBUG_PRINT((" LeaseObtained = 0x%08x \n", s->LeaseObtained ));
  68. DEBUG_PRINT((" LeaseExpires = 0x%08x \n", s->LeaseExpires ));
  69. // DEBUG_PRINT((" DnsServerList = 0x%08x \n", s->DnsServerList ));
  70. DEBUG_PRINT(( "}; // struct _IP_ADAPTER_INFO.\n"));
  71. return;
  72. } /* print_IP_ADAPTER_INFO */
  73. // ==================================================
  74. // ipconfig.h:147
  75. void
  76. print_FIXED_INFO( char* message, FIXED_INFO * s )
  77. {
  78. if( message ){
  79. DEBUG_PRINT(( "%s\n", message ));
  80. }
  81. if( s == NULL ){
  82. DEBUG_PRINT(( "struct FIXED_INFO is NULL.\n"));
  83. return;
  84. }
  85. DEBUG_PRINT(("struct FIXED_INFO = {\n" ));
  86. DEBUG_PRINT((" DnsServerList = 0x%08p \n", s->DnsServerList ));
  87. DEBUG_PRINT((" NodeType = %d \n", s->NodeType ));
  88. DEBUG_PRINT((" EnableRouting = %d \n", s->EnableRouting ));
  89. DEBUG_PRINT((" EnableProxy = %d \n", s->EnableProxy ));
  90. DEBUG_PRINT((" EnableDns = %d \n", s->EnableDns ));
  91. DEBUG_PRINT(( "}; // struct FIXED_INFO.\n"));
  92. return;
  93. } /* print_FIXED_INFO */
  94. // ==================================================
  95. // Generated by MohsinA on Mon Mar 24 20:21:40 1997
  96. // From //REDRUM/SLM/PROJ/NET/VXD/src/winsock2/util/memipcfg/debug.c
  97. void
  98. print_IFEntry( char* message, struct IFEntry * s )
  99. {
  100. int i;
  101. if( message ){
  102. DEBUG_PRINT(( "%s\n", message ));
  103. }
  104. if( s == NULL ){
  105. DEBUG_PRINT(( "struct IFEntry is NULL.\n"));
  106. return;
  107. }
  108. DEBUG_PRINT(("struct IFEntry = {\n" ));
  109. DEBUG_PRINT((" if_index = %d \n", s->if_index ));
  110. DEBUG_PRINT((" if_type = %d ", s->if_type ));
  111. switch( s->if_type ){
  112. case IF_TYPE_OTHER : DEBUG_PRINT(("IF_TYPE_OTHER ")); break;
  113. case IF_TYPE_ETHERNET_CSMACD : DEBUG_PRINT(("IF_TYPE_ETHERNET_CSMACD ")); break;
  114. case IF_TYPE_ISO88025_TOKENRING : DEBUG_PRINT(("IF_TYPE_ISO88025_TOKENRING ")); break;
  115. case IF_TYPE_FDDI : DEBUG_PRINT(("IF_TYPE_FDDI ")); break;
  116. case IF_TYPE_PPP : DEBUG_PRINT(("IF_TYPE_PPP ")); break;
  117. case IF_TYPE_SOFTWARE_LOOPBACK : DEBUG_PRINT(("IF_TYPE_SOFTWARE_LOOPBACK ")); break;
  118. case IF_TYPE_SLIP : DEBUG_PRINT(("IF_TYPE_SLIP ")); break;
  119. }
  120. DEBUG_PRINT(("\n"));
  121. DEBUG_PRINT((" if_mtu = %d \n", s->if_mtu ));
  122. DEBUG_PRINT((" if_speed = %d \n", s->if_speed ));
  123. DEBUG_PRINT((" if_physaddrlen = %d \n", s->if_physaddrlen ));
  124. DEBUG_PRINT((" if_physaddr = " ));
  125. for( i = 0; i< MAX_PHYSADDR_SIZE; i++ ){
  126. DEBUG_PRINT(("%02x.", s->if_physaddr[i] ));
  127. }
  128. DEBUG_PRINT(("\n"));
  129. DEBUG_PRINT((" if_adminstatus = %d \n", s->if_adminstatus ));
  130. DEBUG_PRINT((" if_operstatus = %d \n", s->if_operstatus ));
  131. DEBUG_PRINT((" if_lastchange = %d \n", s->if_lastchange ));
  132. DEBUG_PRINT((" if_inoctets = %d \n", s->if_inoctets ));
  133. DEBUG_PRINT((" if_inucastpkts = %d \n", s->if_inucastpkts ));
  134. DEBUG_PRINT((" if_innucastpkts = %d \n", s->if_innucastpkts ));
  135. DEBUG_PRINT((" if_indiscards = %d \n", s->if_indiscards ));
  136. DEBUG_PRINT((" if_inerrors = %d \n", s->if_inerrors ));
  137. DEBUG_PRINT((" if_inunknownprotos = %d \n", s->if_inunknownprotos ));
  138. DEBUG_PRINT((" if_outoctets = %d \n", s->if_outoctets ));
  139. DEBUG_PRINT((" if_outucastpkts = %d \n", s->if_outucastpkts ));
  140. DEBUG_PRINT((" if_outnucastpkts = %d \n", s->if_outnucastpkts ));
  141. DEBUG_PRINT((" if_outdiscards = %d \n", s->if_outdiscards ));
  142. DEBUG_PRINT((" if_outerrors = %d \n", s->if_outerrors ));
  143. DEBUG_PRINT((" if_outqlen = %d \n", s->if_outqlen ));
  144. DEBUG_PRINT((" if_descrlen = %d \n", s->if_descrlen ));
  145. DEBUG_PRINT((" if_descr = %s \n", s->if_descr ));
  146. DEBUG_PRINT(("}; // struct IFEntry.\n"));
  147. return;
  148. } /* print_IFEntry */