(See attached file: lldpPortConfigTable.cache.c)

Hi -

I had to make a couple of changes to the code generated by the mib2c when I
added the cache option (because the generated methods didn't exist (or at
least the compiler didn't find them and neither did I)).  There didn't seem
to be a lot of choices as to what change to make, but just in case I
screwed something up, here are my changes.  I included the file generated
by mib2c so you can see the code in context.

1) the mib2c generated

netsnmp_inject_handler_before(reg, netsnmp_cache_handler_GET(cache),
                                  TABLE_DATA_NAME))

I changed it to

netsnmp_inject_handler_before(reg, netsnmp_cache_handler_get(cache), TABLE_
TDATA_NAME); (the TDATA change based on your note).

2) the mib2c generated

while ((thisRow = netsnmp_tdata_first_row(table))) {

I changed it to
while ((thisRow = netsnmp_tdata_row_first(table))) {

Hope this helps.  Thanks.

Kathy McLeod
Dept S82  CCB - SNMP
IBM Rochester, MN
(507) 253-4803

Attachment: lldpPortConfigTable.cache.c
Description: Binary data

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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

Reply via email to