net-snmp 5.2.3.pre2 available for testing

2006-06-16 Thread Thomas Anders
We've published Net-SNMP version 5.2.3.pre2, the second pre-release in the cycle for 5.2.3, the upcoming maintenance release in the 5.2.x branch. Available from: http://www.net-snmp.org/download Most significant changes since 5.2.3.pre1: - fix Mac OS X build error for snmpnetstat - check

Re: asn1.c/asn_parse_string() null-termination behaviour

2006-06-16 Thread David T. Perkins
HI, Just FYI - the value for the community string field is binary. Regards, /david t. perkins On Fri, 16 Jun 2006, Gustaf Gunnarsson wrote: > I didn't think about that. > > Specifically I am only parsing (and using) the community string of a > snmp-trap but it's important to me that things are

Re: asn1.c/asn_parse_string() null-termination behaviour

2006-06-16 Thread Gustaf Gunnarsson
I didn't think about that. Specifically I am only parsing (and using) the community string of a snmp-trap but it's important to me that things are fail-safe (within reason). I've made a wrapper function now ensuring any successful return will contain a null-terminated printable string. Thanks

Re: asn1.c/asn_parse_string() null-termination behaviour

2006-06-16 Thread David T. Perkins
HI, "Fixing" by putting a "0" on the end, and then calling printf is not a good approach. This is because the value of OCTET STIRNGs are binary, the the result when just doing a printf may not result is a usable output. Even when the value of the OCTET STRING is suppose to be printable, the SNMP a

Re: asn1.c/asn_parse_string() null-termination behaviour

2006-06-16 Thread Gustaf Gunnarsson
Robert Story wrote: > On Thu, 15 Jun 2006 12:41:36 +0200 Gustaf wrote: > GG> The problem I am having is that the asn_parse_string() function > GG> null-terminates the string it parses if the size of the recieving char* > GG> is large enough to contain such terminator. > GG> > GG> I think this be

Re: snmp_api.c/snmp_pdu_parse() not initializing pointers

2006-06-16 Thread Gustaf Gunnarsson
Robert Story wrote: > On Thu, 15 Jun 2006 17:12:07 +0200 Gustaf wrote: > GG> If I was instead chosing to malloc() a netsnmp_pdu same would apply, > GG> only I would have to initialize *all* pointers inside the netsnmp_pdu in > GG> order to ensure that snmp_free_pdu() wount do any unexpected thing

Re: permission denied

2006-06-16 Thread Robert Story
On Thu, 15 Jun 2006 10:03:56 -0400 Richard wrote: RCT> Thank you very much for this information. After I sent the email RCT> yesterday, I googled it and found the selinux web site and read up on it. RCT> I checked the config file and sure enough it is set to enforcing, so I RCT> will work on tweaki

Re: asn1.c/asn_parse_string() null-termination behaviour

2006-06-16 Thread Robert Story
On Thu, 15 Jun 2006 12:41:36 +0200 Gustaf wrote: GG> The problem I am having is that the asn_parse_string() function GG> null-terminates the string it parses if the size of the recieving char* GG> is large enough to contain such terminator. GG> GG> I think this behaivour is wrong and that the re

Re: snmp_api.c/snmp_pdu_parse() not initializing pointers

2006-06-16 Thread Robert Story
On Thu, 15 Jun 2006 17:12:07 +0200 Gustaf wrote: GG> If I was instead chosing to malloc() a netsnmp_pdu same would apply, GG> only I would have to initialize *all* pointers inside the netsnmp_pdu in GG> order to ensure that snmp_free_pdu() wount do any unexpected things. GG> GG> This is quite pr

Re: 5.3.1.rc1 build test status

