Hello,
I have the following problem, I use the method
"snmp_set_var_typed_value" with a return a value as an ASN_COUNTER64, I
receive the following message: "No such name error"
If I change the return value by ASN_COUNTER everything working well.
I found in the Net-SNMP code the following lines in file snmp_agent.c
#ifndef NETSNMP_DISABLE_SNMPV1
...
/*
* Similarly we may need to "dumb down" v2 exception
* types to throw an error for a v1 query.
* See RFC2576 - section 4.1.2.3
*/
if ((asp->pdu->command != SNMP_MSG_SET) &&
(asp->pdu->version == SNMP_VERSION_1)) {
for (var_ptr = asp->pdu->variables, i = 1;
var_ptr != NULL; var_ptr = var_ptr->next_variable, i++)
{
switch (var_ptr->type) {
case SNMP_NOSUCHOBJECT:
case SNMP_NOSUCHINSTANCE:
case SNMP_ENDOFMIBVIEW:
case ASN_COUNTER64:
status = SNMP_ERR_NOSUCHNAME;
asp->status = SNMP_ERR_NOSUCHNAME;
asp->index = i;
break;
}
}
}
#endif /* snmpv1 support */
I have also found the following
http://marc.info/?l=net-snmp-patches&m=98761849912767&w=2
<http://marc.info/?l=net-snmp-patches&m=98761849912767&w=2> and the
information about this patch:
Patches item #417128, was updated on 2001-04-18 11:25
I have you any idea to solve my problem with the defined type:
ASN_COUNTER64
Thank's for your help
Pedro Lopez
____________________________
NAGRAVISION SA
Kudelski Group
____________________________
Tel. : +41 21 732 32 89
E-mail : pedro.lo...@nagra.com
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders