Date: Thu, 1 Mar 2001 16:00:08 +0000 From: Josef Karthauser <joe@tao.org.uk> To: net@freebsd.org Subject: Stat counters for interfaces. Message-ID: <20010301160008.E726@tao.org.uk>
next in thread | raw e-mail | index | archive | help
--ILuaRSyQpoVaJ1HG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline A few months ago I added a struct if_data to struct ifaddr for keeping stats on a per interface address basis. Not all protocols current use this though, and not all values are meaningful. What I'd like to do is preload the members that aren't being used with -1, and then detect this in 'netstat -in' and print '-' instead of '0'. Does this make sense, or is it a hack :) ? The members of this structure carrying statistics are currently u_long, and so maybe I should use ULONG_MAX instead? Any opinions? Joe --ILuaRSyQpoVaJ1HG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjqecgcACgkQXVIcjOaxUBYslQCgzLnDabxeiTjxbyQhRs0sIVOa 6n4AoMjyRVP5xJ5/AYosti8N/RBd6aHP =0RE5 -----END PGP SIGNATURE----- --ILuaRSyQpoVaJ1HG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010301160008.E726>