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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|