I just found out that there exists a micro "TABLE_DATA_NAME" in table 
initialization:

    netsnmp_tdata_register(reg, table_data, table_info);
    cache = netsnmp_cache_create(5,
                                 myTable_load,
                                 myTable_free, 
                                 myTable_oid,
                                 myTable_oid_len); 
    cache->magic = (void *)table_data;
    netsnmp_inject_handler_before(reg, 
                                  netsnmp_cache_handler_get(cache),
                                  TABLE_DATA_NAME);

Do I need to change this micro? I couldn't find its definition.

I tracked down the problem, and found that "myTable_load" function was never 
called.

Thanks
Xuan


> Date: Wed, 11 Nov 2009 22:38:01 +0000
> Subject: Re: Question about mib2c.create-dataset.conf
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> 2009/11/11 X Z <[email protected]>:
> > Your suggestion fixed the myTable_free errors. But I am unable to see the
> > table content from snmpwalk.
> 
> > Can you let me know if I did anything wrong in myTable_load function?
> 
> I can't spot anything obviously wrong.
> Have a look at the FAQ, for suggestions of things to check.
> 
> Dave
                                          
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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

Reply via email to