MFD concern and a simple problem (in code generation)

2007-01-17 Thread mawali
I have been able to use MFD to implement a mib table without any problem. I have prior SNMP knowledge but have only worked on enemate (on HP-UX ofcource). I think I may not have understood one thing in the way mib2c is generating the stubs so my first question: 1) Generated code: In function x

Re: rfc: library layering

2007-01-17 Thread Magnus Fromreide
On ons, 2007-01-17 at 09:53 -0500, Robert Story wrote: +(void *)'help'); Interesting char constant there, I suppose you did mean (void*)"help"? -void -netsnmp_init_helpers(void) +int +_netsnmp_init_helpers_callback( int majorID, int minorID, is there any reason for _net

How to reduce the footprint of net-snmp?

2007-01-17 Thread Kapil Sharma
I am looking to using net-snmp in an embedded device, and the limits available to me, though not extremely rigid, are fairly tight. Typically, I would be looking to have all snmp related stuff within 500kb. Therefore, I am working with 5.2.1 instead of 5.4 because it is substantially smaller, a

Re: Bandwidth Monitoring

2007-01-17 Thread David T. Perkins
HI, The measurements that Dave provided is very rough. A better estimate also uses the number of packets and also uses the the type of technology. The RMON in RFC 2819 has a formula for utilization for 802.3 networks. Regards, /david t. perkins On Wed, 17 Jan 2007, Peeyush Bishnoi wrote: > Tha

RowStatus type mib2c template problem

2007-01-17 Thread Emi . Yanagi
Dear net-snmp-coders, I found a problem in RowStatus type template generated by mib2c.mfd.conf or mib2c. container.conf. The current template will cause segmentation fault when getting a not yet created entry after _mfd_xxx_get_value and _mfd_xxx_get_column. It seems function _mfd_dot1qVlanStati

Re: rfc: library layering

2007-01-17 Thread Robert Story
On Wed, 17 Jan 2007 06:17:54 +0100 Thomas wrote: TA> > Yeah. But, since Thomas wants to see what would be required to hack it, here TA> > is patch that would sever the explicit dependency between the agent and TA> > helpers libraries. TA> TA> Yep and you have my full understanding for not attachi

Table iterator problem

2007-01-17 Thread suresh khemka
Hi All, i am facing an issue regarding implementation of tables using mib2c.iterate.conf. i have created code using this config file. I have added my function to get data from kernel into a link list. I need to set up the my_loop_context and my_data_context to handle rows. The rows corresponds to

Re: about compiler statically

2007-01-17 Thread Dave Shield
On 17/01/07, Clement Hsu <[EMAIL PROTECTED]> wrote: > Thanks. But if the cc.c and cc.h are not mibmodule, in this situation, > does the command : --with-mib-modules=sss,cc still work? Yes. "--with-mib-module" just configures a list of code files to compile into the agent. It doesn't actually

Re: about compiler statically

2007-01-17 Thread Clement Hsu
Dear Dave: Thanks. But if the cc.c and cc.h are not mibmodule, in this situation, does the command : --with-mib-modules=sss,cc still work? Thank you Best Regards, Clement Hsu 2007/1/17, Dave Shield <[EMAIL PROTECTED]>: On 17/01/07, Clement Hsu <[EMAIL PROTECTED]> wrote: > However, the prob

Re: Bandwidth Monitoring

2007-01-17 Thread Peeyush Bishnoi
Thanx Dave for your suggestions... --- Peeyush Bishnoi On Sun, 2007-01-14 at 21:46 +, Dave Shield wrote: > On 08/01/07, Peeyush Bishnoi <[EMAIL PROTECTED]> wrote: > > Can any tell me how to calculate the bandwidth of a network link > > using SNMP in c/c++ . > > Retrieve the value of 'ifInO

Re: about compiler statically

2007-01-17 Thread Dave Shield
On 17/01/07, Clement Hsu <[EMAIL PROTECTED]> wrote: > However, the problem is how to compiler these file statically. > I mean that if I have a mib module called sss, and its main files with > generating by mib2c is sss.c and sss.h. and I also write a program > called cc.c and cc.h the sss.c must i

Re: question on timeticks and long into char stuffing

2007-01-17 Thread Dave Shield
On 16/01/07, Alef Veld <[EMAIL PROTECTED]> wrote: > I now use this code to get the timeticks, but i only gets 4 bytes (char) > The 8 extra allocated bytes were a desperate attempt to get more digits > but alas, that does not work. I still only get 4 digits. You will only *ever* get 4 bytes. As we'