Tag: nms

net-snmp解析代码,如何解析MIB?

我正在学习net-snmp代码库。 解析MIB。 在parse.c and parse.h代码保留一个哈希桶。 (indexed bucket (tree list)) 。 还有一个树结构,其中包含指向Next node in hashed list of names.的下一个指针Next node in hashed list of names. struct tree{ . . struct tree *next; // Next node in hashed list of names int modid; // The module containing this node } 我打印了MIB, SNMP-FRAMEWORK-MIB:snmpFrameworkMIB(10)type = 24 Next- > ‘ipSystemStatsHCOctetGroup ipSystemStatsOutFragReqds […]