Re: Strange error in test program...

This is a discussion on Re: Strange error in test program... within the SNMP Coders forums, part of the Networking and Network Related category; On 08/04/2008, Kris van Rens <krisvanrens.list@gmail.com> wrote: > Yes, I thought so, but ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008
Dave Shield
 
Posts: n/a
Default Re: Strange error in test program...

On 08/04/2008, Kris van Rens <krisvanrens.list@gmail.com> wrote:
> Yes, I thought so, but all attempts were without result. Here's what I
> thought I should do:
>
> ---
> // Update OID
> memmove(if_oid, resp->variables->name, resp->variables->name_length);


resp->variables->name_length*sizeof(oid)

> if_oid_len = resp->variables->name_length;


Remember that 'name_length' holds the *number* of subidentifiers,
not the size (in bytes) of the OID.



> I take it that the response PDU contains the oid with which I should
> update the 'old' one?


Yes - that's correct.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
_______________________________________________
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
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

vB 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 10:56 AM.


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