Hi James, Philip, Here's a small patch to netstat-1.60/lib/interface.c that produces correct output for me. I'll let Philip decide how much of it to apply. ~Randy On Tue, 10 Jun 2003 15:22:52 -0400 (EDT) "Mr. James W. Laferriere" <babydr@baby-dragons.com> wrote: | Hello Phillip , Yes , Please & Thank you . I also have a little | bit of a problem with my version of 1.60 . Tia , JimL | | # netstat -cin | Kernel Interface table | Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg | eth0 1500 0 1545143 0 0 0 946004 0 0 0 BMRU | eth0: 1500 0 - no statistics available - BMRU | eth1 1500 0 242590 0 0 0 367809 0 0 0 BMRU | lo 16436 0 6767440 0 0 0 6767440 0 0 0 LRU | Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg | Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg | Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg | | | On Tue, 10 Jun 2003, Philip Blundell wrote: | > On Tue, 2003-06-10 at 16:16, Mr. James W. Laferriere wrote: | > > Hello Phillip , Is there a version of net-tools more recent than | > > 1.60 ? Tia , JimL | > I don't think so, at least not an official version. The net-tools in | > Debian does have some changes that are not in 1.60. Maybe it's time we | > had a new release. | > p. | --
--- lib/interface.c~org 2001-02-10 11:31:15.000000000 -0800 +++ lib/interface.c 2003-06-12 15:36:17.000000000 -0700 @@ -146,6 +146,7 @@ int_list = ife->next; free(ife); } + int_last = NULL; return 0; } @@ -306,10 +307,12 @@ struct interface *ife; int err; +#if 0 if (proc_read) return 0; if (!target) proc_read = 1; +#endif fh = fopen(_PATH_PROCNET_DEV, "r"); if (!fh) {