From owner-freebsd-current Tue May 28 15:17:04 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA08091 for current-outgoing; Tue, 28 May 1996 15:17:04 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA08073; Tue, 28 May 1996 15:17:01 -0700 (PDT) Received: from irbs.irbs.com ([199.182.75.129]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id HAA05059 ; Tue, 28 May 1996 07:27:52 -0700 Received: (from jc@localhost) by irbs.irbs.com (8.7.5/8.6.6) id KAA24493; Tue, 28 May 1996 10:26:40 -0400 (EDT) From: John Capo Message-Id: <199605281426.KAA24493@irbs.irbs.com> Subject: Re: snmp for FreeBSD... To: scrappy@ki.net (Marc G. Fournier) Date: Tue, 28 May 1996 10:26:39 -0400 (EDT) Cc: gpalmer@freebsd.org, current@freebsd.org, wollman@freebsd.org In-Reply-To: from "Marc G. Fournier" at "May 28, 96 02:52:53 am" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Marc G. Fournier writes: > On Tue, 28 May 1996, Gary Palmer wrote: > > > "Marc G. Fournier" wrote in message ID > > : > > > clean sources: ftp.ece.ucdavis.edu:/pub/snmp/ucd-snmp.tar.gz > > > diff against: ftp.ki.net:/pub/users/scrappy/ucd-snmp.3.1-diffs.gz > > > > First impressions ... it doesn't work (properly). I couldn't get the > > client s/w to work (perhaps I was driving it wrong, I'll look at that > > later), so I used the tkined snmp interface to check out the snmpd. > > > The "No version" error? I've found *where* the problem is, > just can't figure out *why*...am looking into that one now, since I > don't know tkined :( > I found that both of these if statements were being executed. Compiling this module without -O fixed it. :-( snmplib/snmp_api.c: 1007 if (pdu->version == SNMP_DEFAULT_VERSION){ pdu->version = session->version; } if (pdu->version == SNMP_DEFAULT_VERSION){ fprintf(stderr, "No version specified\n"); snmp_errno = SNMPERR_BAD_ADDRESS; return 0; } John Capo jc@irbs.com IRBS Engineering FreeBSD Servers and Workstations (954) 792-9551 Unix/Internet Consulting - ISP Solutions