Hello,
I have a doubt regarding the below piece of code in snmp_agent.c file. I am
using net-snmp5.0.9.
if (access_ret == VACM_NOSUCHCONTEXT) {
/*
* rfc2573 section 3.2, step 5 says that we increment the
* counter but don't return a response of any kind
*/
/*
* we currently don't support unavailable contexts, as
* there is no reason to that I currently know of
*/
snmp_increment_statistic(STAT_SNMPUNKNOWNCONTEXTS);
/*
* drop the request
*/
netsnmp_remove_and_free_agent_snmp_session(asp);
return 0;
1. In the above code, I could see a line "we currently dont support
unavailable contexts". Incase SNMPv1/V2c requests, the VACMContextPrefix is
same as the community name? If not, what this context variables will
contain? Also, if we dont support unavilablecontexts, this means possibility
of NOSUCHCONTEXT ERRORS is very rare to occur?
2. I believe this is an authorization error not an authentication erro. If
so, dropping the packet in the above code is correct? There is an erro code
in SNMP says NO_AUTORIZATION_ERROR if it fails. Which means does this code
requires a fix?
Thank You.
Regards,
Karthik
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders