Re: Implementing tables with fewer source files

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Fri, 29 Aug 2008 13:47:25 -0600, eggyknap <[email protected]> said:

e> I'm writing an agent, and found that mib2c using the mib for dummies
e> config makes about 12 source files for each table I implement. I
e> modify a few lines of the autogenerated code, and add it to my
e> makefile. I'd really like to make my agent somewhat smaller (i.e. less
e> code) -- can I do that? I realize it might not be particularly simple,
e> and I can live with having to do some reading, but I'd like pointers.
e> Thanks in advance.

You might check out some of the other output styles of mib2c.  The
iterator mechanisms, for instance, probably produce the smallest amount
of code.  The MFD stuff produces a lot of extra comments and
compartmentalized functions for you to fill in, which makes the code
"look" larger.
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
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.