From owner-freebsd-amd64@FreeBSD.ORG Sun Jun 13 22:56:32 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08A6C16A4CE; Sun, 13 Jun 2004 22:56:32 +0000 (GMT) Received: from freebee.digiware.nl (dsl390.iae.nl [212.61.63.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF4EB43D54; Sun, 13 Jun 2004 22:56:30 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from dual (dual [212.61.27.71]) by freebee.digiware.nl (8.12.10/8.12.10) with SMTP id i5DMoc67085894; Mon, 14 Jun 2004 00:50:38 +0200 (CEST) (envelope-from wjw@withagen.nl) Message-ID: <033301c45198$ddd10b40$471b3dd4@dual> From: "Willem Jan Withagen" To: "Willem Jan Withagen" References: <023d01c45161$8f486360$471b3dd4@dual><40CCA3CB.6090808@anduin.net> <02b001c4517d$46da25c0$471b3dd4@dual> Date: Mon, 14 Jun 2004 00:50:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: freebsd-amd64@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: anybody using net-snmp on AMD64 or other 64bit platforms?? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jun 2004 22:56:32 -0000 > > Willem Jan Withagen wrote: > > > Reason I ask, is that it crashes with me at all kinds of places... > > > > > > I've started looking at the warnings from a regular make. > > > And in the process of tryin to fix those there are a lot of places where > > > typeconversions are really messed up. > > > > > > int, size_t, I32, function addresses and pointers are all intermixed. > > > And this of course will create all kinds unwanted effects.... > > > > > > Are there any suggestions as to enhance portability this way... > > > > > > eg. what kind of generic pointer type would one use to make shure > > > that pointers are the correct size on both architectures.... > > > > > > Or as a side questions: > > > Are there other snmp-daemons that run on 64bit platforms?? I've got it more or less running, and snmpd is no longer crashing on me "yet". But I'm now getting wrong answers for the tcp/udp connections. But for established connections as well as open server ports.... Both netstat and snmpd do this by retreiving data with sysctl from the kernel. And where netstat has got its things right, snmpd seems to be really off. The most likely reason is that snmpd defines some structures by itself, but now the question is which part is that??? Does anybody know of tools to compare or analyse the raw data coming out of a struct tcpcb..... --WjW