Hello,

first of all I'd like to make sure I'm writing in the correct mailing list. The 
fact is I'm not developing an external application nor am I improving net-snmp 
code in any way.

I've been asked by my company to implement snmp in our devices and using 
net-snmp seemed the easiest thing to do.

I'm obviously not asking you to do my job for me but I'd really appreciate some 
input just to know if the path I chose makes any sense. Also every now and then 
I'll probably need some clarification on what do some parts of the code do.

At the moment we only need the snmp client and with v2.c only. Our proprietary 
IDE is based on Eclipse and our software layer uses unix sockets, so it seemed 
logical to try to compile net-snmp on linux and start from there.

So what I did is:
        - download net-snmp 5.7.3 source code on a Lubuntu 15.10 32bit 
virtualbox vm
        - run the configure script and make (without installing, only make)
        - create an empty Eclipse project and add snmp_client.c
        - import source code and header files into the project until successful 
compilation changing all the paths from absolute to relative (there is no 
net-snmp in the system!!)
        - create a main() function with the code from the "Writing a simple 
application" tutorial

At this stage, everything works. So now comes the fiddly part. I have to 
simplify the code removing all the v3 stuff, including openssl and so on. Then 
I'll have to replace all the functions that differ from our architecture but 
that's still pretty far away now.

So my first question is: is removing all the v3 code feasible? Where do I start?

My second question is: what does lcd_time.c do? I went ahead and removed some 
of the v3 code but in this file the separation between the versions seems foggy 
and I'm not sure I can dispose of lcd_time that easily.

I'm basically fumbling at this point.

Thank you very much for your help

MF
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to