[RFC] break out 'statfoo' from wlanstats/athstats into a shared library

Bernhard Schmidt bschmidt at freebsd.org
Fri Apr 6 07:46:12 UTC 2012


On Friday 06 April 2012 02:17:16 Adrian Chadd wrote:
> Hi,
> 
> There's a statistics library which Sam used for a variety of networking tasks:
> 
> * wlanstats
> * mwlstats
> * athstats
> * (npestats? What's npe?)

Ethernet driver, check the xscale port.

> I've fixed some issues in athstats' copy of libstatfoo which I can
> port elsewhere. But I can also see scenarios where I'd like to use
> this library code in future statistics utilities that I'll write.
> 
> What I'd like to do is:
> 
> * break out the statfoo from these and create a libstatfoo, that's
> built as part of the base system;
> * teach wlanstats, mwlstats, athstats to use the system provided copy
> of libstatfoo;
> * migrate wlanstats out from tools into the base system.
> 
> Does anyone have any particular reason not to do this?

What I'd always wanted to see is wlanstats' -i being extended to
recognize not just wlanN, as in

wlanstats -i wlan0 (teh default)
wlanstats -i wlan1
wlanstats -i ath0
wlanstats -i mwl0

-- 
Bernhard


More information about the freebsd-arch mailing list