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.

89 lines
2.1 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990-1992 **/
  4. /********************************************************************/
  5. /* :ts=4 */
  6. //** LLINFO.H - Lower layer SNMP information definitions.
  7. //
  8. // This file contains all of the definitions for SNMP information collected
  9. // by layers below IP.
  10. #ifndef LLINFO_INCLUDED
  11. #define LLINFO_INCLUDED
  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 MAX_PHYSADDR_SIZE 8
  21. typedef struct IPNetToMediaEntry {
  22. ulong inme_index;
  23. ulong inme_physaddrlen;
  24. uchar inme_physaddr[MAX_PHYSADDR_SIZE];
  25. ulong inme_addr;
  26. ulong inme_type;
  27. } IPNetToMediaEntry;
  28. #define INME_TYPE_OTHER 1
  29. #define INME_TYPE_INVALID 2
  30. #define INME_TYPE_DYNAMIC 3
  31. #define INME_TYPE_STATIC 4
  32. #define MAX_IFDESCR_LEN 256
  33. #define IFE_FIXED_SIZE offsetof(struct IFEntry, if_descr)
  34. typedef struct IFEntry {
  35. ulong if_index;
  36. ulong if_type;
  37. ulong if_mtu;
  38. ulong if_speed;
  39. ulong if_physaddrlen;
  40. uchar if_physaddr[MAX_PHYSADDR_SIZE];
  41. ulong if_adminstatus;
  42. ulong if_operstatus;
  43. ulong if_lastchange;
  44. ulong if_inoctets;
  45. ulong if_inucastpkts;
  46. ulong if_innucastpkts;
  47. ulong if_indiscards;
  48. ulong if_inerrors;
  49. ulong if_inunknownprotos;
  50. ulong if_outoctets;
  51. ulong if_outucastpkts;
  52. ulong if_outnucastpkts;
  53. ulong if_outdiscards;
  54. ulong if_outerrors;
  55. ulong if_outqlen;
  56. ulong if_descrlen;
  57. uchar if_descr[1];
  58. } IFEntry;
  59. #define IF_TYPE_OTHER 1
  60. #define IF_TYPE_ETHERNET 6
  61. #define IF_TYPE_TOKENRING 9
  62. #define IF_TYPE_FDDI 15
  63. #define IF_TYPE_PPP 23
  64. #define IF_TYPE_LOOPBACK 24
  65. #define IF_TYPE_SLIP 28
  66. #define IF_STATUS_UP 1
  67. #define IF_STATUS_DOWN 2
  68. #define IF_STATUS_TESTING 3
  69. #endif // LLINFO_INCLUDED