blob: 7889a01d1e19e0191d1357f610e7ea17cad2da99 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
/********************************************************************/
/** Microsoft LAN Manager **/
/** Copyright(c) Microsoft Corp., 1990-1992 **/
/********************************************************************/
/* :ts=4 */
//** IPINFO.H - IP SNMP information definitions..
//
// This file contains all of the definitions for IP that are
// related to SNMP information gathering.
#ifndef IPINFO_INCLUDED
#define IPINFO_INCLUDED
#ifndef CTE_TYPEDEFS_DEFINED
#define CTE_TYPEDEFS_DEFINED
typedef unsigned long ulong;
typedef unsigned short ushort;
typedef unsigned char uchar;
typedef unsigned int uint;
#endif // CTE_TYPEDEFS_DEFINED
typedef struct IPSNMPInfo {
ulong ipsi_forwarding;
ulong ipsi_defaultttl;
ulong ipsi_inreceives;
ulong ipsi_inhdrerrors;
ulong ipsi_inaddrerrors;
ulong ipsi_forwdatagrams;
ulong ipsi_inunknownprotos;
ulong ipsi_indiscards;
ulong ipsi_indelivers;
ulong ipsi_outrequests;
ulong ipsi_routingdiscards;
ulong ipsi_outdiscards;
ulong ipsi_outnoroutes;
ulong ipsi_reasmtimeout;
ulong ipsi_reasmreqds;
ulong ipsi_reasmoks;
ulong ipsi_reasmfails;
ulong ipsi_fragoks;
ulong ipsi_fragfails;
ulong ipsi_fragcreates;
ulong ipsi_numif;
ulong ipsi_numaddr;
ulong ipsi_numroutes;
} IPSNMPInfo;
typedef struct ICMPStats {
ulong icmps_msgs;
ulong icmps_errors;
ulong icmps_destunreachs;
ulong icmps_timeexcds;
ulong icmps_parmprobs;
ulong icmps_srcquenchs;
ulong icmps_redirects;
ulong icmps_echos;
ulong icmps_echoreps;
ulong icmps_timestamps;
ulong icmps_timestampreps;
ulong icmps_addrmasks;
ulong icmps_addrmaskreps;
} ICMPStats;
typedef struct ICMPSNMPInfo {
ICMPStats icsi_instats;
ICMPStats icsi_outstats;
} ICMPSNMPInfo;
#define IP_FORWARDING 1
#define IP_NOT_FORWARDING 2
typedef struct IPAddrEntry {
ulong iae_addr;
ulong iae_index;
ulong iae_mask;
ulong iae_bcastaddr;
ulong iae_reasmsize;
ushort iae_context;
ushort iae_pad;
} IPAddrEntry;
typedef struct IPRouteEntry {
ulong ire_dest;
ulong ire_index;
ulong ire_metric1;
ulong ire_metric2;
ulong ire_metric3;
ulong ire_metric4;
ulong ire_nexthop;
ulong ire_type;
ulong ire_proto;
ulong ire_age;
ulong ire_mask;
ulong ire_metric5;
void *ire_context;
} IPRouteEntry;
typedef struct AddrXlatInfo {
ulong axi_count;
ulong axi_index;
} AddrXlatInfo;
#define IRE_TYPE_OTHER 1
#define IRE_TYPE_INVALID 2
#define IRE_TYPE_DIRECT 3
#define IRE_TYPE_INDIRECT 4
#define IRE_PROTO_OTHER 1
#define IRE_PROTO_LOCAL 2
#define IRE_PROTO_NETMGMT 3
#define IRE_PROTO_ICMP 4
#define IRE_PROTO_EGP 5
#define IRE_PROTO_GGP 6
#define IRE_PROTO_HELLO 7
#define IRE_PROTO_RIP 8
#define IRE_PROTO_IS_IS 9
#define IRE_PROTO_ES_IS 10
#define IRE_PROTO_CISCO 11
#define IRE_PROTO_BBN 12
#define IRE_PROTO_OSPF 13
#define IRE_PROTO_BGP 14
#define IRE_METRIC_UNUSED 0xffffffff
#define IP_MIB_STATS_ID 1
#define ICMP_MIB_STATS_ID 1
#define AT_MIB_ADDRXLAT_INFO_ID 1
#define AT_MIB_ADDRXLAT_ENTRY_ID 0x101
#define IP_MIB_RTTABLE_ENTRY_ID 0x101
#define IP_MIB_ADDRTABLE_ENTRY_ID 0x102
#define IP_INTFC_FLAG_P2P 1
typedef struct IPInterfaceInfo {
ulong iii_flags;
ulong iii_mtu;
ulong iii_speed;
ulong iii_addrlength;
uchar iii_addr[1];
} IPInterfaceInfo;
#define IP_INTFC_INFO_ID 0x103
#endif // IPINFO_INCLUDED
|