RE: Help porting net-snmp to an embedded platform
Hi Robert, thank you for your answer. In the meanwhile my goal has been refocused. I explained to my supervisor that removing v3 doesn't simplify my work but conversely adds more complexity while removing functionality from our device, so we're keeping the v3. So I relaunched the configure script with the appropriate flags and I'm re-importing the source on Eclipse file by file. At the moment I'm not having specific trouble and I'm trying to leave the source code as original as possible. I'll write again shall I find myself stuck somewhere. In the meantime, thanks again MF -Original Message- From: NetSNMP Mailbox [mailto:net-snmp-m...@freesnmp.com] On Behalf Of Robert Story Sent: lunedì 25 aprile 2016 19:41 To: Moreno Floris Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Help porting net-snmp to an embedded platform On Wed, 13 Apr 2016 08:53:51 + Moreno wrote: MF> first of all I'd like to make sure I'm writing in the correct MF> mailing list. The fact is I'm not developing an external application MF> nor am I improving net-snmp code in any way. You're in the right place. MF> At this stage, everything works. So now comes the fiddly part. MF> I have to simplify the code removing all the v3 stuff, including MF> openssl and so on. Then I'll have to replace all the functions that MF> differ from our architecture but that's still pretty far away now. MF> MF> So my first question is: is removing all the v3 code feasible? MF> Where do I start? Do you actually need to remove it? You can set some defines in the header and it won't be compiled in. MF> My second question is: what does lcd_time.c do? I went ahead and MF> removed some of the v3 code but in this file the separation between MF> the versions seems foggy and I'm not sure I can dispose of lcd_time MF> that easily. I took a quick look, and it all looks like stuff related to engine time, so it should be safe to exclude. Again, though, I'd use defines instead of deleting the code. Robert -- 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
Re: Help porting net-snmp to an embedded platform
On Wed, 13 Apr 2016 08:53:51 + Moreno wrote: MF> first of all I'd like to make sure I'm writing in the correct MF> mailing list. The fact is I'm not developing an external MF> application nor am I improving net-snmp code in any way. You're in the right place. MF> At this stage, everything works. So now comes the fiddly part. MF> I have to simplify the code removing all the v3 stuff, MF> including openssl and so on. Then I'll have to replace all the MF> functions that differ from our architecture but that's still MF> pretty far away now. MF> MF> So my first question is: is removing all the v3 code feasible? MF> Where do I start? Do you actually need to remove it? You can set some defines in the header and it won't be compiled in. MF> My second question is: what does lcd_time.c do? I went ahead MF> and removed some of the v3 code but in this file the separation MF> between the versions seems foggy and I'm not sure I can dispose MF> of lcd_time that easily. I took a quick look, and it all looks like stuff related to engine time, so it should be safe to exclude. Again, though, I'd use defines instead of deleting the code. Robert -- 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
Help porting net-snmp to an embedded platform
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