Re: Trying to add SNMP section

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Mon, 02 Jun 2008 20:01:22 +0200

On mån, 2008-06-02 at 21:09 +0800, Adrian Chadd wrote:
> I'm trying to single-step through the SNMP MIB tree code to see why
> its not picking up on my OIDs.

Welcome to our twisted SNMP agent.

You also need to update the count of subentries in the containing mib
node...

                                    snmpAddNode(snmpCreateOid(LEN_SQ_NET, SQ_NET),
- LEN_SQ_NET, NULL, NULL, 3,
+ LEN_SQ_NET, NULL, NULL, 4,
                                        snmpAddNode(snmpCreateOid(LEN_SQ_NET + 1, SQ_NET, NET_IP_CACHE),

Additionally don't forget to remove the parantesis in the USE_DNSSERVERS case...

Regards
Henrik

Received on Mon Jun 02 2008 - 18:01:28 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 03 2008 - 12:00:02 MDT