This is a discussion on Re: NetSNMP 5.0.3.1 Questions within the SNMP Coders forums, part of the Networking and Network Related category; On Mon, 12 Jun 2006 09:36:58 -0700 Wes wrote: WH> Hao> My question is how can ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Mon, 12 Jun 2006 09:36:58 -0700 Wes wrote:
WH> Hao> My question is how can I get rid of the 6 (mac address len) so my WH> Hao> index is simply the mac address itself? WH> WH> If the MIB definition for that object is *exactly* 6 octets in length, WH> then it's ok to get rid of it. However, if it's a variable length at WH> all you need to keep it there. To answer the technical side, if it is defined as a fixed length string, then you need to change the type in the index registration (for MFD code, in *_interface.c). Change the type to ASN_PRIV_IMPLIED_OCTET_STR. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |