From owner-freebsd-net@FreeBSD.ORG Mon Dec 22 11:48:38 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A9E91065670 for ; Mon, 22 Dec 2008 11:48:38 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from lakerest.net (unknown [IPv6:2001:240:585:2:203:6dff:fe1a:4ddc]) by mx1.freebsd.org (Postfix) with ESMTP id C77698FC1B for ; Mon, 22 Dec 2008 11:48:37 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from [10.1.1.54] ([10.1.1.54]) (authenticated bits=0) by lakerest.net (8.14.1/8.14.1) with ESMTP id mBMBmZO6064840 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Mon, 22 Dec 2008 06:48:35 -0500 (EST) (envelope-from rrs@lakerest.net) Message-Id: <7723D33A-A87F-4CEC-93E6-7D11BCDC849C@lakerest.net> From: Randall Stewart To: freebsd-net Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Mon, 22 Dec 2008 06:48:35 -0500 X-Mailer: Apple Mail (2.929.2) Subject: ACE and FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2008 11:48:38 -0000 Hi all: I am trying to get the latest ACE/TAO toolkit compiling with Head... (the port is marked broken in 7).. In the process of fixing things I found something I am not sure how to approach.. for now I have just ifdef'd it out but maybe someone can point me to the right method... They are using a ioctl -- SIOCGIFDATA -- to get access to the interface packet counts and such. Now near as I can tell we don't have that SIO. A google of someone a few years ago where the question was asked turned up a, we don't need that instead we should have access to this information via the sysctl. So my immediate thought, hey netstat does this.. and it probably uses the sysctl... so I go and look at the code.. and tada.. it does a kread() to get the actual if_data .... yuck. So, is there a sysctl that gets access to this information? I have poked around in a sysctl -a -N and don't see anything that looks promising.. Pointers to the right approach would be appreciated.. I am not sure what the monitor stuff is used for.. but I would like to get this toolkit fully functional if possible :-) R ------------------------------ Randall Stewart 803-317-4952 (cell) 803-345-0391(direct)