Subject: Re: Traffic Accounting with NetBSD
To: None <netbsd-users@netbsd.org>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: netbsd-users
Date: 01/30/2003 17:19:25
--2/5bycvrmDh4d1IB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Tobias Schuepp wrote that he wants
> to use NetBSD as a transparent bridge that does traffic
> accounting on the bridged ethernet devices. I know that NetBSD is able
> to behave as an 802.3 Bridge, but is it possible to count the traffice
> running through the devices?

If per-interface accounting is enough, you can do this:

# netstat -b -I gif0
Name  Mtu   Network       Address               Ibytes     Obytes
gif0  1280  <Link>                           113083619    2391777
[...]

or=20

# netstat -b -i

Regards,
	-is

--2/5bycvrmDh4d1IB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPjlQiTCn4om+4LhpAQGmYQgAtwGz5ntV78l900kaqsNCqSLjq/azuvH7
FF3tcDOQ/PyKhELob2N4cmP0JqV9ouakaAGQ8N8thRP/GoZcKv7945PPt3FlU89Y
EFT6AR0p//qj7u+ETkPztRBoZTo9CSpyiDEg/lYG0K7jaRt0WuybYYwWG8QXzof3
wACACE8eNfG6HqiKjfWpnFK90Qv2MHT86JX7BURYPsuea5/+0++AgV5n0ordcp3J
iIipo8sUGrdATScxbwySVweKOZwV7CqbFtC4im8+hTRkbj2VFmRQexMUZHMohznk
dkSfsV7Dtli75tWP5HZYRF+ZN6E/6IRP8NhHtYNubg2dn43hQGPAhg==
=ntRN
-----END PGP SIGNATURE-----

--2/5bycvrmDh4d1IB--