On Thu, 23 Jun 2005 10:09:23 +0100 Dave wrote:
DS> On Thu, 2005-06-23 at 07:38, aakansha rajvi wrote:
DS> Then you need to check the length of the incoming value, to
DS> see whether it will fit. Something like:
DS>
DS> if (requests->requestvb->val_len >= 10 ) {
DS> netsnmp_set_request_error(reqinfo, requests,
DS> SNMP_ERR_WRONGVALUE);
DS> return SNMP_ERR_NOERROR;
DS> }
Wouldn't that be SNMP_ERR_WRONGLENGTH?
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
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_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders