Subagent agentx expertise needed

"mn kh" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.