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.

95 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. Revision history:
  6. --*/
  7. #include <snmp.h>
  8. #include <snmpexts.h>
  9. #include "mibentry.h"
  10. #include "mibfuncs.h"
  11. //-----------------------------------
  12. // OID definitions
  13. //-----------------------------------
  14. static UINT ids_snmp[] = {1,3,6,1,2,1,11};
  15. static UINT ids_snmpInPkts[] = { 1,0};
  16. static UINT ids_snmpOutPkts[] = { 2,0};
  17. static UINT ids_snmpInBadVersions[] = { 3,0};
  18. static UINT ids_snmpInBadCommunityNames[] = { 4,0};
  19. static UINT ids_snmpInBadCommunityUses[] = { 5,0};
  20. static UINT ids_snmpInASNParseErrs[] = { 6,0};
  21. static UINT ids_snmpInTooBigs[] = { 8,0};
  22. static UINT ids_snmpInNoSuchNames[] = { 9,0};
  23. static UINT ids_snmpInBadValues[] = {10,0};
  24. static UINT ids_snmpInReadOnlys[] = {11,0};
  25. static UINT ids_snmpInGenErrs[] = {12,0};
  26. static UINT ids_snmpInTotalReqVars[] = {13,0};
  27. static UINT ids_snmpInTotalSetVars[] = {14,0};
  28. static UINT ids_snmpInGetRequests[] = {15,0};
  29. static UINT ids_snmpInGetNexts[] = {16,0};
  30. static UINT ids_snmpInSetRequests[] = {17,0};
  31. static UINT ids_snmpInGetResponses[] = {18,0};
  32. static UINT ids_snmpInTraps[] = {19,0};
  33. static UINT ids_snmpOutTooBigs[] = {20,0};
  34. static UINT ids_snmpOutNoSuchNames[] = {21,0};
  35. static UINT ids_snmpOutBadValues[] = {22,0};
  36. static UINT ids_snmpOutGenErrs[] = {24,0};
  37. static UINT ids_snmpOutGetRequests[] = {25,0};
  38. static UINT ids_snmpOutGetNexts[] = {26,0};
  39. static UINT ids_snmpOutSetRequests[] = {27,0};
  40. static UINT ids_snmpOutGetResponses[] = {28,0};
  41. static UINT ids_snmpOutTraps[] = {29,0};
  42. static UINT ids_snmpEnableAuthenTraps[] = {30,0};
  43. //-----------------------------------
  44. // Views description
  45. //-----------------------------------
  46. SnmpMibEntry mib_snmp[] = {
  47. MIB_COUNTER(snmpInPkts),
  48. MIB_COUNTER(snmpOutPkts),
  49. MIB_COUNTER(snmpInBadVersions),
  50. MIB_COUNTER(snmpInBadCommunityNames),
  51. MIB_COUNTER(snmpInBadCommunityUses),
  52. MIB_COUNTER(snmpInASNParseErrs),
  53. MIB_COUNTER(snmpInTooBigs),
  54. MIB_COUNTER(snmpInNoSuchNames),
  55. MIB_COUNTER(snmpInBadValues),
  56. MIB_COUNTER(snmpInReadOnlys),
  57. MIB_COUNTER(snmpInGenErrs),
  58. MIB_COUNTER(snmpInTotalReqVars),
  59. MIB_COUNTER(snmpInTotalSetVars),
  60. MIB_COUNTER(snmpInGetRequests),
  61. MIB_COUNTER(snmpInGetNexts),
  62. MIB_COUNTER(snmpInSetRequests),
  63. MIB_COUNTER(snmpInGetResponses),
  64. MIB_COUNTER(snmpInTraps),
  65. MIB_COUNTER(snmpOutTooBigs),
  66. MIB_COUNTER(snmpOutNoSuchNames),
  67. MIB_COUNTER(snmpOutBadValues),
  68. MIB_COUNTER(snmpOutGenErrs),
  69. MIB_COUNTER(snmpOutGetRequests),
  70. MIB_COUNTER(snmpOutGetNexts),
  71. MIB_COUNTER(snmpOutSetRequests),
  72. MIB_COUNTER(snmpOutGetResponses),
  73. MIB_COUNTER(snmpOutTraps),
  74. MIB_INTEGER_RW(snmpEnableAuthenTraps),
  75. MIB_END()
  76. };
  77. //------------------------------------
  78. // Views supported by this MIB
  79. //------------------------------------
  80. SnmpMibView view_snmp = {
  81. MIB_VERSION,
  82. MIB_VIEW_NORMAL,
  83. MIB_OID(ids_snmp),
  84. MIB_ENTRIES(mib_snmp),
  85. {NULL,0}
  86. };