2010/1/15 :
> case MODE_SET_ACTION:
> strcpy(set_val,(void*)requests->requestvb->val.string);
You need to use the *length* of the value as well.
(requests->requestvb->val_len)
You cannot assume that string values are null-terminated.
Try
strncpy ( set_val, requests->requestvb->v
> From: chi.g...@l-3com.com [mailto:chi.g...@l-3com.com]
> Sent: Thursday, January 14, 2010 4:36 PM
> Mike, Thank you for the quick response.
> I tried different string value on both browsers, they have the same
> problem.
> net-snmp's snmpset -V 2C (snmp v2) have the same problem too.
Th
: net-snmp agent error when set from a MIB browser
> From: chi.g...@l-3com.com [mailto:chi.g...@l-3com.com]
> Sent: Thursday, January 14, 2010 4:00 PM
> I wrote a agent in net-snmp and use commercial MIB browser (iReasoning
> and MG-soft) to talk to it.
>
> I try to set values to
> From: chi.g...@l-3com.com [mailto:chi.g...@l-3com.com]
> Sent: Thursday, January 14, 2010 4:00 PM
> I wrote a agent in net-snmp and use commercial MIB browser (iReasoning
> and MG-soft) to talk to it.
>
> I try to set values to different OID. When I use snmpset of net-snmp,
> it works fine, b