Greetings all, Another question from the land of the 5.4.2.1 based embedded agent.
We are trying to provide a consistent response if a manager attempts to send too many sub-requests within a single request. We have finite resources and so at some point a malloc will fail and depending where it does, the net-snmp engine will either time out or send an error response. As an 'easy' fix, we were proposing to a add a check so that if the number of sub requests exceeds a pre-determined figure, return a SNMP_ERR_RESOURCEUNAVAILABLE response. Does this sound sensible, if so, where's the best place to implement it? I'm guessing we could modify snmp_pdu_parse() to check the count as it runs through the varbind list. Any thoughts would be welcome. Regards, Adam. ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
