On Fri, 15 Jun 2007 10:36:59 +0100 Dave wrote:
DS> On 14/06/07, Need Help <[EMAIL PROTECTED]> wrote:
DS> >            for(req=requests; req; req = requests->next)
DS> 
DS> If you've got more than two varbind in the same request,
DS> that will go into an infinite loop.

Whoops! Good catch..

DS> Though I'm not convinced that you should be setting the same
DS> exception on *all* the varbinds in the request.  There's no
DS> guarantee that they all specify the same index, so it's perfectly
DS> conceivable that some of these are valid, and others aren't.
DS>     I would normally expect to consider each 'req' individually.
DS> 
DS> But maybe the MfD framework handles this differently.

Exactly. Request for the same index are grouped together before being
processes, so the meaning of requests is changed from 'all received requests'
to 'all requests for this row'. Setting the error on all the varbinds in the
list is correct.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to