Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 */ |
Mitsuru Chinen | 71ff6c0 | 2007-04-30 00:45:02 -0700 | [diff] [blame] | 43 | IPSTATS_MIB_INBCASTPKTS, /* InBcastPkts */ |
| 44 | IPSTATS_MIB_OUTBCASTPKTS, /* OutBcastPkts */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
David L Stevens | 96793b4 | 2007-09-17 09:57:33 -0700 | [diff] [blame] | 85 | #define __ICMPMSG_MIB_MAX 512 /* Out+In for all 8-bit ICMP types */ |
| 86 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 | /* icmp6 mib definitions */ |
| 88 | /* |
| 89 | * RFC 2466: ICMPv6-MIB |
| 90 | */ |
| 91 | enum |
| 92 | { |
| 93 | ICMP6_MIB_NUM = 0, |
| 94 | ICMP6_MIB_INMSGS, /* InMsgs */ |
| 95 | ICMP6_MIB_INERRORS, /* InErrors */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 96 | ICMP6_MIB_OUTMSGS, /* OutMsgs */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | __ICMP6_MIB_MAX |
| 98 | }; |
| 99 | |
David L Stevens | 14878f7 | 2007-09-16 16:52:35 -0700 | [diff] [blame] | 100 | #define __ICMP6MSG_MIB_MAX 512 /* Out+In for all 8-bit ICMPv6 types */ |
| 101 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 102 | /* tcp mib definitions */ |
| 103 | /* |
| 104 | * RFC 1213: MIB-II TCP group |
| 105 | * RFC 2012 (updates 1213): SNMPv2-MIB-TCP |
| 106 | */ |
| 107 | enum |
| 108 | { |
| 109 | TCP_MIB_NUM = 0, |
| 110 | TCP_MIB_RTOALGORITHM, /* RtoAlgorithm */ |
| 111 | TCP_MIB_RTOMIN, /* RtoMin */ |
| 112 | TCP_MIB_RTOMAX, /* RtoMax */ |
| 113 | TCP_MIB_MAXCONN, /* MaxConn */ |
| 114 | TCP_MIB_ACTIVEOPENS, /* ActiveOpens */ |
| 115 | TCP_MIB_PASSIVEOPENS, /* PassiveOpens */ |
| 116 | TCP_MIB_ATTEMPTFAILS, /* AttemptFails */ |
| 117 | TCP_MIB_ESTABRESETS, /* EstabResets */ |
| 118 | TCP_MIB_CURRESTAB, /* CurrEstab */ |
| 119 | TCP_MIB_INSEGS, /* InSegs */ |
| 120 | TCP_MIB_OUTSEGS, /* OutSegs */ |
| 121 | TCP_MIB_RETRANSSEGS, /* RetransSegs */ |
| 122 | TCP_MIB_INERRS, /* InErrs */ |
| 123 | TCP_MIB_OUTRSTS, /* OutRsts */ |
| 124 | __TCP_MIB_MAX |
| 125 | }; |
| 126 | |
| 127 | /* udp mib definitions */ |
| 128 | /* |
| 129 | * RFC 1213: MIB-II UDP group |
| 130 | * RFC 2013 (updates 1213): SNMPv2-MIB-UDP |
| 131 | */ |
| 132 | enum |
| 133 | { |
| 134 | UDP_MIB_NUM = 0, |
| 135 | UDP_MIB_INDATAGRAMS, /* InDatagrams */ |
| 136 | UDP_MIB_NOPORTS, /* NoPorts */ |
| 137 | UDP_MIB_INERRORS, /* InErrors */ |
| 138 | UDP_MIB_OUTDATAGRAMS, /* OutDatagrams */ |
Martin Bligh | 81aa646 | 2006-08-14 23:57:10 -0700 | [diff] [blame] | 139 | UDP_MIB_RCVBUFERRORS, /* RcvbufErrors */ |
| 140 | UDP_MIB_SNDBUFERRORS, /* SndbufErrors */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 141 | __UDP_MIB_MAX |
| 142 | }; |
| 143 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 144 | /* linux mib definitions */ |
| 145 | enum |
| 146 | { |
| 147 | LINUX_MIB_NUM = 0, |
| 148 | LINUX_MIB_SYNCOOKIESSENT, /* SyncookiesSent */ |
| 149 | LINUX_MIB_SYNCOOKIESRECV, /* SyncookiesRecv */ |
| 150 | LINUX_MIB_SYNCOOKIESFAILED, /* SyncookiesFailed */ |
| 151 | LINUX_MIB_EMBRYONICRSTS, /* EmbryonicRsts */ |
| 152 | LINUX_MIB_PRUNECALLED, /* PruneCalled */ |
| 153 | LINUX_MIB_RCVPRUNED, /* RcvPruned */ |
| 154 | LINUX_MIB_OFOPRUNED, /* OfoPruned */ |
| 155 | LINUX_MIB_OUTOFWINDOWICMPS, /* OutOfWindowIcmps */ |
| 156 | LINUX_MIB_LOCKDROPPEDICMPS, /* LockDroppedIcmps */ |
| 157 | LINUX_MIB_ARPFILTER, /* ArpFilter */ |
| 158 | LINUX_MIB_TIMEWAITED, /* TimeWaited */ |
| 159 | LINUX_MIB_TIMEWAITRECYCLED, /* TimeWaitRecycled */ |
| 160 | LINUX_MIB_TIMEWAITKILLED, /* TimeWaitKilled */ |
| 161 | LINUX_MIB_PAWSPASSIVEREJECTED, /* PAWSPassiveRejected */ |
| 162 | LINUX_MIB_PAWSACTIVEREJECTED, /* PAWSActiveRejected */ |
| 163 | LINUX_MIB_PAWSESTABREJECTED, /* PAWSEstabRejected */ |
| 164 | LINUX_MIB_DELAYEDACKS, /* DelayedACKs */ |
| 165 | LINUX_MIB_DELAYEDACKLOCKED, /* DelayedACKLocked */ |
| 166 | LINUX_MIB_DELAYEDACKLOST, /* DelayedACKLost */ |
| 167 | LINUX_MIB_LISTENOVERFLOWS, /* ListenOverflows */ |
| 168 | LINUX_MIB_LISTENDROPS, /* ListenDrops */ |
| 169 | LINUX_MIB_TCPPREQUEUED, /* TCPPrequeued */ |
| 170 | LINUX_MIB_TCPDIRECTCOPYFROMBACKLOG, /* TCPDirectCopyFromBacklog */ |
| 171 | LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, /* TCPDirectCopyFromPrequeue */ |
| 172 | LINUX_MIB_TCPPREQUEUEDROPPED, /* TCPPrequeueDropped */ |
| 173 | LINUX_MIB_TCPHPHITS, /* TCPHPHits */ |
| 174 | LINUX_MIB_TCPHPHITSTOUSER, /* TCPHPHitsToUser */ |
| 175 | LINUX_MIB_TCPPUREACKS, /* TCPPureAcks */ |
| 176 | LINUX_MIB_TCPHPACKS, /* TCPHPAcks */ |
| 177 | LINUX_MIB_TCPRENORECOVERY, /* TCPRenoRecovery */ |
| 178 | LINUX_MIB_TCPSACKRECOVERY, /* TCPSackRecovery */ |
| 179 | LINUX_MIB_TCPSACKRENEGING, /* TCPSACKReneging */ |
| 180 | LINUX_MIB_TCPFACKREORDER, /* TCPFACKReorder */ |
| 181 | LINUX_MIB_TCPSACKREORDER, /* TCPSACKReorder */ |
| 182 | LINUX_MIB_TCPRENOREORDER, /* TCPRenoReorder */ |
| 183 | LINUX_MIB_TCPTSREORDER, /* TCPTSReorder */ |
| 184 | LINUX_MIB_TCPFULLUNDO, /* TCPFullUndo */ |
| 185 | LINUX_MIB_TCPPARTIALUNDO, /* TCPPartialUndo */ |
| 186 | LINUX_MIB_TCPDSACKUNDO, /* TCPDSACKUndo */ |
| 187 | LINUX_MIB_TCPLOSSUNDO, /* TCPLossUndo */ |
| 188 | LINUX_MIB_TCPLOSS, /* TCPLoss */ |
| 189 | LINUX_MIB_TCPLOSTRETRANSMIT, /* TCPLostRetransmit */ |
| 190 | LINUX_MIB_TCPRENOFAILURES, /* TCPRenoFailures */ |
| 191 | LINUX_MIB_TCPSACKFAILURES, /* TCPSackFailures */ |
| 192 | LINUX_MIB_TCPLOSSFAILURES, /* TCPLossFailures */ |
| 193 | LINUX_MIB_TCPFASTRETRANS, /* TCPFastRetrans */ |
| 194 | LINUX_MIB_TCPFORWARDRETRANS, /* TCPForwardRetrans */ |
| 195 | LINUX_MIB_TCPSLOWSTARTRETRANS, /* TCPSlowStartRetrans */ |
| 196 | LINUX_MIB_TCPTIMEOUTS, /* TCPTimeouts */ |
| 197 | LINUX_MIB_TCPRENORECOVERYFAIL, /* TCPRenoRecoveryFail */ |
| 198 | LINUX_MIB_TCPSACKRECOVERYFAIL, /* TCPSackRecoveryFail */ |
| 199 | LINUX_MIB_TCPSCHEDULERFAILED, /* TCPSchedulerFailed */ |
| 200 | LINUX_MIB_TCPRCVCOLLAPSED, /* TCPRcvCollapsed */ |
| 201 | LINUX_MIB_TCPDSACKOLDSENT, /* TCPDSACKOldSent */ |
| 202 | LINUX_MIB_TCPDSACKOFOSENT, /* TCPDSACKOfoSent */ |
| 203 | LINUX_MIB_TCPDSACKRECV, /* TCPDSACKRecv */ |
| 204 | LINUX_MIB_TCPDSACKOFORECV, /* TCPDSACKOfoRecv */ |
| 205 | LINUX_MIB_TCPABORTONSYN, /* TCPAbortOnSyn */ |
| 206 | LINUX_MIB_TCPABORTONDATA, /* TCPAbortOnData */ |
| 207 | LINUX_MIB_TCPABORTONCLOSE, /* TCPAbortOnClose */ |
| 208 | LINUX_MIB_TCPABORTONMEMORY, /* TCPAbortOnMemory */ |
| 209 | LINUX_MIB_TCPABORTONTIMEOUT, /* TCPAbortOnTimeout */ |
| 210 | LINUX_MIB_TCPABORTONLINGER, /* TCPAbortOnLinger */ |
| 211 | LINUX_MIB_TCPABORTFAILED, /* TCPAbortFailed */ |
| 212 | LINUX_MIB_TCPMEMORYPRESSURES, /* TCPMemoryPressures */ |
Ilpo Järvinen | 18f0254 | 2007-08-24 22:55:52 -0700 | [diff] [blame] | 213 | LINUX_MIB_TCPSACKDISCARD, /* TCPSACKDiscard */ |
| 214 | LINUX_MIB_TCPDSACKIGNOREDOLD, /* TCPSACKIgnoredOld */ |
| 215 | LINUX_MIB_TCPDSACKIGNOREDNOUNDO, /* TCPSACKIgnoredNoUndo */ |
Ilpo Järvinen | 912d8f0 | 2007-09-25 22:47:31 -0700 | [diff] [blame] | 216 | LINUX_MIB_TCPSPURIOUSRTOS, /* TCPSpuriousRTOs */ |
David S. Miller | 785957d | 2008-07-30 03:03:15 -0700 | [diff] [blame] | 217 | LINUX_MIB_TCPMD5NOTFOUND, /* TCPMD5NotFound */ |
| 218 | LINUX_MIB_TCPMD5UNEXPECTED, /* TCPMD5Unexpected */ |
Ilpo Järvinen | 111cc8b | 2008-11-24 21:27:22 -0800 | [diff] [blame] | 219 | LINUX_MIB_SACKSHIFTED, |
| 220 | LINUX_MIB_SACKMERGED, |
| 221 | LINUX_MIB_SACKSHIFTFALLBACK, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 222 | __LINUX_MIB_MAX |
| 223 | }; |
| 224 | |
Masahide NAKAMURA | 558f82e | 2007-12-20 20:42:57 -0800 | [diff] [blame] | 225 | /* linux Xfrm mib definitions */ |
| 226 | enum |
| 227 | { |
| 228 | LINUX_MIB_XFRMNUM = 0, |
| 229 | LINUX_MIB_XFRMINERROR, /* XfrmInError */ |
| 230 | LINUX_MIB_XFRMINBUFFERERROR, /* XfrmInBufferError */ |
| 231 | LINUX_MIB_XFRMINHDRERROR, /* XfrmInHdrError */ |
| 232 | LINUX_MIB_XFRMINNOSTATES, /* XfrmInNoStates */ |
| 233 | LINUX_MIB_XFRMINSTATEPROTOERROR, /* XfrmInStateProtoError */ |
| 234 | LINUX_MIB_XFRMINSTATEMODEERROR, /* XfrmInStateModeError */ |
Masahide NAKAMURA | 9472c9e | 2008-01-31 17:14:58 -0800 | [diff] [blame] | 235 | LINUX_MIB_XFRMINSTATESEQERROR, /* XfrmInStateSeqError */ |
Masahide NAKAMURA | 558f82e | 2007-12-20 20:42:57 -0800 | [diff] [blame] | 236 | LINUX_MIB_XFRMINSTATEEXPIRED, /* XfrmInStateExpired */ |
| 237 | LINUX_MIB_XFRMINSTATEMISMATCH, /* XfrmInStateMismatch */ |
| 238 | LINUX_MIB_XFRMINSTATEINVALID, /* XfrmInStateInvalid */ |
| 239 | LINUX_MIB_XFRMINTMPLMISMATCH, /* XfrmInTmplMismatch */ |
| 240 | LINUX_MIB_XFRMINNOPOLS, /* XfrmInNoPols */ |
| 241 | LINUX_MIB_XFRMINPOLBLOCK, /* XfrmInPolBlock */ |
| 242 | LINUX_MIB_XFRMINPOLERROR, /* XfrmInPolError */ |
| 243 | LINUX_MIB_XFRMOUTERROR, /* XfrmOutError */ |
| 244 | LINUX_MIB_XFRMOUTBUNDLEGENERROR, /* XfrmOutBundleGenError */ |
| 245 | LINUX_MIB_XFRMOUTBUNDLECHECKERROR, /* XfrmOutBundleCheckError */ |
| 246 | LINUX_MIB_XFRMOUTNOSTATES, /* XfrmOutNoStates */ |
| 247 | LINUX_MIB_XFRMOUTSTATEPROTOERROR, /* XfrmOutStateProtoError */ |
| 248 | LINUX_MIB_XFRMOUTSTATEMODEERROR, /* XfrmOutStateModeError */ |
Masahide NAKAMURA | 9472c9e | 2008-01-31 17:14:58 -0800 | [diff] [blame] | 249 | LINUX_MIB_XFRMOUTSTATESEQERROR, /* XfrmOutStateSeqError */ |
Masahide NAKAMURA | 558f82e | 2007-12-20 20:42:57 -0800 | [diff] [blame] | 250 | LINUX_MIB_XFRMOUTSTATEEXPIRED, /* XfrmOutStateExpired */ |
| 251 | LINUX_MIB_XFRMOUTPOLBLOCK, /* XfrmOutPolBlock */ |
| 252 | LINUX_MIB_XFRMOUTPOLDEAD, /* XfrmOutPolDead */ |
| 253 | LINUX_MIB_XFRMOUTPOLERROR, /* XfrmOutPolError */ |
| 254 | __LINUX_MIB_XFRMMAX |
| 255 | }; |
| 256 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 257 | #endif /* _LINUX_SNMP_H */ |