I have a subagent that registers to - and is linked with - 5.2.1.2 libraries.
When I attempt a set of 2 or more entries in the table that I have, I get the message: netsnmp_assert requests->agent_req_info == asp->reqinfo failed snmp_agent.c:2345 netsnmp_check_requests_status() on stderr. I found a similar discussion on this here: http://sourceforge.net/mailarchive/message.php?msg_id=11115384 However, there is no resolution. I dug into the code a little and I found what looks to be a small hack to get around this get_set_cache(): /* * - one don't match case: agentx subagents. prev asp & reqinfo * freed, request reqinfo ptrs not cleared. */ netsnmp_request_info *tmp = asp->requests; DEBUGMSGTL(("verbose:asp", " reqinfo %p doesn't match cached reqinfo %p\n", asp->reqinfo, asp->requests->agent_req_info)); for(; tmp; tmp = tmp->next) tmp->agent_req_info = asp->reqinfo; However, even though I believe that I go through this code, I still get the error message later in netsnmp_check_requests_status(). This is perhaps, why I don't get the error with a single variable set, but I do get it with a 2 or more variable set. The unfortunate part about all of this is that one of my client's motivations is to use a stock net-snmp agent/lib (hence my work is all done as a subagent) - so I don't 'spose that this is already fixed? Or that there is an easy way to work around this error message (a way that doesn't include sending to /dev/null :) The error message itself is a bit spurious since the sets appear to work just fine. Does anyone have any ideas or updates on this? Thanks! -- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
