1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 2 /* 3 * Definitions for MIBs 3 * Definitions for MIBs 4 * 4 * 5 * Author: Hideaki YOSHIFUJI <yoshfuji@linux-i 5 * Author: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> 6 */ 6 */ 7 7 8 #ifndef _LINUX_SNMP_H 8 #ifndef _LINUX_SNMP_H 9 #define _LINUX_SNMP_H 9 #define _LINUX_SNMP_H 10 10 11 /* ipstats mib definitions */ 11 /* ipstats mib definitions */ 12 /* 12 /* 13 * RFC 1213: MIB-II 13 * RFC 1213: MIB-II 14 * RFC 2011 (updates 1213): SNMPv2-MIB-IP 14 * RFC 2011 (updates 1213): SNMPv2-MIB-IP 15 * RFC 2863: Interfaces Group MIB 15 * RFC 2863: Interfaces Group MIB 16 * RFC 2465: IPv6 MIB: General Group 16 * RFC 2465: IPv6 MIB: General Group 17 * draft-ietf-ipv6-rfc2011-update-10.txt: MIB 17 * draft-ietf-ipv6-rfc2011-update-10.txt: MIB for IP: IP Statistics Tables 18 */ 18 */ 19 enum 19 enum 20 { 20 { 21 IPSTATS_MIB_NUM = 0, 21 IPSTATS_MIB_NUM = 0, 22 /* frequently written fields in fast path, kep 22 /* frequently written fields in fast path, kept in same cache line */ 23 IPSTATS_MIB_INPKTS, 23 IPSTATS_MIB_INPKTS, /* InReceives */ 24 IPSTATS_MIB_INOCTETS, 24 IPSTATS_MIB_INOCTETS, /* InOctets */ 25 IPSTATS_MIB_INDELIVERS, 25 IPSTATS_MIB_INDELIVERS, /* InDelivers */ 26 IPSTATS_MIB_OUTFORWDATAGRAMS, 26 IPSTATS_MIB_OUTFORWDATAGRAMS, /* OutForwDatagrams */ 27 IPSTATS_MIB_OUTREQUESTS, !! 27 IPSTATS_MIB_OUTPKTS, /* OutRequests */ 28 IPSTATS_MIB_OUTOCTETS, 28 IPSTATS_MIB_OUTOCTETS, /* OutOctets */ 29 /* other fields */ 29 /* other fields */ 30 IPSTATS_MIB_INHDRERRORS, 30 IPSTATS_MIB_INHDRERRORS, /* InHdrErrors */ 31 IPSTATS_MIB_INTOOBIGERRORS, 31 IPSTATS_MIB_INTOOBIGERRORS, /* InTooBigErrors */ 32 IPSTATS_MIB_INNOROUTES, 32 IPSTATS_MIB_INNOROUTES, /* InNoRoutes */ 33 IPSTATS_MIB_INADDRERRORS, 33 IPSTATS_MIB_INADDRERRORS, /* InAddrErrors */ 34 IPSTATS_MIB_INUNKNOWNPROTOS, 34 IPSTATS_MIB_INUNKNOWNPROTOS, /* InUnknownProtos */ 35 IPSTATS_MIB_INTRUNCATEDPKTS, 35 IPSTATS_MIB_INTRUNCATEDPKTS, /* InTruncatedPkts */ 36 IPSTATS_MIB_INDISCARDS, 36 IPSTATS_MIB_INDISCARDS, /* InDiscards */ 37 IPSTATS_MIB_OUTDISCARDS, 37 IPSTATS_MIB_OUTDISCARDS, /* OutDiscards */ 38 IPSTATS_MIB_OUTNOROUTES, 38 IPSTATS_MIB_OUTNOROUTES, /* OutNoRoutes */ 39 IPSTATS_MIB_REASMTIMEOUT, 39 IPSTATS_MIB_REASMTIMEOUT, /* ReasmTimeout */ 40 IPSTATS_MIB_REASMREQDS, 40 IPSTATS_MIB_REASMREQDS, /* ReasmReqds */ 41 IPSTATS_MIB_REASMOKS, 41 IPSTATS_MIB_REASMOKS, /* ReasmOKs */ 42 IPSTATS_MIB_REASMFAILS, 42 IPSTATS_MIB_REASMFAILS, /* ReasmFails */ 43 IPSTATS_MIB_FRAGOKS, 43 IPSTATS_MIB_FRAGOKS, /* FragOKs */ 44 IPSTATS_MIB_FRAGFAILS, 44 IPSTATS_MIB_FRAGFAILS, /* FragFails */ 45 IPSTATS_MIB_FRAGCREATES, 45 IPSTATS_MIB_FRAGCREATES, /* FragCreates */ 46 IPSTATS_MIB_INMCASTPKTS, 46 IPSTATS_MIB_INMCASTPKTS, /* InMcastPkts */ 47 IPSTATS_MIB_OUTMCASTPKTS, 47 IPSTATS_MIB_OUTMCASTPKTS, /* OutMcastPkts */ 48 IPSTATS_MIB_INBCASTPKTS, 48 IPSTATS_MIB_INBCASTPKTS, /* InBcastPkts */ 49 IPSTATS_MIB_OUTBCASTPKTS, 49 IPSTATS_MIB_OUTBCASTPKTS, /* OutBcastPkts */ 50 IPSTATS_MIB_INMCASTOCTETS, 50 IPSTATS_MIB_INMCASTOCTETS, /* InMcastOctets */ 51 IPSTATS_MIB_OUTMCASTOCTETS, 51 IPSTATS_MIB_OUTMCASTOCTETS, /* OutMcastOctets */ 52 IPSTATS_MIB_INBCASTOCTETS, 52 IPSTATS_MIB_INBCASTOCTETS, /* InBcastOctets */ 53 IPSTATS_MIB_OUTBCASTOCTETS, 53 IPSTATS_MIB_OUTBCASTOCTETS, /* OutBcastOctets */ 54 IPSTATS_MIB_CSUMERRORS, 54 IPSTATS_MIB_CSUMERRORS, /* InCsumErrors */ 55 IPSTATS_MIB_NOECTPKTS, 55 IPSTATS_MIB_NOECTPKTS, /* InNoECTPkts */ 56 IPSTATS_MIB_ECT1PKTS, 56 IPSTATS_MIB_ECT1PKTS, /* InECT1Pkts */ 57 IPSTATS_MIB_ECT0PKTS, 57 IPSTATS_MIB_ECT0PKTS, /* InECT0Pkts */ 58 IPSTATS_MIB_CEPKTS, 58 IPSTATS_MIB_CEPKTS, /* InCEPkts */ 59 IPSTATS_MIB_REASM_OVERLAPS, 59 IPSTATS_MIB_REASM_OVERLAPS, /* ReasmOverlaps */ 60 IPSTATS_MIB_OUTPKTS, << 61 __IPSTATS_MIB_MAX 60 __IPSTATS_MIB_MAX 62 }; 61 }; 63 62 64 /* icmp mib definitions */ 63 /* icmp mib definitions */ 65 /* 64 /* 66 * RFC 1213: MIB-II ICMP Group 65 * RFC 1213: MIB-II ICMP Group 67 * RFC 2011 (updates 1213): SNMPv2 MIB for IP 66 * RFC 2011 (updates 1213): SNMPv2 MIB for IP: ICMP group 68 */ 67 */ 69 enum 68 enum 70 { 69 { 71 ICMP_MIB_NUM = 0, 70 ICMP_MIB_NUM = 0, 72 ICMP_MIB_INMSGS, 71 ICMP_MIB_INMSGS, /* InMsgs */ 73 ICMP_MIB_INERRORS, 72 ICMP_MIB_INERRORS, /* InErrors */ 74 ICMP_MIB_INDESTUNREACHS, 73 ICMP_MIB_INDESTUNREACHS, /* InDestUnreachs */ 75 ICMP_MIB_INTIMEEXCDS, 74 ICMP_MIB_INTIMEEXCDS, /* InTimeExcds */ 76 ICMP_MIB_INPARMPROBS, 75 ICMP_MIB_INPARMPROBS, /* InParmProbs */ 77 ICMP_MIB_INSRCQUENCHS, 76 ICMP_MIB_INSRCQUENCHS, /* InSrcQuenchs */ 78 ICMP_MIB_INREDIRECTS, 77 ICMP_MIB_INREDIRECTS, /* InRedirects */ 79 ICMP_MIB_INECHOS, 78 ICMP_MIB_INECHOS, /* InEchos */ 80 ICMP_MIB_INECHOREPS, 79 ICMP_MIB_INECHOREPS, /* InEchoReps */ 81 ICMP_MIB_INTIMESTAMPS, 80 ICMP_MIB_INTIMESTAMPS, /* InTimestamps */ 82 ICMP_MIB_INTIMESTAMPREPS, 81 ICMP_MIB_INTIMESTAMPREPS, /* InTimestampReps */ 83 ICMP_MIB_INADDRMASKS, 82 ICMP_MIB_INADDRMASKS, /* InAddrMasks */ 84 ICMP_MIB_INADDRMASKREPS, 83 ICMP_MIB_INADDRMASKREPS, /* InAddrMaskReps */ 85 ICMP_MIB_OUTMSGS, 84 ICMP_MIB_OUTMSGS, /* OutMsgs */ 86 ICMP_MIB_OUTERRORS, 85 ICMP_MIB_OUTERRORS, /* OutErrors */ 87 ICMP_MIB_OUTDESTUNREACHS, 86 ICMP_MIB_OUTDESTUNREACHS, /* OutDestUnreachs */ 88 ICMP_MIB_OUTTIMEEXCDS, 87 ICMP_MIB_OUTTIMEEXCDS, /* OutTimeExcds */ 89 ICMP_MIB_OUTPARMPROBS, 88 ICMP_MIB_OUTPARMPROBS, /* OutParmProbs */ 90 ICMP_MIB_OUTSRCQUENCHS, 89 ICMP_MIB_OUTSRCQUENCHS, /* OutSrcQuenchs */ 91 ICMP_MIB_OUTREDIRECTS, 90 ICMP_MIB_OUTREDIRECTS, /* OutRedirects */ 92 ICMP_MIB_OUTECHOS, 91 ICMP_MIB_OUTECHOS, /* OutEchos */ 93 ICMP_MIB_OUTECHOREPS, 92 ICMP_MIB_OUTECHOREPS, /* OutEchoReps */ 94 ICMP_MIB_OUTTIMESTAMPS, 93 ICMP_MIB_OUTTIMESTAMPS, /* OutTimestamps */ 95 ICMP_MIB_OUTTIMESTAMPREPS, 94 ICMP_MIB_OUTTIMESTAMPREPS, /* OutTimestampReps */ 96 ICMP_MIB_OUTADDRMASKS, 95 ICMP_MIB_OUTADDRMASKS, /* OutAddrMasks */ 97 ICMP_MIB_OUTADDRMASKREPS, 96 ICMP_MIB_OUTADDRMASKREPS, /* OutAddrMaskReps */ 98 ICMP_MIB_CSUMERRORS, 97 ICMP_MIB_CSUMERRORS, /* InCsumErrors */ 99 ICMP_MIB_RATELIMITGLOBAL, << 100 ICMP_MIB_RATELIMITHOST, << 101 __ICMP_MIB_MAX 98 __ICMP_MIB_MAX 102 }; 99 }; 103 100 104 #define __ICMPMSG_MIB_MAX 512 /* Out+In for 101 #define __ICMPMSG_MIB_MAX 512 /* Out+In for all 8-bit ICMP types */ 105 102 106 /* icmp6 mib definitions */ 103 /* icmp6 mib definitions */ 107 /* 104 /* 108 * RFC 2466: ICMPv6-MIB 105 * RFC 2466: ICMPv6-MIB 109 */ 106 */ 110 enum 107 enum 111 { 108 { 112 ICMP6_MIB_NUM = 0, 109 ICMP6_MIB_NUM = 0, 113 ICMP6_MIB_INMSGS, 110 ICMP6_MIB_INMSGS, /* InMsgs */ 114 ICMP6_MIB_INERRORS, 111 ICMP6_MIB_INERRORS, /* InErrors */ 115 ICMP6_MIB_OUTMSGS, 112 ICMP6_MIB_OUTMSGS, /* OutMsgs */ 116 ICMP6_MIB_OUTERRORS, 113 ICMP6_MIB_OUTERRORS, /* OutErrors */ 117 ICMP6_MIB_CSUMERRORS, 114 ICMP6_MIB_CSUMERRORS, /* InCsumErrors */ 118 ICMP6_MIB_RATELIMITHOST, << 119 __ICMP6_MIB_MAX 115 __ICMP6_MIB_MAX 120 }; 116 }; 121 117 122 #define __ICMP6MSG_MIB_MAX 512 /* Out+In for a 118 #define __ICMP6MSG_MIB_MAX 512 /* Out+In for all 8-bit ICMPv6 types */ 123 119 124 /* tcp mib definitions */ 120 /* tcp mib definitions */ 125 /* 121 /* 126 * RFC 1213: MIB-II TCP group 122 * RFC 1213: MIB-II TCP group 127 * RFC 2012 (updates 1213): SNMPv2-MIB-TCP 123 * RFC 2012 (updates 1213): SNMPv2-MIB-TCP 128 */ 124 */ 129 enum 125 enum 130 { 126 { 131 TCP_MIB_NUM = 0, 127 TCP_MIB_NUM = 0, 132 TCP_MIB_RTOALGORITHM, 128 TCP_MIB_RTOALGORITHM, /* RtoAlgorithm */ 133 TCP_MIB_RTOMIN, 129 TCP_MIB_RTOMIN, /* RtoMin */ 134 TCP_MIB_RTOMAX, 130 TCP_MIB_RTOMAX, /* RtoMax */ 135 TCP_MIB_MAXCONN, 131 TCP_MIB_MAXCONN, /* MaxConn */ 136 TCP_MIB_ACTIVEOPENS, 132 TCP_MIB_ACTIVEOPENS, /* ActiveOpens */ 137 TCP_MIB_PASSIVEOPENS, 133 TCP_MIB_PASSIVEOPENS, /* PassiveOpens */ 138 TCP_MIB_ATTEMPTFAILS, 134 TCP_MIB_ATTEMPTFAILS, /* AttemptFails */ 139 TCP_MIB_ESTABRESETS, 135 TCP_MIB_ESTABRESETS, /* EstabResets */ 140 TCP_MIB_CURRESTAB, 136 TCP_MIB_CURRESTAB, /* CurrEstab */ 141 TCP_MIB_INSEGS, 137 TCP_MIB_INSEGS, /* InSegs */ 142 TCP_MIB_OUTSEGS, 138 TCP_MIB_OUTSEGS, /* OutSegs */ 143 TCP_MIB_RETRANSSEGS, 139 TCP_MIB_RETRANSSEGS, /* RetransSegs */ 144 TCP_MIB_INERRS, 140 TCP_MIB_INERRS, /* InErrs */ 145 TCP_MIB_OUTRSTS, 141 TCP_MIB_OUTRSTS, /* OutRsts */ 146 TCP_MIB_CSUMERRORS, 142 TCP_MIB_CSUMERRORS, /* InCsumErrors */ 147 __TCP_MIB_MAX 143 __TCP_MIB_MAX 148 }; 144 }; 149 145 150 /* udp mib definitions */ 146 /* udp mib definitions */ 151 /* 147 /* 152 * RFC 1213: MIB-II UDP group 148 * RFC 1213: MIB-II UDP group 153 * RFC 2013 (updates 1213): SNMPv2-MIB-UDP 149 * RFC 2013 (updates 1213): SNMPv2-MIB-UDP 154 */ 150 */ 155 enum 151 enum 156 { 152 { 157 UDP_MIB_NUM = 0, 153 UDP_MIB_NUM = 0, 158 UDP_MIB_INDATAGRAMS, 154 UDP_MIB_INDATAGRAMS, /* InDatagrams */ 159 UDP_MIB_NOPORTS, 155 UDP_MIB_NOPORTS, /* NoPorts */ 160 UDP_MIB_INERRORS, 156 UDP_MIB_INERRORS, /* InErrors */ 161 UDP_MIB_OUTDATAGRAMS, 157 UDP_MIB_OUTDATAGRAMS, /* OutDatagrams */ 162 UDP_MIB_RCVBUFERRORS, 158 UDP_MIB_RCVBUFERRORS, /* RcvbufErrors */ 163 UDP_MIB_SNDBUFERRORS, 159 UDP_MIB_SNDBUFERRORS, /* SndbufErrors */ 164 UDP_MIB_CSUMERRORS, 160 UDP_MIB_CSUMERRORS, /* InCsumErrors */ 165 UDP_MIB_IGNOREDMULTI, 161 UDP_MIB_IGNOREDMULTI, /* IgnoredMulti */ 166 UDP_MIB_MEMERRORS, 162 UDP_MIB_MEMERRORS, /* MemErrors */ 167 __UDP_MIB_MAX 163 __UDP_MIB_MAX 168 }; 164 }; 169 165 170 /* linux mib definitions */ 166 /* linux mib definitions */ 171 enum 167 enum 172 { 168 { 173 LINUX_MIB_NUM = 0, 169 LINUX_MIB_NUM = 0, 174 LINUX_MIB_SYNCOOKIESSENT, 170 LINUX_MIB_SYNCOOKIESSENT, /* SyncookiesSent */ 175 LINUX_MIB_SYNCOOKIESRECV, 171 LINUX_MIB_SYNCOOKIESRECV, /* SyncookiesRecv */ 176 LINUX_MIB_SYNCOOKIESFAILED, 172 LINUX_MIB_SYNCOOKIESFAILED, /* SyncookiesFailed */ 177 LINUX_MIB_EMBRYONICRSTS, 173 LINUX_MIB_EMBRYONICRSTS, /* EmbryonicRsts */ 178 LINUX_MIB_PRUNECALLED, 174 LINUX_MIB_PRUNECALLED, /* PruneCalled */ 179 LINUX_MIB_RCVPRUNED, 175 LINUX_MIB_RCVPRUNED, /* RcvPruned */ 180 LINUX_MIB_OFOPRUNED, 176 LINUX_MIB_OFOPRUNED, /* OfoPruned */ 181 LINUX_MIB_OUTOFWINDOWICMPS, 177 LINUX_MIB_OUTOFWINDOWICMPS, /* OutOfWindowIcmps */ 182 LINUX_MIB_LOCKDROPPEDICMPS, 178 LINUX_MIB_LOCKDROPPEDICMPS, /* LockDroppedIcmps */ 183 LINUX_MIB_ARPFILTER, 179 LINUX_MIB_ARPFILTER, /* ArpFilter */ 184 LINUX_MIB_TIMEWAITED, 180 LINUX_MIB_TIMEWAITED, /* TimeWaited */ 185 LINUX_MIB_TIMEWAITRECYCLED, 181 LINUX_MIB_TIMEWAITRECYCLED, /* TimeWaitRecycled */ 186 LINUX_MIB_TIMEWAITKILLED, 182 LINUX_MIB_TIMEWAITKILLED, /* TimeWaitKilled */ 187 LINUX_MIB_PAWSACTIVEREJECTED, 183 LINUX_MIB_PAWSACTIVEREJECTED, /* PAWSActiveRejected */ 188 LINUX_MIB_PAWSESTABREJECTED, 184 LINUX_MIB_PAWSESTABREJECTED, /* PAWSEstabRejected */ 189 LINUX_MIB_DELAYEDACKS, 185 LINUX_MIB_DELAYEDACKS, /* DelayedACKs */ 190 LINUX_MIB_DELAYEDACKLOCKED, 186 LINUX_MIB_DELAYEDACKLOCKED, /* DelayedACKLocked */ 191 LINUX_MIB_DELAYEDACKLOST, 187 LINUX_MIB_DELAYEDACKLOST, /* DelayedACKLost */ 192 LINUX_MIB_LISTENOVERFLOWS, 188 LINUX_MIB_LISTENOVERFLOWS, /* ListenOverflows */ 193 LINUX_MIB_LISTENDROPS, 189 LINUX_MIB_LISTENDROPS, /* ListenDrops */ 194 LINUX_MIB_TCPHPHITS, 190 LINUX_MIB_TCPHPHITS, /* TCPHPHits */ 195 LINUX_MIB_TCPPUREACKS, 191 LINUX_MIB_TCPPUREACKS, /* TCPPureAcks */ 196 LINUX_MIB_TCPHPACKS, 192 LINUX_MIB_TCPHPACKS, /* TCPHPAcks */ 197 LINUX_MIB_TCPRENORECOVERY, 193 LINUX_MIB_TCPRENORECOVERY, /* TCPRenoRecovery */ 198 LINUX_MIB_TCPSACKRECOVERY, 194 LINUX_MIB_TCPSACKRECOVERY, /* TCPSackRecovery */ 199 LINUX_MIB_TCPSACKRENEGING, 195 LINUX_MIB_TCPSACKRENEGING, /* TCPSACKReneging */ 200 LINUX_MIB_TCPSACKREORDER, 196 LINUX_MIB_TCPSACKREORDER, /* TCPSACKReorder */ 201 LINUX_MIB_TCPRENOREORDER, 197 LINUX_MIB_TCPRENOREORDER, /* TCPRenoReorder */ 202 LINUX_MIB_TCPTSREORDER, 198 LINUX_MIB_TCPTSREORDER, /* TCPTSReorder */ 203 LINUX_MIB_TCPFULLUNDO, 199 LINUX_MIB_TCPFULLUNDO, /* TCPFullUndo */ 204 LINUX_MIB_TCPPARTIALUNDO, 200 LINUX_MIB_TCPPARTIALUNDO, /* TCPPartialUndo */ 205 LINUX_MIB_TCPDSACKUNDO, 201 LINUX_MIB_TCPDSACKUNDO, /* TCPDSACKUndo */ 206 LINUX_MIB_TCPLOSSUNDO, 202 LINUX_MIB_TCPLOSSUNDO, /* TCPLossUndo */ 207 LINUX_MIB_TCPLOSTRETRANSMIT, 203 LINUX_MIB_TCPLOSTRETRANSMIT, /* TCPLostRetransmit */ 208 LINUX_MIB_TCPRENOFAILURES, 204 LINUX_MIB_TCPRENOFAILURES, /* TCPRenoFailures */ 209 LINUX_MIB_TCPSACKFAILURES, 205 LINUX_MIB_TCPSACKFAILURES, /* TCPSackFailures */ 210 LINUX_MIB_TCPLOSSFAILURES, 206 LINUX_MIB_TCPLOSSFAILURES, /* TCPLossFailures */ 211 LINUX_MIB_TCPFASTRETRANS, 207 LINUX_MIB_TCPFASTRETRANS, /* TCPFastRetrans */ 212 LINUX_MIB_TCPSLOWSTARTRETRANS, 208 LINUX_MIB_TCPSLOWSTARTRETRANS, /* TCPSlowStartRetrans */ 213 LINUX_MIB_TCPTIMEOUTS, 209 LINUX_MIB_TCPTIMEOUTS, /* TCPTimeouts */ 214 LINUX_MIB_TCPLOSSPROBES, 210 LINUX_MIB_TCPLOSSPROBES, /* TCPLossProbes */ 215 LINUX_MIB_TCPLOSSPROBERECOVERY, 211 LINUX_MIB_TCPLOSSPROBERECOVERY, /* TCPLossProbeRecovery */ 216 LINUX_MIB_TCPRENORECOVERYFAIL, 212 LINUX_MIB_TCPRENORECOVERYFAIL, /* TCPRenoRecoveryFail */ 217 LINUX_MIB_TCPSACKRECOVERYFAIL, 213 LINUX_MIB_TCPSACKRECOVERYFAIL, /* TCPSackRecoveryFail */ 218 LINUX_MIB_TCPRCVCOLLAPSED, 214 LINUX_MIB_TCPRCVCOLLAPSED, /* TCPRcvCollapsed */ 219 LINUX_MIB_TCPDSACKOLDSENT, 215 LINUX_MIB_TCPDSACKOLDSENT, /* TCPDSACKOldSent */ 220 LINUX_MIB_TCPDSACKOFOSENT, 216 LINUX_MIB_TCPDSACKOFOSENT, /* TCPDSACKOfoSent */ 221 LINUX_MIB_TCPDSACKRECV, 217 LINUX_MIB_TCPDSACKRECV, /* TCPDSACKRecv */ 222 LINUX_MIB_TCPDSACKOFORECV, 218 LINUX_MIB_TCPDSACKOFORECV, /* TCPDSACKOfoRecv */ 223 LINUX_MIB_TCPABORTONDATA, 219 LINUX_MIB_TCPABORTONDATA, /* TCPAbortOnData */ 224 LINUX_MIB_TCPABORTONCLOSE, 220 LINUX_MIB_TCPABORTONCLOSE, /* TCPAbortOnClose */ 225 LINUX_MIB_TCPABORTONMEMORY, 221 LINUX_MIB_TCPABORTONMEMORY, /* TCPAbortOnMemory */ 226 LINUX_MIB_TCPABORTONTIMEOUT, 222 LINUX_MIB_TCPABORTONTIMEOUT, /* TCPAbortOnTimeout */ 227 LINUX_MIB_TCPABORTONLINGER, 223 LINUX_MIB_TCPABORTONLINGER, /* TCPAbortOnLinger */ 228 LINUX_MIB_TCPABORTFAILED, 224 LINUX_MIB_TCPABORTFAILED, /* TCPAbortFailed */ 229 LINUX_MIB_TCPMEMORYPRESSURES, 225 LINUX_MIB_TCPMEMORYPRESSURES, /* TCPMemoryPressures */ 230 LINUX_MIB_TCPMEMORYPRESSURESCHRONO, 226 LINUX_MIB_TCPMEMORYPRESSURESCHRONO, /* TCPMemoryPressuresChrono */ 231 LINUX_MIB_TCPSACKDISCARD, 227 LINUX_MIB_TCPSACKDISCARD, /* TCPSACKDiscard */ 232 LINUX_MIB_TCPDSACKIGNOREDOLD, 228 LINUX_MIB_TCPDSACKIGNOREDOLD, /* TCPSACKIgnoredOld */ 233 LINUX_MIB_TCPDSACKIGNOREDNOUNDO, 229 LINUX_MIB_TCPDSACKIGNOREDNOUNDO, /* TCPSACKIgnoredNoUndo */ 234 LINUX_MIB_TCPSPURIOUSRTOS, 230 LINUX_MIB_TCPSPURIOUSRTOS, /* TCPSpuriousRTOs */ 235 LINUX_MIB_TCPMD5NOTFOUND, 231 LINUX_MIB_TCPMD5NOTFOUND, /* TCPMD5NotFound */ 236 LINUX_MIB_TCPMD5UNEXPECTED, 232 LINUX_MIB_TCPMD5UNEXPECTED, /* TCPMD5Unexpected */ 237 LINUX_MIB_TCPMD5FAILURE, 233 LINUX_MIB_TCPMD5FAILURE, /* TCPMD5Failure */ 238 LINUX_MIB_SACKSHIFTED, 234 LINUX_MIB_SACKSHIFTED, 239 LINUX_MIB_SACKMERGED, 235 LINUX_MIB_SACKMERGED, 240 LINUX_MIB_SACKSHIFTFALLBACK, 236 LINUX_MIB_SACKSHIFTFALLBACK, 241 LINUX_MIB_TCPBACKLOGDROP, 237 LINUX_MIB_TCPBACKLOGDROP, 242 LINUX_MIB_PFMEMALLOCDROP, 238 LINUX_MIB_PFMEMALLOCDROP, 243 LINUX_MIB_TCPMINTTLDROP, /* RFC 5082 * 239 LINUX_MIB_TCPMINTTLDROP, /* RFC 5082 */ 244 LINUX_MIB_TCPDEFERACCEPTDROP, 240 LINUX_MIB_TCPDEFERACCEPTDROP, 245 LINUX_MIB_IPRPFILTER, /* IP Reverse Pa 241 LINUX_MIB_IPRPFILTER, /* IP Reverse Path Filter (rp_filter) */ 246 LINUX_MIB_TCPTIMEWAITOVERFLOW, 242 LINUX_MIB_TCPTIMEWAITOVERFLOW, /* TCPTimeWaitOverflow */ 247 LINUX_MIB_TCPREQQFULLDOCOOKIES, 243 LINUX_MIB_TCPREQQFULLDOCOOKIES, /* TCPReqQFullDoCookies */ 248 LINUX_MIB_TCPREQQFULLDROP, 244 LINUX_MIB_TCPREQQFULLDROP, /* TCPReqQFullDrop */ 249 LINUX_MIB_TCPRETRANSFAIL, 245 LINUX_MIB_TCPRETRANSFAIL, /* TCPRetransFail */ 250 LINUX_MIB_TCPRCVCOALESCE, 246 LINUX_MIB_TCPRCVCOALESCE, /* TCPRcvCoalesce */ 251 LINUX_MIB_TCPBACKLOGCOALESCE, 247 LINUX_MIB_TCPBACKLOGCOALESCE, /* TCPBacklogCoalesce */ 252 LINUX_MIB_TCPOFOQUEUE, 248 LINUX_MIB_TCPOFOQUEUE, /* TCPOFOQueue */ 253 LINUX_MIB_TCPOFODROP, 249 LINUX_MIB_TCPOFODROP, /* TCPOFODrop */ 254 LINUX_MIB_TCPOFOMERGE, 250 LINUX_MIB_TCPOFOMERGE, /* TCPOFOMerge */ 255 LINUX_MIB_TCPCHALLENGEACK, 251 LINUX_MIB_TCPCHALLENGEACK, /* TCPChallengeACK */ 256 LINUX_MIB_TCPSYNCHALLENGE, 252 LINUX_MIB_TCPSYNCHALLENGE, /* TCPSYNChallenge */ 257 LINUX_MIB_TCPFASTOPENACTIVE, 253 LINUX_MIB_TCPFASTOPENACTIVE, /* TCPFastOpenActive */ 258 LINUX_MIB_TCPFASTOPENACTIVEFAIL, 254 LINUX_MIB_TCPFASTOPENACTIVEFAIL, /* TCPFastOpenActiveFail */ 259 LINUX_MIB_TCPFASTOPENPASSIVE, 255 LINUX_MIB_TCPFASTOPENPASSIVE, /* TCPFastOpenPassive*/ 260 LINUX_MIB_TCPFASTOPENPASSIVEFAIL, 256 LINUX_MIB_TCPFASTOPENPASSIVEFAIL, /* TCPFastOpenPassiveFail */ 261 LINUX_MIB_TCPFASTOPENLISTENOVERFLOW, 257 LINUX_MIB_TCPFASTOPENLISTENOVERFLOW, /* TCPFastOpenListenOverflow */ 262 LINUX_MIB_TCPFASTOPENCOOKIEREQD, 258 LINUX_MIB_TCPFASTOPENCOOKIEREQD, /* TCPFastOpenCookieReqd */ 263 LINUX_MIB_TCPFASTOPENBLACKHOLE, 259 LINUX_MIB_TCPFASTOPENBLACKHOLE, /* TCPFastOpenBlackholeDetect */ 264 LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES, 260 LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES, /* TCPSpuriousRtxHostQueues */ 265 LINUX_MIB_BUSYPOLLRXPACKETS, 261 LINUX_MIB_BUSYPOLLRXPACKETS, /* BusyPollRxPackets */ 266 LINUX_MIB_TCPAUTOCORKING, 262 LINUX_MIB_TCPAUTOCORKING, /* TCPAutoCorking */ 267 LINUX_MIB_TCPFROMZEROWINDOWADV, 263 LINUX_MIB_TCPFROMZEROWINDOWADV, /* TCPFromZeroWindowAdv */ 268 LINUX_MIB_TCPTOZEROWINDOWADV, 264 LINUX_MIB_TCPTOZEROWINDOWADV, /* TCPToZeroWindowAdv */ 269 LINUX_MIB_TCPWANTZEROWINDOWADV, 265 LINUX_MIB_TCPWANTZEROWINDOWADV, /* TCPWantZeroWindowAdv */ 270 LINUX_MIB_TCPSYNRETRANS, 266 LINUX_MIB_TCPSYNRETRANS, /* TCPSynRetrans */ 271 LINUX_MIB_TCPORIGDATASENT, 267 LINUX_MIB_TCPORIGDATASENT, /* TCPOrigDataSent */ 272 LINUX_MIB_TCPHYSTARTTRAINDETECT, 268 LINUX_MIB_TCPHYSTARTTRAINDETECT, /* TCPHystartTrainDetect */ 273 LINUX_MIB_TCPHYSTARTTRAINCWND, 269 LINUX_MIB_TCPHYSTARTTRAINCWND, /* TCPHystartTrainCwnd */ 274 LINUX_MIB_TCPHYSTARTDELAYDETECT, 270 LINUX_MIB_TCPHYSTARTDELAYDETECT, /* TCPHystartDelayDetect */ 275 LINUX_MIB_TCPHYSTARTDELAYCWND, 271 LINUX_MIB_TCPHYSTARTDELAYCWND, /* TCPHystartDelayCwnd */ 276 LINUX_MIB_TCPACKSKIPPEDSYNRECV, 272 LINUX_MIB_TCPACKSKIPPEDSYNRECV, /* TCPACKSkippedSynRecv */ 277 LINUX_MIB_TCPACKSKIPPEDPAWS, 273 LINUX_MIB_TCPACKSKIPPEDPAWS, /* TCPACKSkippedPAWS */ 278 LINUX_MIB_TCPACKSKIPPEDSEQ, 274 LINUX_MIB_TCPACKSKIPPEDSEQ, /* TCPACKSkippedSeq */ 279 LINUX_MIB_TCPACKSKIPPEDFINWAIT2, 275 LINUX_MIB_TCPACKSKIPPEDFINWAIT2, /* TCPACKSkippedFinWait2 */ 280 LINUX_MIB_TCPACKSKIPPEDTIMEWAIT, 276 LINUX_MIB_TCPACKSKIPPEDTIMEWAIT, /* TCPACKSkippedTimeWait */ 281 LINUX_MIB_TCPACKSKIPPEDCHALLENGE, 277 LINUX_MIB_TCPACKSKIPPEDCHALLENGE, /* TCPACKSkippedChallenge */ 282 LINUX_MIB_TCPWINPROBE, 278 LINUX_MIB_TCPWINPROBE, /* TCPWinProbe */ 283 LINUX_MIB_TCPKEEPALIVE, 279 LINUX_MIB_TCPKEEPALIVE, /* TCPKeepAlive */ 284 LINUX_MIB_TCPMTUPFAIL, 280 LINUX_MIB_TCPMTUPFAIL, /* TCPMTUPFail */ 285 LINUX_MIB_TCPMTUPSUCCESS, 281 LINUX_MIB_TCPMTUPSUCCESS, /* TCPMTUPSuccess */ 286 LINUX_MIB_TCPDELIVERED, 282 LINUX_MIB_TCPDELIVERED, /* TCPDelivered */ 287 LINUX_MIB_TCPDELIVEREDCE, 283 LINUX_MIB_TCPDELIVEREDCE, /* TCPDeliveredCE */ 288 LINUX_MIB_TCPACKCOMPRESSED, 284 LINUX_MIB_TCPACKCOMPRESSED, /* TCPAckCompressed */ 289 LINUX_MIB_TCPZEROWINDOWDROP, 285 LINUX_MIB_TCPZEROWINDOWDROP, /* TCPZeroWindowDrop */ 290 LINUX_MIB_TCPRCVQDROP, 286 LINUX_MIB_TCPRCVQDROP, /* TCPRcvQDrop */ 291 LINUX_MIB_TCPWQUEUETOOBIG, 287 LINUX_MIB_TCPWQUEUETOOBIG, /* TCPWqueueTooBig */ 292 LINUX_MIB_TCPFASTOPENPASSIVEALTKEY, 288 LINUX_MIB_TCPFASTOPENPASSIVEALTKEY, /* TCPFastOpenPassiveAltKey */ 293 LINUX_MIB_TCPTIMEOUTREHASH, 289 LINUX_MIB_TCPTIMEOUTREHASH, /* TCPTimeoutRehash */ 294 LINUX_MIB_TCPDUPLICATEDATAREHASH, 290 LINUX_MIB_TCPDUPLICATEDATAREHASH, /* TCPDuplicateDataRehash */ 295 LINUX_MIB_TCPDSACKRECVSEGS, 291 LINUX_MIB_TCPDSACKRECVSEGS, /* TCPDSACKRecvSegs */ 296 LINUX_MIB_TCPDSACKIGNOREDDUBIOUS, 292 LINUX_MIB_TCPDSACKIGNOREDDUBIOUS, /* TCPDSACKIgnoredDubious */ 297 LINUX_MIB_TCPMIGRATEREQSUCCESS, 293 LINUX_MIB_TCPMIGRATEREQSUCCESS, /* TCPMigrateReqSuccess */ 298 LINUX_MIB_TCPMIGRATEREQFAILURE, 294 LINUX_MIB_TCPMIGRATEREQFAILURE, /* TCPMigrateReqFailure */ 299 LINUX_MIB_TCPPLBREHASH, << 300 LINUX_MIB_TCPAOREQUIRED, << 301 LINUX_MIB_TCPAOBAD, << 302 LINUX_MIB_TCPAOKEYNOTFOUND, << 303 LINUX_MIB_TCPAOGOOD, << 304 LINUX_MIB_TCPAODROPPEDICMPS, << 305 __LINUX_MIB_MAX 295 __LINUX_MIB_MAX 306 }; 296 }; 307 297 308 /* linux Xfrm mib definitions */ 298 /* linux Xfrm mib definitions */ 309 enum 299 enum 310 { 300 { 311 LINUX_MIB_XFRMNUM = 0, 301 LINUX_MIB_XFRMNUM = 0, 312 LINUX_MIB_XFRMINERROR, 302 LINUX_MIB_XFRMINERROR, /* XfrmInError */ 313 LINUX_MIB_XFRMINBUFFERERROR, 303 LINUX_MIB_XFRMINBUFFERERROR, /* XfrmInBufferError */ 314 LINUX_MIB_XFRMINHDRERROR, 304 LINUX_MIB_XFRMINHDRERROR, /* XfrmInHdrError */ 315 LINUX_MIB_XFRMINNOSTATES, 305 LINUX_MIB_XFRMINNOSTATES, /* XfrmInNoStates */ 316 LINUX_MIB_XFRMINSTATEPROTOERROR, 306 LINUX_MIB_XFRMINSTATEPROTOERROR, /* XfrmInStateProtoError */ 317 LINUX_MIB_XFRMINSTATEMODEERROR, 307 LINUX_MIB_XFRMINSTATEMODEERROR, /* XfrmInStateModeError */ 318 LINUX_MIB_XFRMINSTATESEQERROR, 308 LINUX_MIB_XFRMINSTATESEQERROR, /* XfrmInStateSeqError */ 319 LINUX_MIB_XFRMINSTATEEXPIRED, 309 LINUX_MIB_XFRMINSTATEEXPIRED, /* XfrmInStateExpired */ 320 LINUX_MIB_XFRMINSTATEMISMATCH, 310 LINUX_MIB_XFRMINSTATEMISMATCH, /* XfrmInStateMismatch */ 321 LINUX_MIB_XFRMINSTATEINVALID, 311 LINUX_MIB_XFRMINSTATEINVALID, /* XfrmInStateInvalid */ 322 LINUX_MIB_XFRMINTMPLMISMATCH, 312 LINUX_MIB_XFRMINTMPLMISMATCH, /* XfrmInTmplMismatch */ 323 LINUX_MIB_XFRMINNOPOLS, 313 LINUX_MIB_XFRMINNOPOLS, /* XfrmInNoPols */ 324 LINUX_MIB_XFRMINPOLBLOCK, 314 LINUX_MIB_XFRMINPOLBLOCK, /* XfrmInPolBlock */ 325 LINUX_MIB_XFRMINPOLERROR, 315 LINUX_MIB_XFRMINPOLERROR, /* XfrmInPolError */ 326 LINUX_MIB_XFRMOUTERROR, 316 LINUX_MIB_XFRMOUTERROR, /* XfrmOutError */ 327 LINUX_MIB_XFRMOUTBUNDLEGENERROR, 317 LINUX_MIB_XFRMOUTBUNDLEGENERROR, /* XfrmOutBundleGenError */ 328 LINUX_MIB_XFRMOUTBUNDLECHECKERROR, 318 LINUX_MIB_XFRMOUTBUNDLECHECKERROR, /* XfrmOutBundleCheckError */ 329 LINUX_MIB_XFRMOUTNOSTATES, 319 LINUX_MIB_XFRMOUTNOSTATES, /* XfrmOutNoStates */ 330 LINUX_MIB_XFRMOUTSTATEPROTOERROR, 320 LINUX_MIB_XFRMOUTSTATEPROTOERROR, /* XfrmOutStateProtoError */ 331 LINUX_MIB_XFRMOUTSTATEMODEERROR, 321 LINUX_MIB_XFRMOUTSTATEMODEERROR, /* XfrmOutStateModeError */ 332 LINUX_MIB_XFRMOUTSTATESEQERROR, 322 LINUX_MIB_XFRMOUTSTATESEQERROR, /* XfrmOutStateSeqError */ 333 LINUX_MIB_XFRMOUTSTATEEXPIRED, 323 LINUX_MIB_XFRMOUTSTATEEXPIRED, /* XfrmOutStateExpired */ 334 LINUX_MIB_XFRMOUTPOLBLOCK, 324 LINUX_MIB_XFRMOUTPOLBLOCK, /* XfrmOutPolBlock */ 335 LINUX_MIB_XFRMOUTPOLDEAD, 325 LINUX_MIB_XFRMOUTPOLDEAD, /* XfrmOutPolDead */ 336 LINUX_MIB_XFRMOUTPOLERROR, 326 LINUX_MIB_XFRMOUTPOLERROR, /* XfrmOutPolError */ 337 LINUX_MIB_XFRMFWDHDRERROR, 327 LINUX_MIB_XFRMFWDHDRERROR, /* XfrmFwdHdrError*/ 338 LINUX_MIB_XFRMOUTSTATEINVALID, 328 LINUX_MIB_XFRMOUTSTATEINVALID, /* XfrmOutStateInvalid */ 339 LINUX_MIB_XFRMACQUIREERROR, 329 LINUX_MIB_XFRMACQUIREERROR, /* XfrmAcquireError */ 340 LINUX_MIB_XFRMOUTSTATEDIRERROR, << 341 LINUX_MIB_XFRMINSTATEDIRERROR, << 342 __LINUX_MIB_XFRMMAX 330 __LINUX_MIB_XFRMMAX 343 }; 331 }; 344 332 345 /* linux TLS mib definitions */ 333 /* linux TLS mib definitions */ 346 enum 334 enum 347 { 335 { 348 LINUX_MIB_TLSNUM = 0, 336 LINUX_MIB_TLSNUM = 0, 349 LINUX_MIB_TLSCURRTXSW, 337 LINUX_MIB_TLSCURRTXSW, /* TlsCurrTxSw */ 350 LINUX_MIB_TLSCURRRXSW, 338 LINUX_MIB_TLSCURRRXSW, /* TlsCurrRxSw */ 351 LINUX_MIB_TLSCURRTXDEVICE, 339 LINUX_MIB_TLSCURRTXDEVICE, /* TlsCurrTxDevice */ 352 LINUX_MIB_TLSCURRRXDEVICE, 340 LINUX_MIB_TLSCURRRXDEVICE, /* TlsCurrRxDevice */ 353 LINUX_MIB_TLSTXSW, 341 LINUX_MIB_TLSTXSW, /* TlsTxSw */ 354 LINUX_MIB_TLSRXSW, 342 LINUX_MIB_TLSRXSW, /* TlsRxSw */ 355 LINUX_MIB_TLSTXDEVICE, 343 LINUX_MIB_TLSTXDEVICE, /* TlsTxDevice */ 356 LINUX_MIB_TLSRXDEVICE, 344 LINUX_MIB_TLSRXDEVICE, /* TlsRxDevice */ 357 LINUX_MIB_TLSDECRYPTERROR, 345 LINUX_MIB_TLSDECRYPTERROR, /* TlsDecryptError */ 358 LINUX_MIB_TLSRXDEVICERESYNC, 346 LINUX_MIB_TLSRXDEVICERESYNC, /* TlsRxDeviceResync */ 359 LINUX_MIB_TLSDECRYPTRETRY, << 360 LINUX_MIB_TLSRXNOPADVIOL, << 361 __LINUX_MIB_TLSMAX 347 __LINUX_MIB_TLSMAX 362 }; 348 }; 363 349 364 #endif /* _LINUX_SNMP_H */ 350 #endif /* _LINUX_SNMP_H */ 365 351
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.