Re: rfc: short form unsigned types

2010-03-12 Thread Bart Van Assche
On Sat, Mar 13, 2010 at 2:26 AM, Wes Hardaker < harda...@users.sourceforge.net> wrote: > > On Wed, 10 Mar 2010 13:23:09 -0500, Robert Story < > rst...@freesnmp.com> said: > > RS> Can someone remind me what the consensus is on the short form for > unsigned > RS> types? There seems to be a bunch

Re: Memory leak in snmp_agent.c

2010-03-12 Thread lanas
Le Vendredi, 12 Mars 2010 17:38:37 -0800, Wes Hardaker a écrit : > You're right it's not. Generally there are a number of places in the > code (many many actually) where single-instance calls to memory > allocation are taken and never cleaned up like they should be at > shut-down time because we

Re: com2sec[6]

2010-03-12 Thread Wes Hardaker
> On Tue, 2 Mar 2010 10:37:25 -0500, Robert Story > said: [re: IP address lookups of com2sec returning both v4 and v6 addrs] MF> If not I would like to know what action to take: MF> MF> 1) Keep it as is MF> 2) Make both add all addresses MF> 3) Make both add only the first returned add

Re: Processing invalid messages

2010-03-12 Thread Wes Hardaker
> On Fri, 05 Mar 2010 16:44:13 +0100, Jan Safranek > said: JS> IMHO such malformed packets should be silently discarded. I'd agree. JS> Would you mind if I add checks to appropriate asn_parse_xxx? *If* that's the right place to do it for a given problem, I'd agree. JS> Or is it up to

Re: rfc: changing snmpwalk default starting point

2010-03-12 Thread Wes Hardaker
> On Tue, 09 Mar 2010 20:00:00 +0100, Magnus Fromreide > said: >> a) start at .1 >> pros: will show all available objects >> cons: will show all available objects MF> I think I prefer a slight variation on this one if it is chosen: MF> start at . as opposed to .1. I'm not sure you c

Re: Memory leak in snmp_agent.c

2010-03-12 Thread Wes Hardaker
> On Sat, 6 Mar 2010 15:18:32 -0500, "Szudy Brett-CBS035" > said: SB> I have version 5.5 of netsnmp. I am looking at snmp_agent.c, function SB> init_master_agent and see a memory leak here. strdup mallocs and SB> duplicates the string into buf, but then buf is never released. It is a

Re: SF.net SVN: net-snmp:[18166] branches/V5-5-patches/include/net-snmp/library /system.h

2010-03-12 Thread Wes Hardaker
> On Fri, 19 Feb 2010 19:44:31 +0100, Bart Van Assche > said: BVA> It would make several Net-SNMP maintainers happy if support for BVA> MSVC 6 could be dropped. It'd make other Net-SNMP maintainers happy if support for MSCV could be dropped. Ha ha. -- Wes Hardaker Please mail all rep

Re: rfc: short form unsigned types

2010-03-12 Thread Wes Hardaker
> On Wed, 10 Mar 2010 13:23:09 -0500, Robert Story > said: RS> Can someone remind me what the consensus is on the short form for unsigned RS> types? There seems to be a bunch of type changing going on (which is bad), RS> apparently to help windows builds (which is good, I suppose). But i

Re: RFC: default snmperrlog change

2010-03-12 Thread Dave Shield
On 12 March 2010 20:47, Robert Story wrote: > I'd like to see what folks think of changing the behavior of logging when no > log destination is enabled. > > The stderr log is enabled if a message is logged before any log handlers are > enabled: > The problem is, it is not disabled if a log handle

RFC: default snmperrlog change

2010-03-12 Thread Robert Story
I'd like to see what folks think of changing the behavior of logging when no log destination is enabled. The stderr log is enabled if a message is logged before any log handlers are enabled: $ snmptranslate -Dget_mib_directory .1 No log handling enabled - turning on stderr logging registered de

Re: snmpd: not found

2010-03-12 Thread Sylvain Dery
I did run make install, and copied everything but the many .h files (I had to remove the .h file since the target is limited in disk spave). Here is the script I am using to run the install command: MAKELEVEL=3 GATEWAY_COMPILATION_PLATFORM=arm MFLAGS=-w MAKEFLAGS=w LD_LIBRARY_PATH=$LD_LIBRARY_PA

Re: snmpd: not found

2010-03-12 Thread Magnus Fromreide
On Fri, Mar 12, 2010 at 09:24:27AM -0800, Sylvain Dery wrote: > Hi, > > I'm compiling net-snmp for an arm-linux embedded system.  However, when I try > to run the snmp daemon on the embedded system, I get: > > /usr/local/sbin # ./snmpd > -sh: ./snmpd: not found > > But it is there!: > /usr/loca

Re: SF.net SVN: net-snmp:[18258] trunk/net-snmp/agent/mibgroup/etherlike-mib/ dot3StatsTable

2010-03-12 Thread Bart Van Assche
On Fri, Mar 12, 2010 at 12:44 PM, Dave Shield wrote: > On 11 March 2010 17:13, Bart Van Assche wrote: > > >> Log Message: > >> --- > >> CHANGES: snmpd: PATCH: 2967400: Retrieve error counters for the > >> EtherLike-MIB > >> Patch supplied by Josef Moellers. > > > > After updating I get th

snmpd: not found

2010-03-12 Thread Sylvain Dery
Hi, I'm compiling net-snmp for an arm-linux embedded system.  However, when I try to run the snmp daemon on the embedded system, I get: /usr/local/sbin # ./snmpd -sh: ./snmpd: not found But it is there!: /usr/local/sbin # ls -la ./snmpd -rwxr-xr-x 1 root    root   32859  Mar 10  14:40  2010

Re: hrStorage looses track of remounted file system (bug #1689551)

2010-03-12 Thread Jan Safranek
On 03/05/2010 08:34 PM, Leonardo Chiquitto wrote: > On Tue, Mar 2, 2010 at 12:40 PM, Robert Story wrote: >> On Mon, 11 Jan 2010 12:29:56 -0200 Leonardo wrote: >> LC> Dave, I'm interested in using a part of your work on the new filesystem >> LC> MIB to fix the problem described in this bug. To av

Re: SF.net SVN: net-snmp:[18258] trunk/net-snmp/agent/mibgroup/etherlike-mib/ dot3StatsTable

2010-03-12 Thread Dave Shield
On 11 March 2010 17:13, Bart Van Assche wrote: >> Log Message: >> --- >> CHANGES: snmpd: PATCH: 2967400: Retrieve error counters for the >> EtherLike-MIB >> Patch supplied by Josef Moellers. > After updating I get the following error message on Linux when compiling the > trunk: > > eth

Re: Meaning of #defines

2010-03-12 Thread Dave Shield
On 12 March 2010 08:51, Manjit wrote: > i want to know about these Macro used in smpd code: The Net-SNMP suite (in common with many other software packages) is designed to be used with a wide range of operating systems. These can differ in the precise set of library calls that are available. Hen

Meaning of #defines

2010-03-12 Thread Manjit
Hi All, I am using snmp as a thread for my application. For this purpose i want to know about these Macro used in smpd code: 1. #if HAVE_GETPID in snmpd.c 2. #if HAVE_SETGID 3. #ifdef HAVE_KVM_OPENFILES in agent/auto_nlist.c 4. NET_SNMP_CAN_USE_NLIST in kernel.c What is the purpose for above ? If