blob: 7d91f4debc483f28632b9070be231331ffc51ed6 [file] [log] [blame]
Greg Kroah-Hartman6f52b162017-11-01 15:08:43 +01001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * Definitions for MIBs
4 *
5 * Author: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
6 */
7
8#ifndef _LINUX_SNMP_H
9#define _LINUX_SNMP_H
10
11/* ipstats mib definitions */
12/*
13 * RFC 1213: MIB-II
14 * RFC 2011 (updates 1213): SNMPv2-MIB-IP
15 * RFC 2863: Interfaces Group MIB
16 * RFC 2465: IPv6 MIB: General Group
17 * draft-ietf-ipv6-rfc2011-update-10.txt: MIB for IP: IP Statistics Tables
18 */
19enum
20{
21 IPSTATS_MIB_NUM = 0,
Eric Dumazet14a19682012-08-04 20:33:59 +000022/* frequently written fields in fast path, kept in same cache line */
Neil Hormanedf391f2009-04-27 02:45:02 -070023 IPSTATS_MIB_INPKTS, /* InReceives */
Eric Dumazet14a19682012-08-04 20:33:59 +000024 IPSTATS_MIB_INOCTETS, /* InOctets */
25 IPSTATS_MIB_INDELIVERS, /* InDelivers */
26 IPSTATS_MIB_OUTFORWDATAGRAMS, /* OutForwDatagrams */
27 IPSTATS_MIB_OUTPKTS, /* OutRequests */
28 IPSTATS_MIB_OUTOCTETS, /* OutOctets */
29/* other fields */
Linus Torvalds1da177e2005-04-16 15:20:36 -070030 IPSTATS_MIB_INHDRERRORS, /* InHdrErrors */
31 IPSTATS_MIB_INTOOBIGERRORS, /* InTooBigErrors */
32 IPSTATS_MIB_INNOROUTES, /* InNoRoutes */
33 IPSTATS_MIB_INADDRERRORS, /* InAddrErrors */
34 IPSTATS_MIB_INUNKNOWNPROTOS, /* InUnknownProtos */
35 IPSTATS_MIB_INTRUNCATEDPKTS, /* InTruncatedPkts */
36 IPSTATS_MIB_INDISCARDS, /* InDiscards */
Linus Torvalds1da177e2005-04-16 15:20:36 -070037 IPSTATS_MIB_OUTDISCARDS, /* OutDiscards */
38 IPSTATS_MIB_OUTNOROUTES, /* OutNoRoutes */
39 IPSTATS_MIB_REASMTIMEOUT, /* ReasmTimeout */
40 IPSTATS_MIB_REASMREQDS, /* ReasmReqds */
41 IPSTATS_MIB_REASMOKS, /* ReasmOKs */
42 IPSTATS_MIB_REASMFAILS, /* ReasmFails */
43 IPSTATS_MIB_FRAGOKS, /* FragOKs */
44 IPSTATS_MIB_FRAGFAILS, /* FragFails */
45 IPSTATS_MIB_FRAGCREATES, /* FragCreates */
46 IPSTATS_MIB_INMCASTPKTS, /* InMcastPkts */
47 IPSTATS_MIB_OUTMCASTPKTS, /* OutMcastPkts */
Mitsuru Chinen71ff6c02007-04-30 00:45:02 -070048 IPSTATS_MIB_INBCASTPKTS, /* InBcastPkts */
49 IPSTATS_MIB_OUTBCASTPKTS, /* OutBcastPkts */
Neil Hormanedf391f2009-04-27 02:45:02 -070050 IPSTATS_MIB_INMCASTOCTETS, /* InMcastOctets */
51 IPSTATS_MIB_OUTMCASTOCTETS, /* OutMcastOctets */
52 IPSTATS_MIB_INBCASTOCTETS, /* InBcastOctets */
53 IPSTATS_MIB_OUTBCASTOCTETS, /* OutBcastOctets */
Eric Dumazet6a5dc9e2013-04-29 08:39:56 +000054 IPSTATS_MIB_CSUMERRORS, /* InCsumErrors */
Eric Dumazet1f07d032013-08-06 03:32:11 -070055 IPSTATS_MIB_NOECTPKTS, /* InNoECTPkts */
56 IPSTATS_MIB_ECT1PKTS, /* InECT1Pkts */
57 IPSTATS_MIB_ECT0PKTS, /* InECT0Pkts */
58 IPSTATS_MIB_CEPKTS, /* InCEPkts */
Peter Oskolkov7969e5c2018-08-02 23:34:37 +000059 IPSTATS_MIB_REASM_OVERLAPS, /* ReasmOverlaps */
Linus Torvalds1da177e2005-04-16 15:20:36 -070060 __IPSTATS_MIB_MAX
61};
62
63/* icmp mib definitions */
64/*
65 * RFC 1213: MIB-II ICMP Group
66 * RFC 2011 (updates 1213): SNMPv2 MIB for IP: ICMP group
67 */
68enum
69{
70 ICMP_MIB_NUM = 0,
71 ICMP_MIB_INMSGS, /* InMsgs */
72 ICMP_MIB_INERRORS, /* InErrors */
73 ICMP_MIB_INDESTUNREACHS, /* InDestUnreachs */
74 ICMP_MIB_INTIMEEXCDS, /* InTimeExcds */
75 ICMP_MIB_INPARMPROBS, /* InParmProbs */
76 ICMP_MIB_INSRCQUENCHS, /* InSrcQuenchs */
77 ICMP_MIB_INREDIRECTS, /* InRedirects */
78 ICMP_MIB_INECHOS, /* InEchos */
79 ICMP_MIB_INECHOREPS, /* InEchoReps */
80 ICMP_MIB_INTIMESTAMPS, /* InTimestamps */
81 ICMP_MIB_INTIMESTAMPREPS, /* InTimestampReps */
82 ICMP_MIB_INADDRMASKS, /* InAddrMasks */
83 ICMP_MIB_INADDRMASKREPS, /* InAddrMaskReps */
84 ICMP_MIB_OUTMSGS, /* OutMsgs */
85 ICMP_MIB_OUTERRORS, /* OutErrors */
86 ICMP_MIB_OUTDESTUNREACHS, /* OutDestUnreachs */
87 ICMP_MIB_OUTTIMEEXCDS, /* OutTimeExcds */
88 ICMP_MIB_OUTPARMPROBS, /* OutParmProbs */
89 ICMP_MIB_OUTSRCQUENCHS, /* OutSrcQuenchs */
90 ICMP_MIB_OUTREDIRECTS, /* OutRedirects */
91 ICMP_MIB_OUTECHOS, /* OutEchos */
92 ICMP_MIB_OUTECHOREPS, /* OutEchoReps */
93 ICMP_MIB_OUTTIMESTAMPS, /* OutTimestamps */
94 ICMP_MIB_OUTTIMESTAMPREPS, /* OutTimestampReps */
95 ICMP_MIB_OUTADDRMASKS, /* OutAddrMasks */
96 ICMP_MIB_OUTADDRMASKREPS, /* OutAddrMaskReps */
Eric Dumazet6a5dc9e2013-04-29 08:39:56 +000097 ICMP_MIB_CSUMERRORS, /* InCsumErrors */
Linus Torvalds1da177e2005-04-16 15:20:36 -070098 __ICMP_MIB_MAX
99};
100
David L Stevens96793b42007-09-17 09:57:33 -0700101#define __ICMPMSG_MIB_MAX 512 /* Out+In for all 8-bit ICMP types */
102
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103/* icmp6 mib definitions */
104/*
105 * RFC 2466: ICMPv6-MIB
106 */
107enum
108{
109 ICMP6_MIB_NUM = 0,
110 ICMP6_MIB_INMSGS, /* InMsgs */
111 ICMP6_MIB_INERRORS, /* InErrors */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700112 ICMP6_MIB_OUTMSGS, /* OutMsgs */
Eric Dumazet1f8438a2010-04-03 15:09:04 -0700113 ICMP6_MIB_OUTERRORS, /* OutErrors */
Eric Dumazet6a5dc9e2013-04-29 08:39:56 +0000114 ICMP6_MIB_CSUMERRORS, /* InCsumErrors */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115 __ICMP6_MIB_MAX
116};
117
David L Stevens14878f72007-09-16 16:52:35 -0700118#define __ICMP6MSG_MIB_MAX 512 /* Out+In for all 8-bit ICMPv6 types */
119
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120/* tcp mib definitions */
121/*
122 * RFC 1213: MIB-II TCP group
123 * RFC 2012 (updates 1213): SNMPv2-MIB-TCP
124 */
125enum
126{
127 TCP_MIB_NUM = 0,
128 TCP_MIB_RTOALGORITHM, /* RtoAlgorithm */
129 TCP_MIB_RTOMIN, /* RtoMin */
130 TCP_MIB_RTOMAX, /* RtoMax */
131 TCP_MIB_MAXCONN, /* MaxConn */
132 TCP_MIB_ACTIVEOPENS, /* ActiveOpens */
133 TCP_MIB_PASSIVEOPENS, /* PassiveOpens */
134 TCP_MIB_ATTEMPTFAILS, /* AttemptFails */
135 TCP_MIB_ESTABRESETS, /* EstabResets */
136 TCP_MIB_CURRESTAB, /* CurrEstab */
137 TCP_MIB_INSEGS, /* InSegs */
138 TCP_MIB_OUTSEGS, /* OutSegs */
139 TCP_MIB_RETRANSSEGS, /* RetransSegs */
140 TCP_MIB_INERRS, /* InErrs */
141 TCP_MIB_OUTRSTS, /* OutRsts */
Eric Dumazet6a5dc9e2013-04-29 08:39:56 +0000142 TCP_MIB_CSUMERRORS, /* InCsumErrors */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143 __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 */
Eric Dumazet6a5dc9e2013-04-29 08:39:56 +0000160 UDP_MIB_CSUMERRORS, /* InCsumErrors */
Rick Jones36cbb242014-11-06 10:37:54 -0800161 UDP_MIB_IGNOREDMULTI, /* IgnoredMulti */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162 __UDP_MIB_MAX
163};
164
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165/* linux mib definitions */
166enum
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 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700182 LINUX_MIB_PAWSACTIVEREJECTED, /* PAWSActiveRejected */
183 LINUX_MIB_PAWSESTABREJECTED, /* PAWSEstabRejected */
184 LINUX_MIB_DELAYEDACKS, /* DelayedACKs */
185 LINUX_MIB_DELAYEDACKLOCKED, /* DelayedACKLocked */
186 LINUX_MIB_DELAYEDACKLOST, /* DelayedACKLost */
187 LINUX_MIB_LISTENOVERFLOWS, /* ListenOverflows */
188 LINUX_MIB_LISTENDROPS, /* ListenDrops */
Florian Westphal31770e32017-08-30 19:24:58 +0200189 LINUX_MIB_TCPHPHITS, /* TCPHPHits */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700190 LINUX_MIB_TCPPUREACKS, /* TCPPureAcks */
Florian Westphal31770e32017-08-30 19:24:58 +0200191 LINUX_MIB_TCPHPACKS, /* TCPHPAcks */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192 LINUX_MIB_TCPRENORECOVERY, /* TCPRenoRecovery */
193 LINUX_MIB_TCPSACKRECOVERY, /* TCPSackRecovery */
194 LINUX_MIB_TCPSACKRENEGING, /* TCPSACKReneging */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700195 LINUX_MIB_TCPSACKREORDER, /* TCPSACKReorder */
196 LINUX_MIB_TCPRENOREORDER, /* TCPRenoReorder */
197 LINUX_MIB_TCPTSREORDER, /* TCPTSReorder */
198 LINUX_MIB_TCPFULLUNDO, /* TCPFullUndo */
199 LINUX_MIB_TCPPARTIALUNDO, /* TCPPartialUndo */
200 LINUX_MIB_TCPDSACKUNDO, /* TCPDSACKUndo */
201 LINUX_MIB_TCPLOSSUNDO, /* TCPLossUndo */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700202 LINUX_MIB_TCPLOSTRETRANSMIT, /* TCPLostRetransmit */
203 LINUX_MIB_TCPRENOFAILURES, /* TCPRenoFailures */
204 LINUX_MIB_TCPSACKFAILURES, /* TCPSackFailures */
205 LINUX_MIB_TCPLOSSFAILURES, /* TCPLossFailures */
206 LINUX_MIB_TCPFASTRETRANS, /* TCPFastRetrans */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700207 LINUX_MIB_TCPSLOWSTARTRETRANS, /* TCPSlowStartRetrans */
208 LINUX_MIB_TCPTIMEOUTS, /* TCPTimeouts */
Nandita Dukkipati6ba8a3b2013-03-11 10:00:43 +0000209 LINUX_MIB_TCPLOSSPROBES, /* TCPLossProbes */
Nandita Dukkipati9b717a82013-03-11 10:00:44 +0000210 LINUX_MIB_TCPLOSSPROBERECOVERY, /* TCPLossProbeRecovery */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700211 LINUX_MIB_TCPRENORECOVERYFAIL, /* TCPRenoRecoveryFail */
212 LINUX_MIB_TCPSACKRECOVERYFAIL, /* TCPSackRecoveryFail */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700213 LINUX_MIB_TCPRCVCOLLAPSED, /* TCPRcvCollapsed */
214 LINUX_MIB_TCPDSACKOLDSENT, /* TCPDSACKOldSent */
215 LINUX_MIB_TCPDSACKOFOSENT, /* TCPDSACKOfoSent */
216 LINUX_MIB_TCPDSACKRECV, /* TCPDSACKRecv */
217 LINUX_MIB_TCPDSACKOFORECV, /* TCPDSACKOfoRecv */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700218 LINUX_MIB_TCPABORTONDATA, /* TCPAbortOnData */
219 LINUX_MIB_TCPABORTONCLOSE, /* TCPAbortOnClose */
220 LINUX_MIB_TCPABORTONMEMORY, /* TCPAbortOnMemory */
221 LINUX_MIB_TCPABORTONTIMEOUT, /* TCPAbortOnTimeout */
222 LINUX_MIB_TCPABORTONLINGER, /* TCPAbortOnLinger */
223 LINUX_MIB_TCPABORTFAILED, /* TCPAbortFailed */
224 LINUX_MIB_TCPMEMORYPRESSURES, /* TCPMemoryPressures */
Eric Dumazet06044752017-06-07 13:29:12 -0700225 LINUX_MIB_TCPMEMORYPRESSURESCHRONO, /* TCPMemoryPressuresChrono */
Ilpo Järvinen18f02542007-08-24 22:55:52 -0700226 LINUX_MIB_TCPSACKDISCARD, /* TCPSACKDiscard */
227 LINUX_MIB_TCPDSACKIGNOREDOLD, /* TCPSACKIgnoredOld */
228 LINUX_MIB_TCPDSACKIGNOREDNOUNDO, /* TCPSACKIgnoredNoUndo */
Ilpo Järvinen912d8f02007-09-25 22:47:31 -0700229 LINUX_MIB_TCPSPURIOUSRTOS, /* TCPSpuriousRTOs */
David S. Miller785957d2008-07-30 03:03:15 -0700230 LINUX_MIB_TCPMD5NOTFOUND, /* TCPMD5NotFound */
231 LINUX_MIB_TCPMD5UNEXPECTED, /* TCPMD5Unexpected */
Eric Dumazet72145a62016-08-24 09:01:23 -0700232 LINUX_MIB_TCPMD5FAILURE, /* TCPMD5Failure */
Ilpo Järvinen111cc8b2008-11-24 21:27:22 -0800233 LINUX_MIB_SACKSHIFTED,
234 LINUX_MIB_SACKMERGED,
235 LINUX_MIB_SACKSHIFTFALLBACK,
Eric Dumazet6cce09f2010-03-07 23:21:57 +0000236 LINUX_MIB_TCPBACKLOGDROP,
Eric Dumazet8fe809a2017-02-01 20:47:59 -0800237 LINUX_MIB_PFMEMALLOCDROP,
Eric Dumazet6cce09f2010-03-07 23:21:57 +0000238 LINUX_MIB_TCPMINTTLDROP, /* RFC 5082 */
Eric Dumazet907cdda2010-03-19 05:37:18 +0000239 LINUX_MIB_TCPDEFERACCEPTDROP,
Eric Dumazetb5f7e752010-06-02 12:05:27 +0000240 LINUX_MIB_IPRPFILTER, /* IP Reverse Path Filter (rp_filter) */
Tom Herbert67631512010-12-08 12:16:33 -0800241 LINUX_MIB_TCPTIMEWAITOVERFLOW, /* TCPTimeWaitOverflow */
Eric Dumazet946cedc2011-08-30 03:21:44 +0000242 LINUX_MIB_TCPREQQFULLDOCOOKIES, /* TCPReqQFullDoCookies */
243 LINUX_MIB_TCPREQQFULLDROP, /* TCPReqQFullDrop */
Eric Dumazet09e9b812012-01-25 04:44:20 +0000244 LINUX_MIB_TCPRETRANSFAIL, /* TCPRetransFail */
Eric Dumazeta6df1ae2012-07-16 01:41:36 +0000245 LINUX_MIB_TCPRCVCOALESCE, /* TCPRcvCoalesce */
Eric Dumazet4f693b52018-11-27 14:42:03 -0800246 LINUX_MIB_TCPBACKLOGCOALESCE, /* TCPBacklogCoalesce */
Eric Dumazeta6df1ae2012-07-16 01:41:36 +0000247 LINUX_MIB_TCPOFOQUEUE, /* TCPOFOQueue */
248 LINUX_MIB_TCPOFODROP, /* TCPOFODrop */
249 LINUX_MIB_TCPOFOMERGE, /* TCPOFOMerge */
Eric Dumazet282f23c2012-07-17 10:13:05 +0200250 LINUX_MIB_TCPCHALLENGEACK, /* TCPChallengeACK */
Eric Dumazet0c246042012-07-17 01:41:30 +0000251 LINUX_MIB_TCPSYNCHALLENGE, /* TCPSYNChallenge */
Yuchung Cheng783237e2012-07-19 06:43:07 +0000252 LINUX_MIB_TCPFASTOPENACTIVE, /* TCPFastOpenActive */
Yuchung Chengf19c29e2014-03-03 12:31:36 -0800253 LINUX_MIB_TCPFASTOPENACTIVEFAIL, /* TCPFastOpenActiveFail */
Jerry Chu10467162012-08-31 12:29:11 +0000254 LINUX_MIB_TCPFASTOPENPASSIVE, /* TCPFastOpenPassive*/
255 LINUX_MIB_TCPFASTOPENPASSIVEFAIL, /* TCPFastOpenPassiveFail */
256 LINUX_MIB_TCPFASTOPENLISTENOVERFLOW, /* TCPFastOpenListenOverflow */
257 LINUX_MIB_TCPFASTOPENCOOKIEREQD, /* TCPFastOpenCookieReqd */
Wei Wang46c2fa32017-04-20 14:45:47 -0700258 LINUX_MIB_TCPFASTOPENBLACKHOLE, /* TCPFastOpenBlackholeDetect */
Eric Dumazet0e280af2013-04-18 06:52:51 +0000259 LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES, /* TCPSpuriousRtxHostQueues */
Eliezer Tamir288a93762013-08-07 11:33:25 +0300260 LINUX_MIB_BUSYPOLLRXPACKETS, /* BusyPollRxPackets */
Eric Dumazetf54b3112013-12-05 22:36:05 -0800261 LINUX_MIB_TCPAUTOCORKING, /* TCPAutoCorking */
Florian Westphal8e165e22014-02-25 14:34:32 +0100262 LINUX_MIB_TCPFROMZEROWINDOWADV, /* TCPFromZeroWindowAdv */
263 LINUX_MIB_TCPTOZEROWINDOWADV, /* TCPToZeroWindowAdv */
264 LINUX_MIB_TCPWANTZEROWINDOWADV, /* TCPWantZeroWindowAdv */
Yuchung Chengf19c29e2014-03-03 12:31:36 -0800265 LINUX_MIB_TCPSYNRETRANS, /* TCPSynRetrans */
266 LINUX_MIB_TCPORIGDATASENT, /* TCPOrigDataSent */
Eric Dumazet6e3a8a92014-12-04 16:13:23 -0800267 LINUX_MIB_TCPHYSTARTTRAINDETECT, /* TCPHystartTrainDetect */
268 LINUX_MIB_TCPHYSTARTTRAINCWND, /* TCPHystartTrainCwnd */
269 LINUX_MIB_TCPHYSTARTDELAYDETECT, /* TCPHystartDelayDetect */
270 LINUX_MIB_TCPHYSTARTDELAYCWND, /* TCPHystartDelayCwnd */
Neal Cardwell032ee422015-02-06 16:04:38 -0500271 LINUX_MIB_TCPACKSKIPPEDSYNRECV, /* TCPACKSkippedSynRecv */
272 LINUX_MIB_TCPACKSKIPPEDPAWS, /* TCPACKSkippedPAWS */
273 LINUX_MIB_TCPACKSKIPPEDSEQ, /* TCPACKSkippedSeq */
274 LINUX_MIB_TCPACKSKIPPEDFINWAIT2, /* TCPACKSkippedFinWait2 */
275 LINUX_MIB_TCPACKSKIPPEDTIMEWAIT, /* TCPACKSkippedTimeWait */
276 LINUX_MIB_TCPACKSKIPPEDCHALLENGE, /* TCPACKSkippedChallenge */
Eric Dumazete520af42015-05-06 14:26:25 -0700277 LINUX_MIB_TCPWINPROBE, /* TCPWinProbe */
278 LINUX_MIB_TCPKEEPALIVE, /* TCPKeepAlive */
Rick Jonesb56ea292015-07-21 16:14:13 -0700279 LINUX_MIB_TCPMTUPFAIL, /* TCPMTUPFail */
280 LINUX_MIB_TCPMTUPSUCCESS, /* TCPMTUPSuccess */
Yuchung Chengfeb5f2e2018-04-17 23:18:49 -0700281 LINUX_MIB_TCPDELIVERED, /* TCPDelivered */
282 LINUX_MIB_TCPDELIVEREDCE, /* TCPDeliveredCE */
Eric Dumazet200d95f2018-05-17 14:47:27 -0700283 LINUX_MIB_TCPACKCOMPRESSED, /* TCPAckCompressed */
Yafang Shaofb223502018-06-24 10:02:54 -0400284 LINUX_MIB_TCPZEROWINDOWDROP, /* TCPZeroWindowDrop */
Yafang Shaoea5d0c32018-06-28 00:22:56 -0400285 LINUX_MIB_TCPRCVQDROP, /* TCPRcvQDrop */
Eric Dumazetf070ef22019-05-18 05:12:05 -0700286 LINUX_MIB_TCPWQUEUETOOBIG, /* TCPWqueueTooBig */
Jason Baron9092a762019-05-29 12:33:57 -0400287 LINUX_MIB_TCPFASTOPENPASSIVEALTKEY, /* TCPFastOpenPassiveAltKey */
Abdul Kabbani32efcc02020-01-24 16:34:02 -0500288 LINUX_MIB_TCPTIMEOUTREHASH, /* TCPTimeoutRehash */
289 LINUX_MIB_TCPDUPLICATEDATAREHASH, /* TCPDuplicateDataRehash */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700290 __LINUX_MIB_MAX
291};
292
Masahide NAKAMURA558f82e2007-12-20 20:42:57 -0800293/* linux Xfrm mib definitions */
294enum
295{
296 LINUX_MIB_XFRMNUM = 0,
297 LINUX_MIB_XFRMINERROR, /* XfrmInError */
298 LINUX_MIB_XFRMINBUFFERERROR, /* XfrmInBufferError */
299 LINUX_MIB_XFRMINHDRERROR, /* XfrmInHdrError */
300 LINUX_MIB_XFRMINNOSTATES, /* XfrmInNoStates */
301 LINUX_MIB_XFRMINSTATEPROTOERROR, /* XfrmInStateProtoError */
302 LINUX_MIB_XFRMINSTATEMODEERROR, /* XfrmInStateModeError */
Masahide NAKAMURA9472c9e2008-01-31 17:14:58 -0800303 LINUX_MIB_XFRMINSTATESEQERROR, /* XfrmInStateSeqError */
Masahide NAKAMURA558f82e2007-12-20 20:42:57 -0800304 LINUX_MIB_XFRMINSTATEEXPIRED, /* XfrmInStateExpired */
305 LINUX_MIB_XFRMINSTATEMISMATCH, /* XfrmInStateMismatch */
306 LINUX_MIB_XFRMINSTATEINVALID, /* XfrmInStateInvalid */
307 LINUX_MIB_XFRMINTMPLMISMATCH, /* XfrmInTmplMismatch */
308 LINUX_MIB_XFRMINNOPOLS, /* XfrmInNoPols */
309 LINUX_MIB_XFRMINPOLBLOCK, /* XfrmInPolBlock */
310 LINUX_MIB_XFRMINPOLERROR, /* XfrmInPolError */
311 LINUX_MIB_XFRMOUTERROR, /* XfrmOutError */
312 LINUX_MIB_XFRMOUTBUNDLEGENERROR, /* XfrmOutBundleGenError */
313 LINUX_MIB_XFRMOUTBUNDLECHECKERROR, /* XfrmOutBundleCheckError */
314 LINUX_MIB_XFRMOUTNOSTATES, /* XfrmOutNoStates */
315 LINUX_MIB_XFRMOUTSTATEPROTOERROR, /* XfrmOutStateProtoError */
316 LINUX_MIB_XFRMOUTSTATEMODEERROR, /* XfrmOutStateModeError */
Masahide NAKAMURA9472c9e2008-01-31 17:14:58 -0800317 LINUX_MIB_XFRMOUTSTATESEQERROR, /* XfrmOutStateSeqError */
Masahide NAKAMURA558f82e2007-12-20 20:42:57 -0800318 LINUX_MIB_XFRMOUTSTATEEXPIRED, /* XfrmOutStateExpired */
319 LINUX_MIB_XFRMOUTPOLBLOCK, /* XfrmOutPolBlock */
320 LINUX_MIB_XFRMOUTPOLDEAD, /* XfrmOutPolDead */
321 LINUX_MIB_XFRMOUTPOLERROR, /* XfrmOutPolError */
jamal72032fd2010-02-18 03:35:07 +0000322 LINUX_MIB_XFRMFWDHDRERROR, /* XfrmFwdHdrError*/
Li RongQingbb65a9c2012-12-28 16:06:28 +0800323 LINUX_MIB_XFRMOUTSTATEINVALID, /* XfrmOutStateInvalid */
Fan Du4c4d41f2013-06-06 10:15:54 +0800324 LINUX_MIB_XFRMACQUIREERROR, /* XfrmAcquireError */
Masahide NAKAMURA558f82e2007-12-20 20:42:57 -0800325 __LINUX_MIB_XFRMMAX
326};
327
Jakub Kicinskid26b6982019-10-04 16:19:24 -0700328/* linux TLS mib definitions */
329enum
330{
331 LINUX_MIB_TLSNUM = 0,
Jakub Kicinskib32fd3c2019-10-04 16:19:25 -0700332 LINUX_MIB_TLSCURRTXSW, /* TlsCurrTxSw */
333 LINUX_MIB_TLSCURRRXSW, /* TlsCurrRxSw */
334 LINUX_MIB_TLSCURRTXDEVICE, /* TlsCurrTxDevice */
335 LINUX_MIB_TLSCURRRXDEVICE, /* TlsCurrRxDevice */
336 LINUX_MIB_TLSTXSW, /* TlsTxSw */
337 LINUX_MIB_TLSRXSW, /* TlsRxSw */
338 LINUX_MIB_TLSTXDEVICE, /* TlsTxDevice */
339 LINUX_MIB_TLSRXDEVICE, /* TlsRxDevice */
Jakub Kicinski5c5ec662019-10-04 16:19:26 -0700340 LINUX_MIB_TLSDECRYPTERROR, /* TlsDecryptError */
Jakub Kicinskia4d26fd2019-10-04 16:19:27 -0700341 LINUX_MIB_TLSRXDEVICERESYNC, /* TlsRxDeviceResync */
Jakub Kicinskid26b6982019-10-04 16:19:24 -0700342 __LINUX_MIB_TLSMAX
343};
344
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345#endif /* _LINUX_SNMP_H */