LWIP 官方手册 的中文翻译 SNMPv1 agent for lwIP Author: Christiaan Simons This isa brief introduction how to use and configure the SNMP agent. Note the agent uses the raw-API UDP interface so you may also want to read to gain a better understanding of the SNMP message handling. /* 本beplayapp体育下载将简要介绍如何使用和配置 SNMP 代理。注意代理中使用了 RAW-API 的 UDP 接口, 所以你可能也需要去阅读一下 中的内容以便更好的理解 SNMP 消息的处理机制。*/ 0 Agent Capabilities ==================== /* 0 代理的处理能力================ */ SNMPv1 per RFC1157 This is an old(er) standard but is still widely supported. For SNMPv2c and v3 have a plexity and need many more lines of code. IMHO this breaks the idea of "lightweight IP". Note the S in SNMP stands for "Simple". Note that "Simple" is relative. SNMP is pared to plex work management protocols CMIP (Common Management Information Protocol) and CMOT (CMip Over Tcp). /* 支持 RFC1157 定义的 SNMPv1 这是一个比较老的标准了, 但是它仍然被广泛的支持。因为 SNMP V2C 和 V3 的实现更加的复杂, 需要增加非常多的源码, 以我个人之愚见, 这与我们所倡导的" 轻量化的 IP 协议" 是相背离的,所以我们选择只支持 V1。 SNMP 中的 S 代表"simple" ,但是"simple" 是相对的, SNMP 相对于复杂的 ISO 网络管理协议 CMIP (Common Management Information Protocol) 和 CMOT(TC P 之上的 CMIP) 是简单的。*/ MIB II per RFC1213 The standard lwIP stack management information base. This isa required MIB, so this is always enabled. When builing lwIP without TCP, the mib- group is omitted. The groups EGP, CMOT and transmission are disabled by default. /* RFC1213 定义的 MIB II 标准 LWIP 协议栈管理信息基础。这是一个必需的 MIB ,所以它总是被激活了的。当不使用 TCP 构建 LWIP 时, mib- 组被省略。 EGP,CMOT 组和传输默认是被屏蔽了的。*/ Most mib-2 objects are not writable except: sysName, sysLocation, sysContact, snmpEnableAuthenTraps. Writing to or changing the ARP and IP address and route tables is not possible. /* 多数 mib-2 对象都是不可写的,除了:sysName,sysLocation,sysContact,snmpEnableAuthenTraps. 不能写或者更改 ARP 和 IP 地址及路由表。*/ Note lwIP has a very limited notion of IP routing. It currently doen't have a route table and doesn't have a notion of the U,G,H flags. Instead lwIP uses the interface list with only one default interfa
LWIP官方手册snmp_agent.txt的中文翻译 来自beplayapp体育下载www.apt-nc.com转载请标明出处.