I am stumped - I ran  mib2c -c mib2c.iterate.conf -S cache=1
MIB_FILE::table_name

And got table_name.c/h with the expected container free/load routines.

The problem is the prototype and function declaration for the
snmp_inject_handler_before() is completely different between the generated
code and the library code

Library
        snmp_inject_handler_before(netsnmp_handler_registration *reginfo,
                                           netsnmp_mib_handler *handler,
                                           const char *before_what)

Generated code from init routine for the table

        snmp_inject_handler_before(netsnmp_handler_registration *reginfo,
                                           netsnmp_mib_handler *handler,
                                           int timeout,
                                           NetsnmpCacheLoad *load,
                                           NetsnmpCacheFree *free,
                                           OID table_oid,
                                           int oid_len, 
                                           const char * before_what)
Before_what == "table_iterator".

I search all the net-snmp code base and found nothing like the second
prototype.

I am running v5.2.3 net-snmp.

Any ideas?


Adam

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam
Bell
Sent: Friday, March 16, 2007 9:06 AM
To: Dave Shield
Cc: [email protected]
Subject: RE: Decrease execute times of get_first_data_point() when getBulk

Thanks

I did this last night and it worked fine - simple cut and paste.

Along a similar line, is there a mechanism to hook into the processing such
that I get a call to a handler before ALL get/set processing but after the
OIDs are parsed?  And then another call just before the response PDU is
going to be sent?

Adam 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Friday, March 16, 2007 5:51 AM
To: Adam Bell
Cc: [email protected]
Subject: Re: Decrease execute times of get_first_data_point() when getBulk

On 15/03/07, Adam Bell <[EMAIL PROTECTED]> wrote:
> Is there a way to turn on the caching with mib2c.iterate_access.conf?

Probably not.   The caching support was introduced completely
separately from the iterate_access config.

The best way forward is probably to merge the caching elements
into your iterate_access framework manually.   It's really just
the registration of the table that needs to be tweaked.
Plus adding the two 'load'/'free' routines, of course.

Dave

The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure. If
you have received this communication in error, please notify us immediately
by replying to this message and deleting it from your computer without
copying or disclosing it.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's
Techsay panel and you'll get the chance to share your opinions on IT &
business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

The information contained in this electronic mail transmission may be 
privileged and confidential, and therefore, protected from disclosure. If you 
have received this communication in error, please notify us immediately by 
replying to this message and deleting it from your computer without copying or 
disclosing it.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to