[PATCH] Remove MODULE_PARM
[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_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  */
51 enum
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  */
87 enum
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  */
126 enum
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  */
151 enum
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 */
158         __UDP_MIB_MAX
159 };
160
161 /* sctp mib definitions */
162 /*
163  * draft-ietf-sigtran-sctp-mib-07.txt
164  */
165 enum
166 {
167         SCTP_MIB_NUM = 0,
168         SCTP_MIB_CURRESTAB,                     /* CurrEstab */
169         SCTP_MIB_ACTIVEESTABS,                  /* ActiveEstabs */
170         SCTP_MIB_PASSIVEESTABS,                 /* PassiveEstabs */
171         SCTP_MIB_ABORTEDS,                      /* Aborteds */
172         SCTP_MIB_SHUTDOWNS,                     /* Shutdowns */
173         SCTP_MIB_OUTOFBLUES,                    /* OutOfBlues */
174         SCTP_MIB_CHECKSUMERRORS,                /* ChecksumErrors */
175         SCTP_MIB_OUTCTRLCHUNKS,                 /* OutCtrlChunks */
176         SCTP_MIB_OUTORDERCHUNKS,                /* OutOrderChunks */
177         SCTP_MIB_OUTUNORDERCHUNKS,              /* OutUnorderChunks */
178         SCTP_MIB_INCTRLCHUNKS,                  /* InCtrlChunks */
179         SCTP_MIB_INORDERCHUNKS,                 /* InOrderChunks */
180         SCTP_MIB_INUNORDERCHUNKS,               /* InUnorderChunks */
181         SCTP_MIB_FRAGUSRMSGS,                   /* FragUsrMsgs */
182         SCTP_MIB_REASMUSRMSGS,                  /* ReasmUsrMsgs */
183         SCTP_MIB_OUTSCTPPACKS,                  /* OutSCTPPacks */
184         SCTP_MIB_INSCTPPACKS,                   /* InSCTPPacks */
185         SCTP_MIB_RTOALGORITHM,                  /* RtoAlgorithm */
186         SCTP_MIB_RTOMIN,                        /* RtoMin */
187         SCTP_MIB_RTOMAX,                        /* RtoMax */
188         SCTP_MIB_RTOINITIAL,                    /* RtoInitial */
189         SCTP_MIB_VALCOOKIELIFE,                 /* ValCookieLife */
190         SCTP_MIB_MAXINITRETR,                   /* MaxInitRetr */
191         __SCTP_MIB_MAX
192 };
193
194 /* linux mib definitions */
195 enum
196 {
197         LINUX_MIB_NUM = 0,
198         LINUX_MIB_SYNCOOKIESSENT,               /* SyncookiesSent */
199         LINUX_MIB_SYNCOOKIESRECV,               /* SyncookiesRecv */
200         LINUX_MIB_SYNCOOKIESFAILED,             /* SyncookiesFailed */
201         LINUX_MIB_EMBRYONICRSTS,                /* EmbryonicRsts */
202         LINUX_MIB_PRUNECALLED,                  /* PruneCalled */
203         LINUX_MIB_RCVPRUNED,                    /* RcvPruned */
204         LINUX_MIB_OFOPRUNED,                    /* OfoPruned */
205         LINUX_MIB_OUTOFWINDOWICMPS,             /* OutOfWindowIcmps */
206         LINUX_MIB_LOCKDROPPEDICMPS,             /* LockDroppedIcmps */
207         LINUX_MIB_ARPFILTER,                    /* ArpFilter */
208         LINUX_MIB_TIMEWAITED,                   /* TimeWaited */
209         LINUX_MIB_TIMEWAITRECYCLED,             /* TimeWaitRecycled */
210         LINUX_MIB_TIMEWAITKILLED,               /* TimeWaitKilled */
211         LINUX_MIB_PAWSPASSIVEREJECTED,          /* PAWSPassiveRejected */
212         LINUX_MIB_PAWSACTIVEREJECTED,           /* PAWSActiveRejected */
213         LINUX_MIB_PAWSESTABREJECTED,            /* PAWSEstabRejected */
214         LINUX_MIB_DELAYEDACKS,                  /* DelayedACKs */
215         LINUX_MIB_DELAYEDACKLOCKED,             /* DelayedACKLocked */
216         LINUX_MIB_DELAYEDACKLOST,               /* DelayedACKLost */
217         LINUX_MIB_LISTENOVERFLOWS,              /* ListenOverflows */
218         LINUX_MIB_LISTENDROPS,                  /* ListenDrops */
219         LINUX_MIB_TCPPREQUEUED,                 /* TCPPrequeued */
220         LINUX_MIB_TCPDIRECTCOPYFROMBACKLOG,     /* TCPDirectCopyFromBacklog */
221         LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE,    /* TCPDirectCopyFromPrequeue */
222         LINUX_MIB_TCPPREQUEUEDROPPED,           /* TCPPrequeueDropped */
223         LINUX_MIB_TCPHPHITS,                    /* TCPHPHits */
224         LINUX_MIB_TCPHPHITSTOUSER,              /* TCPHPHitsToUser */
225         LINUX_MIB_TCPPUREACKS,                  /* TCPPureAcks */
226         LINUX_MIB_TCPHPACKS,                    /* TCPHPAcks */
227         LINUX_MIB_TCPRENORECOVERY,              /* TCPRenoRecovery */
228         LINUX_MIB_TCPSACKRECOVERY,              /* TCPSackRecovery */
229         LINUX_MIB_TCPSACKRENEGING,              /* TCPSACKReneging */
230         LINUX_MIB_TCPFACKREORDER,               /* TCPFACKReorder */
231         LINUX_MIB_TCPSACKREORDER,               /* TCPSACKReorder */
232         LINUX_MIB_TCPRENOREORDER,               /* TCPRenoReorder */
233         LINUX_MIB_TCPTSREORDER,                 /* TCPTSReorder */
234         LINUX_MIB_TCPFULLUNDO,                  /* TCPFullUndo */
235         LINUX_MIB_TCPPARTIALUNDO,               /* TCPPartialUndo */
236         LINUX_MIB_TCPDSACKUNDO,                 /* TCPDSACKUndo */
237         LINUX_MIB_TCPLOSSUNDO,                  /* TCPLossUndo */
238         LINUX_MIB_TCPLOSS,                      /* TCPLoss */
239         LINUX_MIB_TCPLOSTRETRANSMIT,            /* TCPLostRetransmit */
240         LINUX_MIB_TCPRENOFAILURES,              /* TCPRenoFailures */
241         LINUX_MIB_TCPSACKFAILURES,              /* TCPSackFailures */
242         LINUX_MIB_TCPLOSSFAILURES,              /* TCPLossFailures */
243         LINUX_MIB_TCPFASTRETRANS,               /* TCPFastRetrans */
244         LINUX_MIB_TCPFORWARDRETRANS,            /* TCPForwardRetrans */
245         LINUX_MIB_TCPSLOWSTARTRETRANS,          /* TCPSlowStartRetrans */
246         LINUX_MIB_TCPTIMEOUTS,                  /* TCPTimeouts */
247         LINUX_MIB_TCPRENORECOVERYFAIL,          /* TCPRenoRecoveryFail */
248         LINUX_MIB_TCPSACKRECOVERYFAIL,          /* TCPSackRecoveryFail */
249         LINUX_MIB_TCPSCHEDULERFAILED,           /* TCPSchedulerFailed */
250         LINUX_MIB_TCPRCVCOLLAPSED,              /* TCPRcvCollapsed */
251         LINUX_MIB_TCPDSACKOLDSENT,              /* TCPDSACKOldSent */
252         LINUX_MIB_TCPDSACKOFOSENT,              /* TCPDSACKOfoSent */
253         LINUX_MIB_TCPDSACKRECV,                 /* TCPDSACKRecv */
254         LINUX_MIB_TCPDSACKOFORECV,              /* TCPDSACKOfoRecv */
255         LINUX_MIB_TCPABORTONSYN,                /* TCPAbortOnSyn */
256         LINUX_MIB_TCPABORTONDATA,               /* TCPAbortOnData */
257         LINUX_MIB_TCPABORTONCLOSE,              /* TCPAbortOnClose */
258         LINUX_MIB_TCPABORTONMEMORY,             /* TCPAbortOnMemory */
259         LINUX_MIB_TCPABORTONTIMEOUT,            /* TCPAbortOnTimeout */
260         LINUX_MIB_TCPABORTONLINGER,             /* TCPAbortOnLinger */
261         LINUX_MIB_TCPABORTFAILED,               /* TCPAbortFailed */
262         LINUX_MIB_TCPMEMORYPRESSURES,           /* TCPMemoryPressures */
263         __LINUX_MIB_MAX
264 };
265
266 #endif  /* _LINUX_SNMP_H */