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