Dear all,
I have some question about the retrieve function of the subagent
(FindVarMethod).
Following is a fragment of my code:
u_char *var_jAgentX(struct variable *vp, oid *name, size_t *length, int
exact, size_t *var_len,
WriteMethod **write_method)
{
...
snprint_objid(NewName, NewNameLen, name, *length);
Msglog(__FUNCTION__, 3, "Subagent returned: %s = %d", NewName,
val);
return (u_char *)&val;
}
when i return from the function, the value "val" is assigned to the oid
"name"
in fact following is the content of my log file:
09:27:04.239 (21336) 3 var_jAgentX -> Subagent returned:
enterprises.jinny.generic.jpm.license.0 = 1000
My question is: what will be the values of "name" and "vp->name" in the next
call of var_jAgentX ??
Thank You,
Regards
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users