Re: massive feature/minimalist patch being checked in right now

2011-02-23 Thread Magnus Fromreide
On Wed, 2011-02-23 at 18:29 -0800, Wes Hardaker wrote: > > On Wed, 23 Feb 2011 22:36:20 +0100, Magnus Fromreide > > said: > > MF> 3 #define NETSNMP_FEATURE_REQUIRE_#DEFINE 1 > ... > MF> and I have to admit that this doesn't look like C to me... > > No... it looks like there must be som

Transient Data ?

2011-02-23 Thread sujata patra
I have just gone through the link http://www.net-snmp.org/wiki/index.php/Table_iterator " If you are concerned thatthe data you are iterating over will change or vanish between the time the iterator functions are called and the time the handler is called to process a request, but you don't w

Re: Constant polling of the interface stats in if-mib

2011-02-23 Thread Eivind Naess
Thank you for your response Wes! And sorry for not replying my findings. Yes, I did figure out that you needed to be logged in first to be able to submit. I did not expect to receive a blank page with nothing in it, even if I wasn't logged in. I did get my patch submitted. Hopefully somebody

Re: massive feature/minimalist patch being checked in right now

2011-02-23 Thread Wes Hardaker
> On Wed, 23 Feb 2011 22:36:20 +0100, Magnus Fromreide > said: MF> 3 #define NETSNMP_FEATURE_REQUIRE_#DEFINE 1 ... MF> and I have to admit that this doesn't look like C to me... No... it looks like there must be some issue with the script that generates the file. I suspect an issue wi

Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Wes Hardaker
> On Wed, 23 Feb 2011 23:31:11 +0100, Niels Baggesen > said: NB> On Wed, Feb 23, 2011 at 11:22:16PM +0100, Magnus Fromreide wrote: >> Chunk 4 looks marvelous. How did this ever compile? NB> I have no idea if this ever compiled :-) It is certainly some years NB> ago last time It was def

Re: Constant polling of the interface stats in if-mib

2011-02-23 Thread Robert Story
On Wed, 16 Feb 2011 10:44:59 -0800 (PST) Eivind wrote: EN> Sorry for sending this email again, but I cannot seem to be able to access the EN> sourceforge page to submit my patch. Does you or anyone else have problem EN> accessing the patch tracker and click "Add New"? I get a HTTP 500 error res

Re: [PATCH] AGENT: fix no interface statistics available

2011-02-23 Thread Robert Story
On Tue, 08 Feb 2011 09:36:47 -0800 Wes wrote: WH> Actually, the patch didn't apply cleanly for some reason. So in the WH> process of creating a new one I changed it from sizeof(foo)-1 to WH> strlen(foo) which I think is the "true" way to do it. running strlen on a static string every time? blech.

Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
On Thu, Feb 24, 2011 at 12:01:32AM +0100, Magnus Fromreide wrote: > There is the third option as well: > > "%" NETSNMP_PRIz "u", LENGTH_something > > The drawback is that it is even longer but the advantage is that it is > correct on both 32 and 64-bit platforms, but then, so are the ot

Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Magnus Fromreide
On Wed, 2011-02-23 at 23:31 +0100, Niels Baggesen wrote: > On Wed, Feb 23, 2011 at 11:22:16PM +0100, Magnus Fromreide wrote: > > Chunk 4 looks marvelous. How did this ever compile? > > I have no idea if this ever compiled :-) It is certainly some years > ago last time :-) > > Chunk 5-12: Why pri

Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
On Wed, Feb 23, 2011 at 11:22:16PM +0100, Magnus Fromreide wrote: > Chunk 4 looks marvelous. How did this ever compile? I have no idea if this ever compiled :-) It is certainly some years ago last time > Chunk 5-12: Why print lengths as signed integers? Lazyness. Then you only have to change one

Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Magnus Fromreide
On Wed, 2011-02-23 at 22:38 +0100, Niels Baggesen wrote: > In my eternal quest for warnings I now hit snmpksm, which did not even > compile on my standard CentOS setups :-( > > I would like to solicit some input on the changes that I made to get it > to compile and quell warnings, so would some

Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
In my eternal quest for warnings I now hit snmpksm, which did not even compile on my standard CentOS setups :-( I would like to solicit some input on the changes that I made to get it to compile and quell warnings, so would some of you who has a Kerberos setup please look at the attached dif?

Re: massive feature/minimalist patch being checked in right now

2011-02-23 Thread Magnus Fromreide
On Tue, 2011-02-22 at 16:06 -0800, Wes Hardaker wrote: I get a couple of warnings from gcc (4.6.0 prerelease): ../../../clean/local/minimalist/feature-check --feature-global ../../../clean/include/net-snmp/feature-details.h ../../../clean/apps/snmpnetstat/inet.c inet.ft /usr/local/gcc-head/bin/

memory leak calling snmp_send()

2011-02-23 Thread Adam Mendlik
I've written a Windows service which consumes an inbound data stream and sends out SNMP traps using netsnmp.lib. During service initialization I call: snmp_sess_init(&session); session.version = SNMP_VERSION_1; init_snmp("snmpapp"); ... and set session.peername, session.community, and session.comm

Re: NetSNMP v5.2.1 fails to compile on HP-UX 11.31 IA64

2011-02-23 Thread Wes Hardaker
> On Wed, 23 Feb 2011 13:58:45 +0530, Logeswari Viswanath > said: LV> We encountered below error when compiling NetSNMP v5.2.1 on HP-UX LV> 11.31 IA system. 5.2.1 is an extremely old release that is no longer in our supported set of releases. Can you try a more recent one, like 5.6.1?

NetSNMP v5.2.1 fails to compile on HP-UX 11.31 IA64

2011-02-23 Thread Logeswari Viswanath
Hi all, We encountered below error when compiling NetSNMP v5.2.1 on HP-UX 11.31 IA system. == /bin/sh ../../libtool --mode=compile cc -I../../include -I. -I../../agent -I..