Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 2008 04:21:27 -0800
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Randall Stewart <rrs@lakerest.net>
Cc:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: ACE and FreeBSD
Message-ID:  <20081222122127.GO18389@elvis.mu.org>
In-Reply-To: <7723D33A-A87F-4CEC-93E6-7D11BCDC849C@lakerest.net>
References:  <7723D33A-A87F-4CEC-93E6-7D11BCDC849C@lakerest.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Randall Stewart <rrs@lakerest.net> [081222 03:48] wrote:
> 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 :-)

You could expand SIOCGIFDATA, but you'd need to make a compat
SIOCGIFODATA (OLD DATA) ioctl.  Or you could export it maybe
through the dev sysctl tree.  I like the former.

-Alfred



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081222122127.GO18389>