Re: NetSNMP 5.0.3.1 Questions

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-14-2006
Robert Story
 
Posts: n/a
Default Re: NetSNMP 5.0.3.1 Questions

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0