I have created my table with table_data.conf and I'm able to Get/Set
values from/to the table. However, I don't know how to store them into
my extern program.
I have a function which communicates my program with the agent. I'm
codifying the Get/Set function into the agent but I don't know what
index I have to use to store the value in the correct place:
case MODE_GET:
for (request = requests; request; request = request->next)
{
table_entry = (struct pppBsdcompTable_entry *)
netsnmp_tdata_extract_entry(request);
table_info = netsnmp_extract_table_info(request);
switch (table_info->colnum)
{
case COLUMN_PPPBSDCOMP:
if (!table_entry)
{
netsnmp_set_request_error(reqinfo, request,
SNMP_NOSUCHINSTANCE);
continue;
}
snmp_ppp.param = ppp_BSDCOMP;
/*********************** My param to be modified */
/*LOOK HERE*/ result = mc_GET_PPP_sm(&snmp_ppp);
/*********************** My function which communicates the agent with
my program to get a value */
if (result == result_OK)
{
snmp_set_var_typed_integer(request->requestvb, ASN_INTEGER,
snmp_ppp.bsdcomp[HERE?]); /*********************** My problem!!! What
index do I have to use to store the correct value?*/
}
Thanks!!
Marc Arazo
-------------------------------------------------------------------------
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