I am having a doubt in data type declaration.

If a type of oid is ASN_UNSIGNED in ASN.1 , what type of variable (to
hold the value of the oid) should I declare in the corresponding C
file?

What I have declared was 

u_long position;

This is the variable going to hold the value of oid of type
ASN_UNSIGNED. Is this is correct or I have to declare it as "long"?

Thanks

On 7/1/05, aakansha rajvi <[EMAIL PROTECTED]> wrote:
> While executing SNMP-SET, (ie., saving from our application does snmp
> set for an array of oids)
> the save failed and I captured the packets. The decoded message of the
> snmp-set is
> showing
> 
> I am just sending a part of decoded message.
> 
> Community : private
> Command : Get Response
> Request ID: 19
> Error Status: 3(The value given has the wrong type or length.)
> Error Index: 6
> 
> What does this error index means?
> I am unable to fix this.. Could anyone pls help me on this?
> 
> Thanks
> 
> 
> On 6/28/05, Dave Shield <[EMAIL PROTECTED]> wrote:
> > On Tue, 2005-06-28 at 09:57, aakansha rajvi wrote:
> > > Actually I executed like "snmpd -D" while starting the agent.
> > >
> > > But I got the lot of logs as you said.. Can you explain with an
> > > example if you dont mind?
> >
> > Sure - try:
> >
> >         snmpd -f -Le -Dparse_mibs
> >
> > That gives:
> >
> > read_config: reading premib configuration tokens
> > read_config: config path
> > used:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/dts/.snmp:/var/net-snmp
> > read_config: Reading configuration /usr/local/etc/snmp/snmpd.conf
> > read_config: /usr/local/etc/snmp/snmpd.conf:1 examining: rocommunity xxx
> > read_config: /usr/local/etc/snmp/snmpd.conf:2 examining: rwcommunity yyy
> >    <etc, etc, etc>
> >
> > Dave
> >
> >
>


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to