2006-06-16 Thread Dave Shield
Thomas Anders wrote: >In case you have full control over your FreeBSD test system: can you >please do a proper "make install" and then just start the agent as > > snmpd -f -Le -C -Dperl --rocommunity=foobar --perl='print "Hello\n";' >--quit localhost:8161 > >and report back? > [non-installed t

Re: 5.3.1.rc1 build test status

2006-06-16 Thread Dave Shield
Thomas Anders wrote: >Dave Shield wrote: > > >>FreeBSD 6.0: >> configure reports one warning, when testing for >> This can be fixed by moving "sys/conf.h" from the list at line 2630 of >> configure.in to the preceding list (line 2620) >> >> > >Is this also the case for 5.2.x (5.2.3.pre1)

question about mib2c

2006-06-16 Thread Dominique bastien
I need some clues about wahat happen, First on one PC I install 5.3.0.1 and compile the package, I ran mib2c on one table of my private MIB and obtain: the following files: xxx.c/.h xxx_data_access.c/.h xxx_data_get.c/.h xxx_data_set.c/.h xxx_enums.h xxx_interface.c/.h and two readme files: xxx-

Re: 5.3.1.rc1 build test status

2006-06-16 Thread Thomas Anders
Dave Shield wrote: > FreeBSD 6.0: > configure reports one warning, when testing for > This can be fixed by moving "sys/conf.h" from the list at line 2630 of > configure.in to the preceding list (line 2620) Is this also the case for 5.2.x (5.2.3.pre1)? If so, I'd like to see that change bei

Re: 5.3.1.rc1 build test status

2006-06-16 Thread Thomas Anders
Dave Shield wrote: > However the problem is something fairly fundamental. > If I tweak the test script to drop the 'hello.pl' script altogether, > so the snmpd.conf file just contains: > > perlInitFile /tmp/snmp-test-37-/snmp_perl.pl > perl print STDERR "registered_perl_agent_ok"; > > t

Re: snmpd is segfaulting when -DALL on Solaris9

2006-06-16 Thread Robert Story
On Thu, 15 Jun 2006 11:24:04 +0200 Thomas wrote: TA> > um, Thomas... in the rc series we should be voting on major changes TA> > like that. TA> TA> Sure, I know. If I'd be after sneaking it in silently, I wouldn't have TA> made noise on the list, would I? ;-) TA> TA> I think we've agreed that c

querry

2006-06-16 Thread Truptisankar Nayak
Dear sir/madamI am a learner of SNMPso please refer me , how to compile SNMP program under linuxregardsTapu New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.___ Net-snmp-coders mailing list [email protected]

Re: 5.3.1.rc1 build test status

2006-06-16 Thread Dave Shield
Thomas Anders wrote: >FWIW, the standalone example from the perlembed manpage: > >http://perl.com/doc/manual/html/pod/perlembed.html#Adding_a_Perl_interpreter_to_you > >builds and runs just fine, so it's not that [embedded] perl is broken in >general on FreeBSD. > However the problem is something

Re: 5.3.1.rc1 build test status

2006-06-16 Thread Thomas Anders
Thomas Anders wrote: >> I'm not sure what the underlying problem is for test #37 on FreeBSD. The >> agent simply logs "embedded perl support failed to initialise". > > I'm seeing the exact same problem on SF CF host x86-freebsd1 (FreeBSD > 5.4). Further investigation revealed that perl_parse() in

Re: 5.3.1.rc1 build test status

2006-06-16 Thread Thomas Anders
Dave Shield wrote: > Upon investigating test #44, creating and invoking the 'hello.pl' script > relies on the environment variable SNMP_PERLPROG, but this is not set. > I'm not sure where it's meant to be picked up from, but setting it manually > within the test script fixes the problem on both Fre

Re: 5.3.1.rc1 build test status

2006-06-16 Thread Dave Shield
Thomas Anders wrote: > Dave Shield wrote: > >> What configure invocation have you been using? > > > "dist/nsb -x" (from MAIN), Given that I was working with the rc tarball, I didn't have this :-( > ./configure --with-defaults --disable-developer --with-mib-modules="smux > examples examples/examp

RE: snmpget V2 looping subagent

2006-06-16 Thread Shinar, Gil
Thanks for the remark but I'm not using pointers in the shared memory. There is only one global pointer to the shared memory but inside the shared memory, all components are ints and static arrays. -Original Message- From: Eirik Nordbrøden [mailto:[EMAIL PROTECTED] Sent: Thursday, June