regarding SET requests

"Devvrat Tripathi" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
hi all

Suppose you have registered a handler for a particular OID will the
requests->requestvb contain the name and name_length of that OID. I
registered my handler for a particular OID and inside my handler i direct
the SET request somewhere else. for that i need to add a variable using
snmp_add_var. I do

snmp_add_var(pdu,requests->requestvb->name,requests->requestvb->name_length,type,(const
char *)mystring);

mystring is the NULL terminated version of requests->requestvb->val.string

Somehow the agent stops working after i do it. I am doing this in the
SET_RESERVE2 pass. What can be the reasons for it. I also tried
snmp_pdu_add_variable too and the same thing happens there also.

Regards

Devvrat

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.