Re: problem

This is a discussion on Re: problem within the SNMP Users forums, part of the Networking and Network Related category; On 05/09/07, mohaoran@126.com <mohaoran@126.com> wrote: > The asn1.h file in net-...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-05-2007
Dave Shield
 
Posts: n/a
Default Re: problem

On 05/09/07, mohaoran@126.com <mohaoran@126.com> wrote:
> The asn1.h file in net-snmp-5.4 define:
> "#define ASN_OCTET_STR ((u_char)0x04)",


Yes - that's the enumeration value used to identify Octet String
values (as opposed to Integer, Ip Addresses, OIDs, etc).


> and I use mib2c to generate the code:
> "#define MACADDRESS 3


That's an enumeration value used to identify the third
column in this particular table (which happens to be a
MacAddress value).

Neither of these have any relevance to the length of the
string value.

> {MACADDRESS, ASN_OCTET_STR, RONLY, var_altai, 5, {2, 1, 1, 1, 3}},"
> but the length of MACADDRESS is 6,How can I set this problem?


Where is the problem?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
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 06:06 AM.


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