4 #define IF_MIB_STATS_ID 1
5 #define MAX_PHYSADDR_SIZE 8
6 #define MAX_IFDESCR_LEN 256
8 /* ID to use for requesting an IFEntry for an interface */
9 #define IF_MIB_STATS_ID 1
11 /* ID to use for requesting an IPSNMPInfo for an interface */
12 #define IP_MIB_STATS_ID 1
14 /* ID to use for requesting the route table */
15 #define IP_MIB_ROUTETABLE_ENTRY_ID 0x101
16 #define IP_MIB_ADDRTABLE_ENTRY_ID 0x102
18 typedef struct IFEntry
{
24 UCHAR if_physaddr
[MAX_PHYSADDR_SIZE
];
30 ULONG if_innucastpkts
;
33 ULONG if_inunknownprotos
;
35 ULONG if_outucastpkts
;
36 ULONG if_outnucastpkts
;
44 // As in the mib from RFC 1213
46 typedef struct _IPRouteEntry
{
48 ULONG ire_index
; //matches if_index in IFEntry and iae_index in IPAddrEntry
62 typedef struct _IPAddrEntry
{
72 typedef struct _IPSNMPInfo
{
74 ULONG ipsi_forwarding
;
75 ULONG ipsi_defaultttl
;
76 ULONG ipsi_inreceives
;
77 ULONG ipsi_inhdrerrors
;
78 ULONG ipsi_inaddrerrors
;
79 ULONG ipsi_inunknownprotos
;
80 ULONG ipsi_indiscards
;
81 ULONG ipsi_indelivers
;
82 ULONG ipsi_outrequests
;
83 ULONG ipsi_routingdiscards
;
84 ULONG ipsi_outdiscards
;
85 ULONG ipsi_outnoroutes
;
86 ULONG ipsi_reasmtimeout
;
87 ULONG ipsi_reasmreqds
;
89 ULONG ipsi_reasmfails
;
92 ULONG ipsi_fragcreates
;
98 #endif /* TCPMISC_H */