Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
[linux-2.6] / include / linux / snmp.h
1 /*
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  */
18 enum
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_INBCASTPKTS,                /* InBcastPkts */
44         IPSTATS_MIB_OUTBCASTPKTS,               /* OutBcastPkts */
45         __IPSTATS_MIB_MAX
46 };
47
48 /* icmp mib definitions */
49 /*
50  * RFC 1213:  MIB-II ICMP Group
51  * RFC 2011 (updates 1213):  SNMPv2 MIB for IP: ICMP group
52  */
53 enum
54 {
55         ICMP_MIB_NUM = 0,
56         ICMP_MIB_INMSGS,                        /* InMsgs */
57         ICMP_MIB_INERRORS,                      /* InErrors */
58         ICMP_MIB_INDESTUNREACHS,                /* InDestUnreachs */
59         ICMP_MIB_INTIMEEXCDS,                   /* InTimeExcds */
60         ICMP_MIB_INPARMPROBS,                   /* InParmProbs */
61         ICMP_MIB_INSRCQUENCHS,                  /* InSrcQuenchs */
62         ICMP_MIB_INREDIRECTS,                   /* InRedirects */
63         ICMP_MIB_INECHOS,                       /* InEchos */
64         ICMP_MIB_INECHOREPS,                    /* InEchoReps */
65         ICMP_MIB_INTIMESTAMPS,                  /* InTimestamps */
66         ICMP_MIB_INTIMESTAMPREPS,               /* InTimestampReps */
67         ICMP_MIB_INADDRMASKS,                   /* InAddrMasks */
68         ICMP_MIB_INADDRMASKREPS,                /* InAddrMaskReps */
69         ICMP_MIB_OUTMSGS,                       /* OutMsgs */
70         ICMP_MIB_OUTERRORS,                     /* OutErrors */
71         ICMP_MIB_OUTDESTUNREACHS,               /* OutDestUnreachs */
72         ICMP_MIB_OUTTIMEEXCDS,                  /* OutTimeExcds */
73         ICMP_MIB_OUTPARMPROBS,                  /* OutParmProbs */
74         ICMP_MIB_OUTSRCQUENCHS,                 /* OutSrcQuenchs */
75         ICMP_MIB_OUTREDIRECTS,                  /* OutRedirects */
76         ICMP_MIB_OUTECHOS,                      /* OutEchos */
77         ICMP_MIB_OUTECHOREPS,                   /* OutEchoReps */
78         ICMP_MIB_OUTTIMESTAMPS,                 /* OutTimestamps */
79         ICMP_MIB_OUTTIMESTAMPREPS,              /* OutTimestampReps */
80         ICMP_MIB_OUTADDRMASKS,                  /* OutAddrMasks */
81         ICMP_MIB_OUTADDRMASKREPS,               /* OutAddrMaskReps */
82         __ICMP_MIB_MAX
83 };
84
85 /* icmp6 mib definitions */
86 /*
87  * RFC 2466:  ICMPv6-MIB
88  */
89 enum
90 {
91         ICMP6_MIB_NUM = 0,
92         ICMP6_MIB_INMSGS,                       /* InMsgs */
93         ICMP6_MIB_INERRORS,                     /* InErrors */
94         ICMP6_MIB_INDESTUNREACHS,               /* InDestUnreachs */
95         ICMP6_MIB_INPKTTOOBIGS,                 /* InPktTooBigs */
96         ICMP6_MIB_INTIMEEXCDS,                  /* InTimeExcds */
97         ICMP6_MIB_INPARMPROBLEMS,               /* InParmProblems */
98         ICMP6_MIB_INECHOS,                      /* InEchos */
99         ICMP6_MIB_INECHOREPLIES,                /* InEchoReplies */
100         ICMP6_MIB_INGROUPMEMBQUERIES,           /* InGroupMembQueries */
101         ICMP6_MIB_INGROUPMEMBRESPONSES,         /* InGroupMembResponses */
102         ICMP6_MIB_INGROUPMEMBREDUCTIONS,        /* InGroupMembReductions */
103         ICMP6_MIB_INROUTERSOLICITS,             /* InRouterSolicits */
104         ICMP6_MIB_INROUTERADVERTISEMENTS,       /* InRouterAdvertisements */
105         ICMP6_MIB_INNEIGHBORSOLICITS,           /* InNeighborSolicits */
106         ICMP6_MIB_INNEIGHBORADVERTISEMENTS,     /* InNeighborAdvertisements */
107         ICMP6_MIB_INREDIRECTS,                  /* InRedirects */
108         ICMP6_MIB_OUTMSGS,                      /* OutMsgs */
109         ICMP6_MIB_OUTDESTUNREACHS,              /* OutDestUnreachs */
110         ICMP6_MIB_OUTPKTTOOBIGS,                /* OutPktTooBigs */
111         ICMP6_MIB_OUTTIMEEXCDS,                 /* OutTimeExcds */
112         ICMP6_MIB_OUTPARMPROBLEMS,              /* OutParmProblems */
113         ICMP6_MIB_OUTECHOREPLIES,               /* OutEchoReplies */
114         ICMP6_MIB_OUTROUTERSOLICITS,            /* OutRouterSolicits */
115         ICMP6_MIB_OUTNEIGHBORSOLICITS,          /* OutNeighborSolicits */
116         ICMP6_MIB_OUTNEIGHBORADVERTISEMENTS,    /* OutNeighborAdvertisements */
117         ICMP6_MIB_OUTREDIRECTS,                 /* OutRedirects */
118         ICMP6_MIB_OUTGROUPMEMBRESPONSES,        /* OutGroupMembResponses */
119         ICMP6_MIB_OUTGROUPMEMBREDUCTIONS,       /* OutGroupMembReductions */
120         __ICMP6_MIB_MAX
121 };
122
123 /* tcp mib definitions */
124 /*
125  * RFC 1213:  MIB-II TCP group
126  * RFC 2012 (updates 1213):  SNMPv2-MIB-TCP
127  */
128 enum
129 {
130         TCP_MIB_NUM = 0,
131         TCP_MIB_RTOALGORITHM,                   /* RtoAlgorithm */
132         TCP_MIB_RTOMIN,                         /* RtoMin */
133         TCP_MIB_RTOMAX,                         /* RtoMax */
134         TCP_MIB_MAXCONN,                        /* MaxConn */
135         TCP_MIB_ACTIVEOPENS,                    /* ActiveOpens */
136         TCP_MIB_PASSIVEOPENS,                   /* PassiveOpens */
137         TCP_MIB_ATTEMPTFAILS,                   /* AttemptFails */
138         TCP_MIB_ESTABRESETS,                    /* EstabResets */
139         TCP_MIB_CURRESTAB,                      /* CurrEstab */
140         TCP_MIB_INSEGS,                         /* InSegs */
141         TCP_MIB_OUTSEGS,                        /* OutSegs */
142         TCP_MIB_RETRANSSEGS,                    /* RetransSegs */
143         TCP_MIB_INERRS,                         /* InErrs */
144         TCP_MIB_OUTRSTS,                        /* OutRsts */
145         __TCP_MIB_MAX
146 };
147
148 /* udp mib definitions */
149 /*
150  * RFC 1213:  MIB-II UDP group
151  * RFC 2013 (updates 1213):  SNMPv2-MIB-UDP
152  */
153 enum
154 {
155         UDP_MIB_NUM = 0,
156         UDP_MIB_INDATAGRAMS,                    /* InDatagrams */
157         UDP_MIB_NOPORTS,                        /* NoPorts */
158         UDP_MIB_INERRORS,                       /* InErrors */
159         UDP_MIB_OUTDATAGRAMS,                   /* OutDatagrams */
160         UDP_MIB_RCVBUFERRORS,                   /* RcvbufErrors */
161         UDP_MIB_SNDBUFERRORS,                   /* SndbufErrors */
162         __UDP_MIB_MAX
163 };
164
165 /* linux mib definitions */
166 enum
167 {
168         LINUX_MIB_NUM = 0,
169         LINUX_MIB_SYNCOOKIESSENT,               /* SyncookiesSent */
170         LINUX_MIB_SYNCOOKIESRECV,               /* SyncookiesRecv */
171         LINUX_MIB_SYNCOOKIESFAILED,             /* SyncookiesFailed */
172         LINUX_MIB_EMBRYONICRSTS,                /* EmbryonicRsts */
173         LINUX_MIB_PRUNECALLED,                  /* PruneCalled */
174         LINUX_MIB_RCVPRUNED,                    /* RcvPruned */
175         LINUX_MIB_OFOPRUNED,                    /* OfoPruned */
176         LINUX_MIB_OUTOFWINDOWICMPS,             /* OutOfWindowIcmps */
177         LINUX_MIB_LOCKDROPPEDICMPS,             /* LockDroppedIcmps */
178         LINUX_MIB_ARPFILTER,                    /* ArpFilter */
179         LINUX_MIB_TIMEWAITED,                   /* TimeWaited */
180         LINUX_MIB_TIMEWAITRECYCLED,             /* TimeWaitRecycled */
181         LINUX_MIB_TIMEWAITKILLED,               /* TimeWaitKilled */
182         LINUX_MIB_PAWSPASSIVEREJECTED,          /* PAWSPassiveRejected */
183         LINUX_MIB_PAWSACTIVEREJECTED,           /* PAWSActiveRejected */
184         LINUX_MIB_PAWSESTABREJECTED,            /* PAWSEstabRejected */
185         LINUX_MIB_DELAYEDACKS,                  /* DelayedACKs */
186         LINUX_MIB_DELAYEDACKLOCKED,             /* DelayedACKLocked */
187         LINUX_MIB_DELAYEDACKLOST,               /* DelayedACKLost */
188         LINUX_MIB_LISTENOVERFLOWS,              /* ListenOverflows */
189         LINUX_MIB_LISTENDROPS,                  /* ListenDrops */
190         LINUX_MIB_TCPPREQUEUED,                 /* TCPPrequeued */
191         LINUX_MIB_TCPDIRECTCOPYFROMBACKLOG,     /* TCPDirectCopyFromBacklog */
192         LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE,    /* TCPDirectCopyFromPrequeue */
193         LINUX_MIB_TCPPREQUEUEDROPPED,           /* TCPPrequeueDropped */
194         LINUX_MIB_TCPHPHITS,                    /* TCPHPHits */
195         LINUX_MIB_TCPHPHITSTOUSER,              /* TCPHPHitsToUser */
196         LINUX_MIB_TCPPUREACKS,                  /* TCPPureAcks */
197         LINUX_MIB_TCPHPACKS,                    /* TCPHPAcks */
198         LINUX_MIB_TCPRENORECOVERY,              /* TCPRenoRecovery */
199         LINUX_MIB_TCPSACKRECOVERY,              /* TCPSackRecovery */
200         LINUX_MIB_TCPSACKRENEGING,              /* TCPSACKReneging */
201         LINUX_MIB_TCPFACKREORDER,               /* TCPFACKReorder */
202         LINUX_MIB_TCPSACKREORDER,               /* TCPSACKReorder */
203         LINUX_MIB_TCPRENOREORDER,               /* TCPRenoReorder */
204         LINUX_MIB_TCPTSREORDER,                 /* TCPTSReorder */
205         LINUX_MIB_TCPFULLUNDO,                  /* TCPFullUndo */
206         LINUX_MIB_TCPPARTIALUNDO,               /* TCPPartialUndo */
207         LINUX_MIB_TCPDSACKUNDO,                 /* TCPDSACKUndo */
208         LINUX_MIB_TCPLOSSUNDO,                  /* TCPLossUndo */
209         LINUX_MIB_TCPLOSS,                      /* TCPLoss */
210         LINUX_MIB_TCPLOSTRETRANSMIT,            /* TCPLostRetransmit */
211         LINUX_MIB_TCPRENOFAILURES,              /* TCPRenoFailures */
212         LINUX_MIB_TCPSACKFAILURES,              /* TCPSackFailures */
213         LINUX_MIB_TCPLOSSFAILURES,              /* TCPLossFailures */
214         LINUX_MIB_TCPFASTRETRANS,               /* TCPFastRetrans */
215         LINUX_MIB_TCPFORWARDRETRANS,            /* TCPForwardRetrans */
216         LINUX_MIB_TCPSLOWSTARTRETRANS,          /* TCPSlowStartRetrans */
217         LINUX_MIB_TCPTIMEOUTS,                  /* TCPTimeouts */
218         LINUX_MIB_TCPRENORECOVERYFAIL,          /* TCPRenoRecoveryFail */
219         LINUX_MIB_TCPSACKRECOVERYFAIL,          /* TCPSackRecoveryFail */
220         LINUX_MIB_TCPSCHEDULERFAILED,           /* TCPSchedulerFailed */
221         LINUX_MIB_TCPRCVCOLLAPSED,              /* TCPRcvCollapsed */
222         LINUX_MIB_TCPDSACKOLDSENT,              /* TCPDSACKOldSent */
223         LINUX_MIB_TCPDSACKOFOSENT,              /* TCPDSACKOfoSent */
224         LINUX_MIB_TCPDSACKRECV,                 /* TCPDSACKRecv */
225         LINUX_MIB_TCPDSACKOFORECV,              /* TCPDSACKOfoRecv */
226         LINUX_MIB_TCPABORTONSYN,                /* TCPAbortOnSyn */
227         LINUX_MIB_TCPABORTONDATA,               /* TCPAbortOnData */
228         LINUX_MIB_TCPABORTONCLOSE,              /* TCPAbortOnClose */
229         LINUX_MIB_TCPABORTONMEMORY,             /* TCPAbortOnMemory */
230         LINUX_MIB_TCPABORTONTIMEOUT,            /* TCPAbortOnTimeout */
231         LINUX_MIB_TCPABORTONLINGER,             /* TCPAbortOnLinger */
232         LINUX_MIB_TCPABORTFAILED,               /* TCPAbortFailed */
233         LINUX_MIB_TCPMEMORYPRESSURES,           /* TCPMemoryPressures */
234         __LINUX_MIB_MAX
235 };
236
237 #endif  /* _LINUX_SNMP_H */