blob: 854aa6b543f1037c34c12e9de083185eaabed0d5 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Definitions for MIBs
3 *
4 * Author: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
5 */
6
7#ifndef _LINUX_SNMP_H
8#define _LINUX_SNMP_H
9
10/* ipstats mib definitions */
11/*
12 * RFC 1213: MIB-II
13 * RFC 2011 (updates 1213): SNMPv2-MIB-IP
14 * RFC 2863: Interfaces Group MIB
15 * RFC 2465: IPv6 MIB: General Group
16 * draft-ietf-ipv6-rfc2011-update-10.txt: MIB for IP: IP Statistics Tables
17 */
18enum
19{
20 IPSTATS_MIB_NUM = 0,
21 IPSTATS_MIB_INRECEIVES, /* InReceives */
22 IPSTATS_MIB_INHDRERRORS, /* InHdrErrors */
23 IPSTATS_MIB_INTOOBIGERRORS, /* InTooBigErrors */
24 IPSTATS_MIB_INNOROUTES, /* InNoRoutes */
25 IPSTATS_MIB_INADDRERRORS, /* InAddrErrors */
26 IPSTATS_MIB_INUNKNOWNPROTOS, /* InUnknownProtos */
27 IPSTATS_MIB_INTRUNCATEDPKTS, /* InTruncatedPkts */
28 IPSTATS_MIB_INDISCARDS, /* InDiscards */
29 IPSTATS_MIB_INDELIVERS, /* InDelivers */
30 IPSTATS_MIB_OUTFORWDATAGRAMS, /* OutForwDatagrams */
31 IPSTATS_MIB_OUTREQUESTS, /* OutRequests */
32 IPSTATS_MIB_OUTDISCARDS, /* OutDiscards */
33 IPSTATS_MIB_OUTNOROUTES, /* OutNoRoutes */
34 IPSTATS_MIB_REASMTIMEOUT, /* ReasmTimeout */
35 IPSTATS_MIB_REASMREQDS, /* ReasmReqds */
36 IPSTATS_MIB_REASMOKS, /* ReasmOKs */
37 IPSTATS_MIB_REASMFAILS, /* ReasmFails */
38 IPSTATS_MIB_FRAGOKS, /* FragOKs */
39 IPSTATS_MIB_FRAGFAILS, /* FragFails */
40 IPSTATS_MIB_FRAGCREATES, /* FragCreates */
41 IPSTATS_MIB_INMCASTPKTS, /* InMcastPkts */
42 IPSTATS_MIB_OUTMCASTPKTS, /* OutMcastPkts */
43 __IPSTATS_MIB_MAX
44};
45
46/* icmp mib definitions */
47/*
48 * RFC 1213: MIB-II ICMP Group
49 * RFC 2011 (updates 1213): SNMPv2 MIB for IP: ICMP group
50 */
51enum
52{
53 ICMP_MIB_NUM = 0,
54 ICMP_MIB_INMSGS, /* InMsgs */
55 ICMP_MIB_INERRORS, /* InErrors */
56 ICMP_MIB_INDESTUNREACHS, /* InDestUnreachs */
57 ICMP_MIB_INTIMEEXCDS, /* InTimeExcds */
58 ICMP_MIB_INPARMPROBS, /* InParmProbs */
59 ICMP_MIB_INSRCQUENCHS, /* InSrcQuenchs */
60 ICMP_MIB_INREDIRECTS, /* InRedirects */
61 ICMP_MIB_INECHOS, /* InEchos */
62 ICMP_MIB_INECHOREPS, /* InEchoReps */
63 ICMP_MIB_INTIMESTAMPS, /* InTimestamps */
64 ICMP_MIB_INTIMESTAMPREPS, /* InTimestampReps */
65 ICMP_MIB_INADDRMASKS, /* InAddrMasks */
66 ICMP_MIB_INADDRMASKREPS, /* InAddrMaskReps */
67 ICMP_MIB_OUTMSGS, /* OutMsgs */
68 ICMP_MIB_OUTERRORS, /* OutErrors */
69 ICMP_MIB_OUTDESTUNREACHS, /* OutDestUnreachs */
70 ICMP_MIB_OUTTIMEEXCDS, /* OutTimeExcds */
71 ICMP_MIB_OUTPARMPROBS, /* OutParmProbs */
72 ICMP_MIB_OUTSRCQUENCHS, /* OutSrcQuenchs */
73 ICMP_MIB_OUTREDIRECTS, /* OutRedirects */
74 ICMP_MIB_OUTECHOS, /* OutEchos */
75 ICMP_MIB_OUTECHOREPS, /* OutEchoReps */
76 ICMP_MIB_OUTTIMESTAMPS, /* OutTimestamps */
77 ICMP_MIB_OUTTIMESTAMPREPS, /* OutTimestampReps */
78 ICMP_MIB_OUTADDRMASKS, /* OutAddrMasks */
79 ICMP_MIB_OUTADDRMASKREPS, /* OutAddrMaskReps */
80 __ICMP_MIB_MAX
81};
82
83/* icmp6 mib definitions */
84/*
85 * RFC 2466: ICMPv6-MIB
86 */
87enum
88{
89 ICMP6_MIB_NUM = 0,
90 ICMP6_MIB_INMSGS, /* InMsgs */
91 ICMP6_MIB_INERRORS, /* InErrors */
92 ICMP6_MIB_INDESTUNREACHS, /* InDestUnreachs */
93 ICMP6_MIB_INPKTTOOBIGS, /* InPktTooBigs */
94 ICMP6_MIB_INTIMEEXCDS, /* InTimeExcds */
95 ICMP6_MIB_INPARMPROBLEMS, /* InParmProblems */
96 ICMP6_MIB_INECHOS, /* InEchos */
97 ICMP6_MIB_INECHOREPLIES, /* InEchoReplies */
98 ICMP6_MIB_INGROUPMEMBQUERIES, /* InGroupMembQueries */
99 ICMP6_MIB_INGROUPMEMBRESPONSES, /* InGroupMembResponses */
100 ICMP6_MIB_INGROUPMEMBREDUCTIONS, /* InGroupMembReductions */
101 ICMP6_MIB_INROUTERSOLICITS, /* InRouterSolicits */
102 ICMP6_MIB_INROUTERADVERTISEMENTS, /* InRouterAdvertisements */
103 ICMP6_MIB_INNEIGHBORSOLICITS, /* InNeighborSolicits */
104 ICMP6_MIB_INNEIGHBORADVERTISEMENTS, /* InNeighborAdvertisements */
105 ICMP6_MIB_INREDIRECTS, /* InRedirects */
106 ICMP6_MIB_OUTMSGS, /* OutMsgs */
107 ICMP6_MIB_OUTDESTUNREACHS, /* OutDestUnreachs */
108 ICMP6_MIB_OUTPKTTOOBIGS, /* OutPktTooBigs */
109 ICMP6_MIB_OUTTIMEEXCDS, /* OutTimeExcds */
110 ICMP6_MIB_OUTPARMPROBLEMS, /* OutParmProblems */
111 ICMP6_MIB_OUTECHOREPLIES, /* OutEchoReplies */
112 ICMP6_MIB_OUTROUTERSOLICITS, /* OutRouterSolicits */
113 ICMP6_MIB_OUTNEIGHBORSOLICITS, /* OutNeighborSolicits */
114 ICMP6_MIB_OUTNEIGHBORADVERTISEMENTS, /* OutNeighborAdvertisements */
115 ICMP6_MIB_OUTREDIRECTS, /* OutRedirects */
116 ICMP6_MIB_OUTGROUPMEMBRESPONSES, /* OutGroupMembResponses */
117 ICMP6_MIB_OUTGROUPMEMBREDUCTIONS, /* OutGroupMembReductions */
118 __ICMP6_MIB_MAX
119};
120
121/* tcp mib definitions */
122/*
123 * RFC 1213: MIB-II TCP group
124 * RFC 2012 (updates 1213): SNMPv2-MIB-TCP
125 */
126enum
127{
128 TCP_MIB_NUM = 0,
129 TCP_MIB_RTOALGORITHM, /* RtoAlgorithm */
130 TCP_MIB_RTOMIN, /* RtoMin */
131 TCP_MIB_RTOMAX, /* RtoMax */
132 TCP_MIB_MAXCONN, /* MaxConn */
133 TCP_MIB_ACTIVEOPENS, /* ActiveOpens */
134 TCP_MIB_PASSIVEOPENS, /* PassiveOpens */
135 TCP_MIB_ATTEMPTFAILS, /* AttemptFails */
136 TCP_MIB_ESTABRESETS, /* EstabResets */
137 TCP_MIB_CURRESTAB, /* CurrEstab */
138 TCP_MIB_INSEGS, /* InSegs */
139 TCP_MIB_OUTSEGS, /* OutSegs */
140 TCP_MIB_RETRANSSEGS, /* RetransSegs */
141 TCP_MIB_INERRS, /* InErrs */
142 TCP_MIB_OUTRSTS, /* OutRsts */
143 __TCP_MIB_MAX
144};
145
146/* udp mib definitions */
147/*
148 * RFC 1213: MIB-II UDP group
149 * RFC 2013 (updates 1213): SNMPv2-MIB-UDP
150 */
151enum
152{
153 UDP_MIB_NUM = 0,
154 UDP_MIB_INDATAGRAMS, /* InDatagrams */
155 UDP_MIB_NOPORTS, /* NoPorts */
156 UDP_MIB_INERRORS, /* InErrors */
157 UDP_MIB_OUTDATAGRAMS, /* OutDatagrams */
Martin Bligh81aa6462006-08-14 23:57:10 -0700158 UDP_MIB_RCVBUFERRORS, /* RcvbufErrors */
159 UDP_MIB_SNDBUFERRORS, /* SndbufErrors */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160 __UDP_MIB_MAX
161};
162
Linus Torvalds1da177e2005-04-16 15:20:36 -0700163/* linux mib definitions */
164enum
165{
166 LINUX_MIB_NUM = 0,
167 LINUX_MIB_SYNCOOKIESSENT, /* SyncookiesSent */
168 LINUX_MIB_SYNCOOKIESRECV, /* SyncookiesRecv */
169 LINUX_MIB_SYNCOOKIESFAILED, /* SyncookiesFailed */
170 LINUX_MIB_EMBRYONICRSTS, /* EmbryonicRsts */
171 LINUX_MIB_PRUNECALLED, /* PruneCalled */
172 LINUX_MIB_RCVPRUNED, /* RcvPruned */
173 LINUX_MIB_OFOPRUNED, /* OfoPruned */
174 LINUX_MIB_OUTOFWINDOWICMPS, /* OutOfWindowIcmps */
175 LINUX_MIB_LOCKDROPPEDICMPS, /* LockDroppedIcmps */
176 LINUX_MIB_ARPFILTER, /* ArpFilter */
177 LINUX_MIB_TIMEWAITED, /* TimeWaited */
178 LINUX_MIB_TIMEWAITRECYCLED, /* TimeWaitRecycled */
179 LINUX_MIB_TIMEWAITKILLED, /* TimeWaitKilled */
180 LINUX_MIB_PAWSPASSIVEREJECTED, /* PAWSPassiveRejected */
181 LINUX_MIB_PAWSACTIVEREJECTED, /* PAWSActiveRejected */
182 LINUX_MIB_PAWSESTABREJECTED, /* PAWSEstabRejected */
183 LINUX_MIB_DELAYEDACKS, /* DelayedACKs */
184 LINUX_MIB_DELAYEDACKLOCKED, /* DelayedACKLocked */
185 LINUX_MIB_DELAYEDACKLOST, /* DelayedACKLost */
186 LINUX_MIB_LISTENOVERFLOWS, /* ListenOverflows */
187 LINUX_MIB_LISTENDROPS, /* ListenDrops */
188 LINUX_MIB_TCPPREQUEUED, /* TCPPrequeued */
189 LINUX_MIB_TCPDIRECTCOPYFROMBACKLOG, /* TCPDirectCopyFromBacklog */
190 LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, /* TCPDirectCopyFromPrequeue */
191 LINUX_MIB_TCPPREQUEUEDROPPED, /* TCPPrequeueDropped */
192 LINUX_MIB_TCPHPHITS, /* TCPHPHits */
193 LINUX_MIB_TCPHPHITSTOUSER, /* TCPHPHitsToUser */
194 LINUX_MIB_TCPPUREACKS, /* TCPPureAcks */
195 LINUX_MIB_TCPHPACKS, /* TCPHPAcks */
196 LINUX_MIB_TCPRENORECOVERY, /* TCPRenoRecovery */
197 LINUX_MIB_TCPSACKRECOVERY, /* TCPSackRecovery */
198 LINUX_MIB_TCPSACKRENEGING, /* TCPSACKReneging */
199 LINUX_MIB_TCPFACKREORDER, /* TCPFACKReorder */
200 LINUX_MIB_TCPSACKREORDER, /* TCPSACKReorder */
201 LINUX_MIB_TCPRENOREORDER, /* TCPRenoReorder */
202 LINUX_MIB_TCPTSREORDER, /* TCPTSReorder */
203 LINUX_MIB_TCPFULLUNDO, /* TCPFullUndo */
204 LINUX_MIB_TCPPARTIALUNDO, /* TCPPartialUndo */
205 LINUX_MIB_TCPDSACKUNDO, /* TCPDSACKUndo */
206 LINUX_MIB_TCPLOSSUNDO, /* TCPLossUndo */
207 LINUX_MIB_TCPLOSS, /* TCPLoss */
208 LINUX_MIB_TCPLOSTRETRANSMIT, /* TCPLostRetransmit */
209 LINUX_MIB_TCPRENOFAILURES, /* TCPRenoFailures */
210 LINUX_MIB_TCPSACKFAILURES, /* TCPSackFailures */
211 LINUX_MIB_TCPLOSSFAILURES, /* TCPLossFailures */
212 LINUX_MIB_TCPFASTRETRANS, /* TCPFastRetrans */
213 LINUX_MIB_TCPFORWARDRETRANS, /* TCPForwardRetrans */
214 LINUX_MIB_TCPSLOWSTARTRETRANS, /* TCPSlowStartRetrans */
215 LINUX_MIB_TCPTIMEOUTS, /* TCPTimeouts */
216 LINUX_MIB_TCPRENORECOVERYFAIL, /* TCPRenoRecoveryFail */
217 LINUX_MIB_TCPSACKRECOVERYFAIL, /* TCPSackRecoveryFail */
218 LINUX_MIB_TCPSCHEDULERFAILED, /* TCPSchedulerFailed */
219 LINUX_MIB_TCPRCVCOLLAPSED, /* TCPRcvCollapsed */
220 LINUX_MIB_TCPDSACKOLDSENT, /* TCPDSACKOldSent */
221 LINUX_MIB_TCPDSACKOFOSENT, /* TCPDSACKOfoSent */
222 LINUX_MIB_TCPDSACKRECV, /* TCPDSACKRecv */
223 LINUX_MIB_TCPDSACKOFORECV, /* TCPDSACKOfoRecv */
224 LINUX_MIB_TCPABORTONSYN, /* TCPAbortOnSyn */
225 LINUX_MIB_TCPABORTONDATA, /* TCPAbortOnData */
226 LINUX_MIB_TCPABORTONCLOSE, /* TCPAbortOnClose */
227 LINUX_MIB_TCPABORTONMEMORY, /* TCPAbortOnMemory */
228 LINUX_MIB_TCPABORTONTIMEOUT, /* TCPAbortOnTimeout */
229 LINUX_MIB_TCPABORTONLINGER, /* TCPAbortOnLinger */
230 LINUX_MIB_TCPABORTFAILED, /* TCPAbortFailed */
231 LINUX_MIB_TCPMEMORYPRESSURES, /* TCPMemoryPressures */
232 __LINUX_MIB_MAX
233};
234
235#endif /* _LINUX_SNMP_H */