Re: compiling net-snmp based sub-agent using C++ compiler(CC)

2011-01-24 Thread Magnus Fromreide
On Sun, 2011-01-23 at 22:47 -0800, sujata patra wrote: Hi, Is it possible to develop the sub-agent code using C++(CC) compiler? mib2c generated code is a .c extention. I like to rename it to cpp and likes to build using cpp compiler. Yes. /MF (who have such a sub-agent as well)

Re: compiling net-snmp based sub-agent using C++ compiler(CC)

2011-01-24 Thread sujata patra
Thanks /MF . I hope , I have to provide extern 'c' linkage for the net-snmp header file inclusion. From: Magnus Fromreide ma...@lysator.liu.se To: sujata patra sujata_patra2...@yahoo.com Cc: net-snmp-coders@lists.sourceforge.net Sent: Mon, January 24, 2011

Re: Send snmptrap

2011-01-24 Thread Wes Hardaker
LQ But, do I have to use the snmp library? And include the header files LQ into my project? Yes you would. -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net -- Special Offer-- Download

code generation is wrong for Counter64 type

2011-01-24 Thread sujata patra
I found mib2c generated code contains data type mismatch . Generated structure looks below /* Typical data structure for a row entry */ struct messageTable_entry { /* Index values */ long messageIndex; /* Column values */ U64 sentMsgCount; long errorMsgCount; long

snmp_shutdown hangs occasionally in recvfrom() (5.4) or select() (5.6)

2011-01-24 Thread Daniel Swarbrick
Hi all, This is my first post to the list. I've been playing around with the Net-SNMP API for a week or two, and have gone so far as writing a simple SNMP module for the open source SIP soft-switch, FreeSWITCH. My module is based loosely on the example given in the Net-SNMP wiki, about how to

Re: code generation is wrong for Counter64 type

2011-01-24 Thread Magnus Fromreide
Does this patch solve the problem for you? /MF Index: local/mib2c.table_data.conf === --- local/mib2c.table_data.conf (revision 19892) +++ local/mib2c.table_data.conf (working copy) @@ -347,12 +347,9 @@ continue;

does DEBUGMSGT(()) have any limits ?

2011-01-24 Thread Abraham Varricatt
I'm working with tables and have this debug comment in one of the code files, DEBUGMSGT((verbose:remotelogTable:remotelogTable_container_load inserted %d records\n, count)); From a manager, when I try to query the table, I keep encountering this error (on snmpd), # snmpd -f -Lo

Re: does DEBUGMSGT(()) have any limits ?

2011-01-24 Thread Abraham Varricatt
On Tue, Jan 25, 2011 at 12:18 PM, Abraham Varricatt abraham.varricatt+s...@googlemail.comabraham.varricatt%2bs...@googlemail.com wrote: I'm working with tables and have this debug comment in one of the code files, DEBUGMSGT((verbose:remotelogTable:remotelogTable_container_load inserted %d

Re: does DEBUGMSGT(()) have any limits ?

2011-01-24 Thread Magnus Fromreide
On Tue, 2011-01-25 at 12:18 +0530, Abraham Varricatt wrote: I'm working with tables and have this debug comment in one of the code files, DEBUGMSGT((verbose:remotelogTable:remotelogTable_container_load inserted %d records\n, count)); My guess is that you forgot a , as in

Re: does DEBUGMSGT(()) have any limits ?

2011-01-24 Thread Abraham Varricatt
My guess is that you forgot a , as in DEBUGMSGT((verbose:remotelogTable:remotelogTable_container_load, inserted %d records\n, count)); Thank you for the reply Magnus. Yes, I missed the ,. I noticed it after I re-read my sent mail. -Abraham V.