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.

97 lines
2.9 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright (c) Microsoft Corporation. All rights reserved. **/
  4. /********************************************************************/
  5. //** LLINFO.H - Lower layer SNMP information definitions.
  6. //
  7. // This file contains all of the definitions for SNMP information collected
  8. // by layers below IP.
  9. #ifndef LLINFO_INCLUDED
  10. #define LLINFO_INCLUDED
  11. #include <ipifcons.h>
  12. #ifndef CTE_TYPEDEFS_DEFINED
  13. #define CTE_TYPEDEFS_DEFINED
  14. typedef unsigned long ulong;
  15. typedef unsigned short ushort;
  16. typedef unsigned char uchar;
  17. typedef unsigned int uint;
  18. #endif // CTE_TYPEDEFS_DEFINED
  19. #define IF_MIB_STATS_ID 1
  20. #define IF_FRIENDLY_NAME_ID 2
  21. #define IF_QUERY_SET_OFFLOAD_ID 3
  22. #define MAX_PHYSADDR_SIZE 8
  23. typedef struct IPNetToMediaEntry {
  24. ulong inme_index;
  25. ulong inme_physaddrlen;
  26. uchar inme_physaddr[MAX_PHYSADDR_SIZE];
  27. ulong inme_addr;
  28. ulong inme_type;
  29. } IPNetToMediaEntry;
  30. #define INME_TYPE_OTHER 1
  31. #define INME_TYPE_INVALID 2
  32. #define INME_TYPE_DYNAMIC 3
  33. #define INME_TYPE_STATIC 4
  34. #define MAX_IFDESCR_LEN 256
  35. #define IFE_FIXED_SIZE offsetof(struct IFEntry, if_descr)
  36. typedef struct IFEntry {
  37. ulong if_index;
  38. ulong if_type;
  39. ulong if_mtu;
  40. ulong if_speed;
  41. ulong if_physaddrlen;
  42. uchar if_physaddr[MAX_PHYSADDR_SIZE];
  43. ulong if_adminstatus;
  44. ulong if_operstatus;
  45. ulong if_lastchange;
  46. ulong if_inoctets;
  47. ulong if_inucastpkts;
  48. ulong if_innucastpkts;
  49. ulong if_indiscards;
  50. ulong if_inerrors;
  51. ulong if_inunknownprotos;
  52. ulong if_outoctets;
  53. ulong if_outucastpkts;
  54. ulong if_outnucastpkts;
  55. ulong if_outdiscards;
  56. ulong if_outerrors;
  57. ulong if_outqlen;
  58. ulong if_descrlen;
  59. uchar if_descr[1];
  60. } IFEntry;
  61. // MIB-II interface status values. The latest definition of these values
  62. // is in RFC 2863. ifOperStatus can use all values. ifAdminStatus only
  63. // uses the first three values.
  64. typedef enum {
  65. IF_STATUS_UP = 1,
  66. IF_STATUS_DOWN = 2,
  67. IF_STATUS_TESTING = 3,
  68. IF_STATUS_UNKNOWN = 4,
  69. IF_STATUS_DORMANT = 5,
  70. IF_STATUS_NOT_PRESENT = 6,
  71. IF_STATUS_LOWER_LAYER_DOWN = 7
  72. } IF_STATUS_ENUM;
  73. typedef struct IFOffloadCapability {
  74. ulong ifoc_OffloadFlags;
  75. ulong ifoc_IPSecOffloadFlags;
  76. } IFOffloadCapability;
  77. #endif // LLINFO_INCLUDED