From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of wqs
Sent: 28. november 2007 04:26
To: net-snmp-coders
Subject: snmpset problem
I have compiled my module into the agent,and run snmpset,first time I set a
long string:"",it's ok;next time,I set a shorter string:
I have compiled my module into the agent,and run snmpset,first time I set a
long string:"",it's ok;next time,I set a shorter string:"bb",but the value
in the mib became "bbaaa",how could that happen?
my code related:
case MODE_SET_ACTION:
if ( sizeof(def_nodeType) < strlen(request
I am having a problem with snmpset:
this is what I coded to add an integer to snmp set pdu:
int action = 2;
char type= 'i';
string action_str((char *)&action, sizeof(action));
pdu = snmp_pdu_create(SNMP_MSG_SET);
int rc = snmp_add_var(pdu, myoid, sizeof(myoid)/sizeof(oid), type,
action_str.da