diff options
author | Bernd Eckenfels <net-tools@lina.inka.de> | 2001-11-25 06:48:50 +0000 |
---|---|---|
committer | Bernd Eckenfels <net-tools@lina.inka.de> | 2001-11-25 06:48:50 +0000 |
commit | 06be6d820f06c59e717cc0adbe1c255c869e05e5 (patch) | |
tree | c77cf3decbaab6e402ca5d42883578bbe0b5794b /netstat.c | |
parent | 1aaeb28b80e9b29a448e025c6dba87c9042a6596 (diff) | |
download | net-tools-06be6d820f06c59e717cc0adbe1c255c869e05e5.tar.gz net-tools-06be6d820f06c59e717cc0adbe1c255c869e05e5.tar.bz2 net-tools-06be6d820f06c59e717cc0adbe1c255c869e05e5.zip |
this fixes Debian Bug #109164 (netstat -ci does only print stats once). It
also renames add_interface and free_interface list to if_cache_add/free.
I am not sure if removing the "proc_read" flag will harm performance, looks
likt this check is never triggereed. Anyway, we need more efficient b-search
sooner or later.
Diffstat (limited to 'netstat.c')
-rw-r--r-- | netstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ * NET-3 Networking Distribution for the LINUX operating * system. * - * Version: $Id: netstat.c,v 1.44 2001/08/26 05:25:21 ak Exp $ + * Version: $Id: netstat.c,v 1.45 2001/11/25 06:48:50 ecki Exp $ * * Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de> * Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> @@ -1457,7 +1457,7 @@ static int iface_info(void) exit(1); } if (flag_cnt) - free_interface_list(); + if_cache_free(); else { close(skfd); skfd = -1; |