MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Fri, 2 May 1997, Russell Coker wrote:
>Package: netbase
>Version: 2.13-1
>
> I am having another problems with `ifconfig` not displaying all interfaces.
>It now displays all eth0:* devices, it doesn't display the sit0 device for
>IPv6 (I am not using IPv6 but I've got it compiled into the kernel), and it
>displays some of the ppp devices in a semi-random fashion. At the moment one
>of my servers has devices ppp0 to ppp6 inclusive but only ppp3 is listed by
>ifconfig. I have no idea of why it's doing this. If you know some good tests
>I can run then please let me know.
>
I am not sure to help you but if you use ifconfig in the 2.1.36 kernel
you should patch the ifconfig source (I have done it and now I haven' t
any problem but I haven' t compiled in the kernel the IPv6).
The patch is:
===================================================
--- net-tools-1.32-alpha/ifconfig.c.orig Mon Feb 3 23:58:26 1997
+++ net-tools-1.32-alpha/ifconfig.c Tue Feb 4 00:38:20 1997
@@ -73,7 +73,7 @@
int has_ax25;
int has_ddp;
char hwaddr[32]; /* HW address */
- struct enet_statistics stats; /* statistics */
+ struct net_device_stats stats; /* statistics */
};
@@ -193,12 +193,12 @@
/* If needed, display the interface statistics. */
printf(" ");
printf(NLS_CATGETS(catfd, ifconfigSet, ifconfig_rx,
- "RX packets:%u errors:%u dropped:%u %s:%u\n"),
+ "RX packets:%ld errors:%ld dropped:%ld %s:%ld\n"),
ptr->stats.rx_packets, ptr->stats.rx_errors,
ptr->stats.rx_dropped, dispname, ptr->stats.rx_fifo_errors);
printf(" ");
printf(NLS_CATGETS(catfd, ifconfigSet, ifconfig_tx,
- "TX packets:%u errors:%u dropped:%u %s:%u\n"),
+ "TX packets:%ld errors:%ld dropped:%ld %s:%ld\n"),
ptr->stats.tx_packets, ptr->stats.tx_errors,
ptr->stats.tx_dropped, dispname, ptr->stats.tx_fifo_errors);
@@ -235,6 +235,7 @@
FILE *f=fopen("/proc/net/dev","r");
char buf[256];
char *bp;
+ unsigned long unused = 0;
if(f==NULL)
return;
while(fgets(buf,255,f))
@@ -246,13 +247,15 @@
{
bp=strchr(bp,':');
bp++;
- sscanf(bp,"%d %d %d %d %d %d %d %d %d %d %d",
+ sscanf(bp,"%ld %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld",
+ &unused,
&ife->stats.rx_packets,
&ife->stats.rx_errors,
&ife->stats.rx_dropped,
&ife->stats.rx_fifo_errors,
&ife->stats.rx_frame_errors,
+ &unused,
&ife->stats.tx_packets,
&ife->stats.tx_errors,
&ife->stats.tx_dropped,
[04/26/1997 14:00:18]
=================================================================
Andrea Arcangeli
arcangeli@mbox.queen.it
HomePage: http://www.imola.queen.it/user/arcangeli/
Debian Mirror: ftp://dida43.deis.unibo.it/pub/debian/
Debian GNU
__ ____ _ _ __ __ _ _ /\
( ) (_ _)( \( )( )( )( \/ ))(
)(__ _)(_ ) ( )(__)( ) ( \/
(____)(____)(_)\_)(______)(_/\_)()
Reply sent to Peter Tobias <tobias@et-inf.fho-emden.de>:
You have taken responsibility.
Peter Tobias <tobias@et-inf.fho-emden.de>
Sorry, this message was lost when this bug report was restored from a backup.
Done: Peter Tobias <tobias@et-inf.fho-emden.de>;
Maintainer for netbase is
Peter Tobias <tobias@et-inf.fho-emden.de>.
Message received at 9295-done@bugs.debian.org:
Received: (at 9295-done) by bugs.debian.org; 6 Jul 1997 22:48:04 +0000
Received: (qmail 14469 invoked from network); 6 Jul 1997 22:48:03 -0000
Received: from server.et-inf.fho-emden.de (192.129.16.1)
by master.debian.org with SMTP; 6 Jul 1997 22:47:58 -0000
Received: from zaphod.pi.fho-emden.de (ppp024asc.fho-emden.de [193.174.117.24]) by server.et-inf.fho-emden.de (8.8.5/8.7.3) with ESMTP id AAA01105; Mon, 7 Jul 1997 00:42:12 +0200
Received: (from tobias@localhost)
by zaphod.pi.fho-emden.de (8.8.5/8.8.5) id XAA30788;
Sun, 6 Jul 1997 23:41:55 +0200
Message-ID: <19970706234154.06934@zaphod>
Date: Sun, 6 Jul 1997 23:41:54 +0200
From: Peter Tobias <tobias@et-inf.fho-emden.de>
To: 9295-done@bugs.debian.org
Cc: rjc@virtual.net.au
Subject: Re: Bug#9295: netbase: `ifconfig` doesn't display all interfaces
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.72.1
I didn't receive any answer to my last 3 mails during the last month.
I'll therefore close this bug report with this mail. The bug should be
fixed in the latest netbase release. If you still have problems with
ifconfig (with the IPv6 stuff) you should probably talk to Bernd Eckenfels
<ecki@lina.inka.de>. He's currently preparing a new nettools package
with IPv6 support.
Thanks,
Peter
--
Peter Tobias <tobias@et-inf.fho-emden.de> <tobias@debian.org> <tobias@linux.de>
PGP ID EFAA400D, fingerprint = 06 89 EB 2E 01 7C B4 02 04 62 89 6C 2F DD F1 3C
Notification sent to Russell Coker <rjc@virtual.net.au>:
Bug acknowledged by developer.
Russell Coker <rjc@virtual.net.au>
Sorry, this message was lost when this bug report was restored from a backup.