SNMPv1agent for lwIPAuthor: ChristiaanSimonsThis is abrief introductionhowto use and configure the SNMP the agentuses theraw-API UDP interfaceso youmayalso want toread togaina betterunderstandingof the SNMP messagehandling./*本文档将简要介绍如何使用和配置SNMP代理。注意代理中使用了RAW-API的UDP接口,。*/0 Agent Capabilities====================/*0代理的处理能力================*/SNMPv1perRFC1157Thisisan old(er) standardbutisstill widely have a plexityand needmanymorelines of this breaks the idea of "lightweightIP".NotetheS in SNMP stands for "Simple".Notethat"Simple"isrelative. SNMP is pared to workmanagement protocolsCMIP (Common ManagementInformation Protocol)andCMOT(CMip OverTcp)./*支持RFC1157定义的SNMPv1这是一个比较老的标准了,但是它仍然被广泛的支持。因为SNMPV2C和V3的实现更加的复杂,需要增加非常多的源码,以我个人之愚见,这与我们所倡导的"轻量化的IP协议"是相背离的,所以我们选择只支持V1。SNMP中的S代表"simple",但是"simple"是相对的,mon ManagementInformation Protocol)和CMOT(TCP之上的CMIP)是简单的。*/MIB IIperRFC1213ThestandardlwIP stack managementinformation required MIB, sothisisalways without TCP,themib- EGP,CMOTand transmission are disabledbydefault./*RFC1213定义的MIBII标准LWIP协议栈管理信息基础。这是一个必需的MIB,所以它总是被激活了的。当不使用TCP构建LWIP时,mib-。EGP,CMOT组和传输默认是被屏蔽了的。*/Mostmib-2 objects are notwritableexcept:sysName,sysLocation,sysContact, or