snmp.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:10k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * Definitions for MIBs
  3.  *
  4.  * Author: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
  5.  */
  6. #ifndef _LINUX_SNMP_H
  7. #define _LINUX_SNMP_H
  8. /* ipstats mib definitions */
  9. /*
  10.  * RFC 1213:  MIB-II
  11.  * RFC 2011 (updates 1213):  SNMPv2-MIB-IP
  12.  * RFC 2863:  Interfaces Group MIB
  13.  * RFC 2465:  IPv6 MIB: General Group
  14.  * draft-ietf-ipv6-rfc2011-update-10.txt: MIB for IP: IP Statistics Tables
  15.  */
  16. enum
  17. {
  18. IPSTATS_MIB_NUM = 0,
  19. IPSTATS_MIB_INRECEIVES, /* InReceives */
  20. IPSTATS_MIB_INHDRERRORS, /* InHdrErrors */
  21. IPSTATS_MIB_INTOOBIGERRORS, /* InTooBigErrors */
  22. IPSTATS_MIB_INNOROUTES, /* InNoRoutes */
  23. IPSTATS_MIB_INADDRERRORS, /* InAddrErrors */
  24. IPSTATS_MIB_INUNKNOWNPROTOS, /* InUnknownProtos */
  25. IPSTATS_MIB_INTRUNCATEDPKTS, /* InTruncatedPkts */
  26. IPSTATS_MIB_INDISCARDS, /* InDiscards */
  27. IPSTATS_MIB_INDELIVERS, /* InDelivers */
  28. IPSTATS_MIB_OUTFORWDATAGRAMS, /* OutForwDatagrams */
  29. IPSTATS_MIB_OUTREQUESTS, /* OutRequests */
  30. IPSTATS_MIB_OUTDISCARDS, /* OutDiscards */
  31. IPSTATS_MIB_OUTNOROUTES, /* OutNoRoutes */
  32. IPSTATS_MIB_REASMTIMEOUT, /* ReasmTimeout */
  33. IPSTATS_MIB_REASMREQDS, /* ReasmReqds */
  34. IPSTATS_MIB_REASMOKS, /* ReasmOKs */
  35. IPSTATS_MIB_REASMFAILS, /* ReasmFails */
  36. IPSTATS_MIB_FRAGOKS, /* FragOKs */
  37. IPSTATS_MIB_FRAGFAILS, /* FragFails */
  38. IPSTATS_MIB_FRAGCREATES, /* FragCreates */
  39. IPSTATS_MIB_INMCASTPKTS, /* InMcastPkts */
  40. IPSTATS_MIB_OUTMCASTPKTS, /* OutMcastPkts */
  41. __IPSTATS_MIB_MAX
  42. };
  43. /* icmp mib definitions */
  44. /*
  45.  * RFC 1213:  MIB-II ICMP Group
  46.  * RFC 2011 (updates 1213):  SNMPv2 MIB for IP: ICMP group
  47.  */
  48. enum
  49. {
  50. ICMP_MIB_NUM = 0,
  51. ICMP_MIB_INMSGS, /* InMsgs */
  52. ICMP_MIB_INERRORS, /* InErrors */
  53. ICMP_MIB_INDESTUNREACHS, /* InDestUnreachs */
  54. ICMP_MIB_INTIMEEXCDS, /* InTimeExcds */
  55. ICMP_MIB_INPARMPROBS, /* InParmProbs */
  56. ICMP_MIB_INSRCQUENCHS, /* InSrcQuenchs */
  57. ICMP_MIB_INREDIRECTS, /* InRedirects */
  58. ICMP_MIB_INECHOS, /* InEchos */
  59. ICMP_MIB_INECHOREPS, /* InEchoReps */
  60. ICMP_MIB_INTIMESTAMPS, /* InTimestamps */
  61. ICMP_MIB_INTIMESTAMPREPS, /* InTimestampReps */
  62. ICMP_MIB_INADDRMASKS, /* InAddrMasks */
  63. ICMP_MIB_INADDRMASKREPS, /* InAddrMaskReps */
  64. ICMP_MIB_OUTMSGS, /* OutMsgs */
  65. ICMP_MIB_OUTERRORS, /* OutErrors */
  66. ICMP_MIB_OUTDESTUNREACHS, /* OutDestUnreachs */
  67. ICMP_MIB_OUTTIMEEXCDS, /* OutTimeExcds */
  68. ICMP_MIB_OUTPARMPROBS, /* OutParmProbs */
  69. ICMP_MIB_OUTSRCQUENCHS, /* OutSrcQuenchs */
  70. ICMP_MIB_OUTREDIRECTS, /* OutRedirects */
  71. ICMP_MIB_OUTECHOS, /* OutEchos */
  72. ICMP_MIB_OUTECHOREPS, /* OutEchoReps */
  73. ICMP_MIB_OUTTIMESTAMPS, /* OutTimestamps */
  74. ICMP_MIB_OUTTIMESTAMPREPS, /* OutTimestampReps */
  75. ICMP_MIB_OUTADDRMASKS, /* OutAddrMasks */
  76. ICMP_MIB_OUTADDRMASKREPS, /* OutAddrMaskReps */
  77. __ICMP_MIB_MAX
  78. };
  79. /* icmp6 mib definitions */
  80. /*
  81.  * RFC 2466:  ICMPv6-MIB
  82.  */
  83. enum
  84. {
  85. ICMP6_MIB_NUM = 0,
  86. ICMP6_MIB_INMSGS, /* InMsgs */
  87. ICMP6_MIB_INERRORS, /* InErrors */
  88. ICMP6_MIB_INDESTUNREACHS, /* InDestUnreachs */
  89. ICMP6_MIB_INPKTTOOBIGS, /* InPktTooBigs */
  90. ICMP6_MIB_INTIMEEXCDS, /* InTimeExcds */
  91. ICMP6_MIB_INPARMPROBLEMS, /* InParmProblems */
  92. ICMP6_MIB_INECHOS, /* InEchos */
  93. ICMP6_MIB_INECHOREPLIES, /* InEchoReplies */
  94. ICMP6_MIB_INGROUPMEMBQUERIES, /* InGroupMembQueries */
  95. ICMP6_MIB_INGROUPMEMBRESPONSES, /* InGroupMembResponses */
  96. ICMP6_MIB_INGROUPMEMBREDUCTIONS, /* InGroupMembReductions */
  97. ICMP6_MIB_INROUTERSOLICITS, /* InRouterSolicits */
  98. ICMP6_MIB_INROUTERADVERTISEMENTS, /* InRouterAdvertisements */
  99. ICMP6_MIB_INNEIGHBORSOLICITS, /* InNeighborSolicits */
  100. ICMP6_MIB_INNEIGHBORADVERTISEMENTS, /* InNeighborAdvertisements */
  101. ICMP6_MIB_INREDIRECTS, /* InRedirects */
  102. ICMP6_MIB_OUTMSGS, /* OutMsgs */
  103. ICMP6_MIB_OUTDESTUNREACHS, /* OutDestUnreachs */
  104. ICMP6_MIB_OUTPKTTOOBIGS, /* OutPktTooBigs */
  105. ICMP6_MIB_OUTTIMEEXCDS, /* OutTimeExcds */
  106. ICMP6_MIB_OUTPARMPROBLEMS, /* OutParmProblems */
  107. ICMP6_MIB_OUTECHOREPLIES, /* OutEchoReplies */
  108. ICMP6_MIB_OUTROUTERSOLICITS, /* OutRouterSolicits */
  109. ICMP6_MIB_OUTNEIGHBORSOLICITS, /* OutNeighborSolicits */
  110. ICMP6_MIB_OUTNEIGHBORADVERTISEMENTS, /* OutNeighborAdvertisements */
  111. ICMP6_MIB_OUTREDIRECTS, /* OutRedirects */
  112. ICMP6_MIB_OUTGROUPMEMBRESPONSES, /* OutGroupMembResponses */
  113. ICMP6_MIB_OUTGROUPMEMBREDUCTIONS, /* OutGroupMembReductions */
  114. __ICMP6_MIB_MAX
  115. };
  116. /* tcp mib definitions */
  117. /*
  118.  * RFC 1213:  MIB-II TCP group
  119.  * RFC 2012 (updates 1213):  SNMPv2-MIB-TCP
  120.  */
  121. enum
  122. {
  123. TCP_MIB_NUM = 0,
  124. TCP_MIB_RTOALGORITHM, /* RtoAlgorithm */
  125. TCP_MIB_RTOMIN, /* RtoMin */
  126. TCP_MIB_RTOMAX, /* RtoMax */
  127. TCP_MIB_MAXCONN, /* MaxConn */
  128. TCP_MIB_ACTIVEOPENS, /* ActiveOpens */
  129. TCP_MIB_PASSIVEOPENS, /* PassiveOpens */
  130. TCP_MIB_ATTEMPTFAILS, /* AttemptFails */
  131. TCP_MIB_ESTABRESETS, /* EstabResets */
  132. TCP_MIB_CURRESTAB, /* CurrEstab */
  133. TCP_MIB_INSEGS, /* InSegs */
  134. TCP_MIB_OUTSEGS, /* OutSegs */
  135. TCP_MIB_RETRANSSEGS, /* RetransSegs */
  136. TCP_MIB_INERRS, /* InErrs */
  137. TCP_MIB_OUTRSTS, /* OutRsts */
  138. __TCP_MIB_MAX
  139. };
  140. /* udp mib definitions */
  141. /*
  142.  * RFC 1213:  MIB-II UDP group
  143.  * RFC 2013 (updates 1213):  SNMPv2-MIB-UDP
  144.  */
  145. enum
  146. {
  147. UDP_MIB_NUM = 0,
  148. UDP_MIB_INDATAGRAMS, /* InDatagrams */
  149. UDP_MIB_NOPORTS, /* NoPorts */
  150. UDP_MIB_INERRORS, /* InErrors */
  151. UDP_MIB_OUTDATAGRAMS, /* OutDatagrams */
  152. __UDP_MIB_MAX
  153. };
  154. /* sctp mib definitions */
  155. /*
  156.  * draft-ietf-sigtran-sctp-mib-07.txt
  157.  */
  158. enum
  159. {
  160. SCTP_MIB_NUM = 0,
  161. SCTP_MIB_CURRESTAB, /* CurrEstab */
  162. SCTP_MIB_ACTIVEESTABS, /* ActiveEstabs */
  163. SCTP_MIB_PASSIVEESTABS, /* PassiveEstabs */
  164. SCTP_MIB_ABORTEDS, /* Aborteds */
  165. SCTP_MIB_SHUTDOWNS, /* Shutdowns */
  166. SCTP_MIB_OUTOFBLUES, /* OutOfBlues */
  167. SCTP_MIB_CHECKSUMERRORS, /* ChecksumErrors */
  168. SCTP_MIB_OUTCTRLCHUNKS, /* OutCtrlChunks */
  169. SCTP_MIB_OUTORDERCHUNKS, /* OutOrderChunks */
  170. SCTP_MIB_OUTUNORDERCHUNKS, /* OutUnorderChunks */
  171. SCTP_MIB_INCTRLCHUNKS, /* InCtrlChunks */
  172. SCTP_MIB_INORDERCHUNKS, /* InOrderChunks */
  173. SCTP_MIB_INUNORDERCHUNKS, /* InUnorderChunks */
  174. SCTP_MIB_FRAGUSRMSGS, /* FragUsrMsgs */
  175. SCTP_MIB_REASMUSRMSGS, /* ReasmUsrMsgs */
  176. SCTP_MIB_OUTSCTPPACKS, /* OutSCTPPacks */
  177. SCTP_MIB_INSCTPPACKS, /* InSCTPPacks */
  178. SCTP_MIB_RTOALGORITHM, /* RtoAlgorithm */
  179. SCTP_MIB_RTOMIN, /* RtoMin */
  180. SCTP_MIB_RTOMAX, /* RtoMax */
  181. SCTP_MIB_RTOINITIAL, /* RtoInitial */
  182. SCTP_MIB_VALCOOKIELIFE, /* ValCookieLife */
  183. SCTP_MIB_MAXINITRETR, /* MaxInitRetr */
  184. __SCTP_MIB_MAX
  185. };
  186. /* linux mib definitions */
  187. enum
  188. {
  189. LINUX_MIB_NUM = 0,
  190. LINUX_MIB_SYNCOOKIESSENT, /* SyncookiesSent */
  191. LINUX_MIB_SYNCOOKIESRECV, /* SyncookiesRecv */
  192. LINUX_MIB_SYNCOOKIESFAILED, /* SyncookiesFailed */
  193. LINUX_MIB_EMBRYONICRSTS, /* EmbryonicRsts */
  194. LINUX_MIB_PRUNECALLED, /* PruneCalled */
  195. LINUX_MIB_RCVPRUNED, /* RcvPruned */
  196. LINUX_MIB_OFOPRUNED, /* OfoPruned */
  197. LINUX_MIB_OUTOFWINDOWICMPS, /* OutOfWindowIcmps */
  198. LINUX_MIB_LOCKDROPPEDICMPS, /* LockDroppedIcmps */
  199. LINUX_MIB_ARPFILTER, /* ArpFilter */
  200. LINUX_MIB_TIMEWAITED, /* TimeWaited */
  201. LINUX_MIB_TIMEWAITRECYCLED, /* TimeWaitRecycled */
  202. LINUX_MIB_TIMEWAITKILLED, /* TimeWaitKilled */
  203. LINUX_MIB_PAWSPASSIVEREJECTED, /* PAWSPassiveRejected */
  204. LINUX_MIB_PAWSACTIVEREJECTED, /* PAWSActiveRejected */
  205. LINUX_MIB_PAWSESTABREJECTED, /* PAWSEstabRejected */
  206. LINUX_MIB_DELAYEDACKS, /* DelayedACKs */
  207. LINUX_MIB_DELAYEDACKLOCKED, /* DelayedACKLocked */
  208. LINUX_MIB_DELAYEDACKLOST, /* DelayedACKLost */
  209. LINUX_MIB_LISTENOVERFLOWS, /* ListenOverflows */
  210. LINUX_MIB_LISTENDROPS, /* ListenDrops */
  211. LINUX_MIB_TCPPREQUEUED, /* TCPPrequeued */
  212. LINUX_MIB_TCPDIRECTCOPYFROMBACKLOG, /* TCPDirectCopyFromBacklog */
  213. LINUX_MIB_TCPDIRECTCOPYFROMPREQUEUE, /* TCPDirectCopyFromPrequeue */
  214. LINUX_MIB_TCPPREQUEUEDROPPED, /* TCPPrequeueDropped */
  215. LINUX_MIB_TCPHPHITS, /* TCPHPHits */
  216. LINUX_MIB_TCPHPHITSTOUSER, /* TCPHPHitsToUser */
  217. LINUX_MIB_TCPPUREACKS, /* TCPPureAcks */
  218. LINUX_MIB_TCPHPACKS, /* TCPHPAcks */
  219. LINUX_MIB_TCPRENORECOVERY, /* TCPRenoRecovery */
  220. LINUX_MIB_TCPSACKRECOVERY, /* TCPSackRecovery */
  221. LINUX_MIB_TCPSACKRENEGING, /* TCPSACKReneging */
  222. LINUX_MIB_TCPFACKREORDER, /* TCPFACKReorder */
  223. LINUX_MIB_TCPSACKREORDER, /* TCPSACKReorder */
  224. LINUX_MIB_TCPRENOREORDER, /* TCPRenoReorder */
  225. LINUX_MIB_TCPTSREORDER, /* TCPTSReorder */
  226. LINUX_MIB_TCPFULLUNDO, /* TCPFullUndo */
  227. LINUX_MIB_TCPPARTIALUNDO, /* TCPPartialUndo */
  228. LINUX_MIB_TCPDSACKUNDO, /* TCPDSACKUndo */
  229. LINUX_MIB_TCPLOSSUNDO, /* TCPLossUndo */
  230. LINUX_MIB_TCPLOSS, /* TCPLoss */
  231. LINUX_MIB_TCPLOSTRETRANSMIT, /* TCPLostRetransmit */
  232. LINUX_MIB_TCPRENOFAILURES, /* TCPRenoFailures */
  233. LINUX_MIB_TCPSACKFAILURES, /* TCPSackFailures */
  234. LINUX_MIB_TCPLOSSFAILURES, /* TCPLossFailures */
  235. LINUX_MIB_TCPFASTRETRANS, /* TCPFastRetrans */
  236. LINUX_MIB_TCPFORWARDRETRANS, /* TCPForwardRetrans */
  237. LINUX_MIB_TCPSLOWSTARTRETRANS, /* TCPSlowStartRetrans */
  238. LINUX_MIB_TCPTIMEOUTS, /* TCPTimeouts */
  239. LINUX_MIB_TCPRENORECOVERYFAIL, /* TCPRenoRecoveryFail */
  240. LINUX_MIB_TCPSACKRECOVERYFAIL, /* TCPSackRecoveryFail */
  241. LINUX_MIB_TCPSCHEDULERFAILED, /* TCPSchedulerFailed */
  242. LINUX_MIB_TCPRCVCOLLAPSED, /* TCPRcvCollapsed */
  243. LINUX_MIB_TCPDSACKOLDSENT, /* TCPDSACKOldSent */
  244. LINUX_MIB_TCPDSACKOFOSENT, /* TCPDSACKOfoSent */
  245. LINUX_MIB_TCPDSACKRECV, /* TCPDSACKRecv */
  246. LINUX_MIB_TCPDSACKOFORECV, /* TCPDSACKOfoRecv */
  247. LINUX_MIB_TCPABORTONSYN, /* TCPAbortOnSyn */
  248. LINUX_MIB_TCPABORTONDATA, /* TCPAbortOnData */
  249. LINUX_MIB_TCPABORTONCLOSE, /* TCPAbortOnClose */
  250. LINUX_MIB_TCPABORTONMEMORY, /* TCPAbortOnMemory */
  251. LINUX_MIB_TCPABORTONTIMEOUT, /* TCPAbortOnTimeout */
  252. LINUX_MIB_TCPABORTONLINGER, /* TCPAbortOnLinger */
  253. LINUX_MIB_TCPABORTFAILED, /* TCPAbortFailed */
  254. LINUX_MIB_TCPMEMORYPRESSURES, /* TCPMemoryPressures */
  255. __LINUX_MIB_MAX
  256. };
  257. #endif /* _LINUX_SNMP_H */