Report forwarded to debian-bugs-dist@lists.debian.org, Peter Tobias <tobias@et-inf.fho-emden.de>:
Bug#9295; Package netbase.   debian-bugs-dist@lists.debian.orgPeter Tobias <tobias@et-inf.fho-emden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Russell Coker <rjc@virtual.net.au>:
New bug report received and forwarded. Copy sent to Peter Tobias <tobias@et-inf.fho-emden.de>.   Russell Coker <rjc@virtual.net.au>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at submit) by bugs.debian.org; 2 May 1997 06:11:53 +0000 Received: (qmail 15429 invoked from network); 2 May 1997 06:11:51 -0000 Received: from ns.virtual.net.au (HELO server.virtual.net.au) (rjc@203.29.16.1) by master.debian.org with SMTP; 2 May 1997 06:11:50 -0000 Received: (from rjc@localhost) by server.virtual.net.au (8.8.5/8.8.5) id QAA22997; Fri, 2 May 1997 16:23:47 +1000 Date: Fri, 2 May 1997 16:23:47 +1000 Message-Id: <199705020623.QAA22997@server.virtual.net.au> From: Russell Coker Subject: netbase: `ifconfig` doesn't display all interfaces. To: submit@bugs.debian.org X-Mailer: bug 2.93 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. -- System Information Debian Release: 1.3 Kernel Version: Linux server 2.1.35 #3 Wed Apr 16 15:31:58 EST 1997 i486 unknown Versions of the packages netbase depends on: libc5 Version: 5.4.23-2 --- Begin /etc/init.d/netbase (modified conffile) if [ -s /etc/rc2.d/S20xinetd ] ; then exit 0 fi test -f /usr/sbin/rpc.portmap || exit 0 case "$1" in start) echo -n "Starting base networking daemons: " echo -n "rpc.portmap " ; start-stop-daemon --start --quiet --exec /usr/sbin/rpc.portmap echo -n "inetd" ; start-stop-daemon --start --quiet --exec /usr/sbin/inetd echo ;; stop) start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/inetd.pid --exec /usr/sbin/inetd start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/rpc.portmap killall -9 slattach 2>/dev/null || exit 0 ;; reload) start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/inetd.pid --signal 1 --exec /usr/sbin/inetd ;; *) echo "Usage: /etc/init.d/netbase {start|stop}" exit 1 ;; esac exit 0 --- End /etc/init.d/netbase --- Begin /etc/services (modified conffile) tcpmux 1/tcp # TCP port service multiplexer echo 7/tcp echo 7/udp discard 9/tcp sink null discard 9/udp sink null systat 11/tcp users daytime 13/tcp daytime 13/udp netstat 15/tcp qotd 17/tcp quote msp 18/tcp # message send protocol msp 18/udp # message send protocol chargen 19/tcp ttytst source chargen 19/udp ttytst source ftp-data 20/tcp ftp 21/tcp fsp 21/udp fspd ssh 22/tcp # SSH Remote Login Protocol ssh 22/udp # SSH Remote Login Protocol telnet 23/tcp smtp 25/tcp mail time 37/tcp timserver time 37/udp timserver rlp 39/udp resource # resource location nameserver 42/tcp name # IEN 116 whois 43/tcp nicname re-mail-ck 50/tcp # Remote Mail Checking Protocol re-mail-ck 50/udp # Remote Mail Checking Protocol domain 53/tcp nameserver # name-domain server domain 53/udp nameserver mtp 57/tcp # deprecated bootps 67/tcp # BOOTP server bootps 67/udp bootpc 68/tcp # BOOTP client bootpc 68/udp tftp 69/udp gopher 70/tcp # Internet Gopher gopher 70/udp rje 77/tcp netrjs finger 79/tcp www 80/tcp http # WorldWideWeb HTTP www 80/udp # HyperText Transfer Protocol link 87/tcp ttylink kerberos 88/tcp kerberos5 krb5 # Kerberos v5 kerberos 88/udp kerberos5 krb5 # Kerberos v5 supdup 95/tcp hostnames 101/tcp hostname # usually from sri-nic iso-tsap 102/tcp tsap # part of ISODE. csnet-ns 105/tcp cso-ns # also used by CSO name server csnet-ns 105/udp cso-ns rtelnet 107/tcp # Remote Telnet rtelnet 107/udp pop-2 109/tcp postoffice # POP version 2 pop-2 109/udp pop-3 110/tcp # POP version 3 pop-3 110/udp sunrpc 111/tcp portmapper # RPC 4.0 portmapper TCP sunrpc 111/udp portmapper # RPC 4.0 portmapper UDP auth 113/tcp authentication tap ident sftp 115/tcp uucp-path 117/tcp nntp 119/tcp readnews untp # USENET News Transfer Protocol ntp 123/tcp ntp 123/udp # Network Time Protocol netbios-ns 137/tcp # NETBIOS Name Service netbios-ns 137/udp netbios-dgm 138/tcp # NETBIOS Datagram Service netbios-dgm 138/udp netbios-ssn 139/tcp # NETBIOS session service netbios-ssn 139/udp imap2 143/tcp # Interim Mail Access Proto v2 imap2 143/udp snmp 161/udp # Simple Net Mgmt Proto snmp-trap 162/udp snmptrap # Traps for SNMP cmip-man 163/tcp # ISO mgmt over IP (CMOT) cmip-man 163/udp cmip-agent 164/tcp cmip-agent 164/udp xdmcp 177/tcp # X Display Mgr. Control Proto xdmcp 177/udp nextstep 178/tcp NeXTStep NextStep # NeXTStep window nextstep 178/udp NeXTStep NextStep # server bgp 179/tcp # Border Gateway Proto. bgp 179/udp prospero 191/tcp # Cliff Neuman's Prospero prospero 191/udp irc 194/tcp # Internet Relay Chat irc 194/udp smux 199/tcp # SNMP Unix Multiplexer smux 199/udp at-rtmp 201/tcp # AppleTalk routing at-rtmp 201/udp at-nbp 202/tcp # AppleTalk name binding at-nbp 202/udp at-echo 204/tcp # AppleTalk echo at-echo 204/udp at-zis 206/tcp # AppleTalk zone information at-zis 206/udp qmtp 209/tcp # The Quick Mail Transfer Protocol qmtp 209/udp # The Quick Mail Transfer Protocol z3950 210/tcp wais # NISO Z39.50 database z3950 210/udp wais ipx 213/tcp # IPX ipx 213/udp imap3 220/tcp # Interactive Mail Access imap3 220/udp # Protocol v3 ulistserv 372/tcp # UNIX Listserv ulistserv 372/udp snpp 444/tcp # Simple Network Paging Protocol snpp 444/udp # Simple Network Paging Protocol exec 512/tcp biff 512/udp comsat login 513/tcp who 513/udp whod shell 514/tcp cmd # no passwords used syslog 514/udp printer 515/tcp spooler # line printer spooler talk 517/udp ntalk 518/udp route 520/udp router routed # RIP timed 525/udp timeserver tempo 526/tcp newdate courier 530/tcp rpc conference 531/tcp chat netnews 532/tcp readnews netwall 533/udp # -for emergency broadcasts uucp 540/tcp uucpd # uucp daemon remotefs 556/tcp rfs_server rfs # Brunhoff remote filesystem klogin 543/tcp # Kerberized `rlogin' (v5) kshell 544/tcp krcmd # Kerberized `rsh' (v5) kerberos-adm 749/tcp # Kerberos `kadmin' (v5) webster 765/tcp # Network dictionary webster 765/udp ingreslock 1524/tcp ingreslock 1524/udp prospero-np 1525/tcp # Prospero non-privileged prospero-np 1525/udp rfe 5002/tcp # Radio Free Ethernet rfe 5002/udp # Actually uses UDP only bbs 7000/tcp # BBS service kerberos4 750/udp kdc # Kerberos (server) udp kerberos4 750/tcp kdc # Kerberos (server) tcp kerberos_master 751/udp # Kerberos authentication kerberos_master 751/tcp # Kerberos authentication passwd_server 752/udp # Kerberos passwd server krb_prop 754/tcp # Kerberos slave propagation krbupdate 760/tcp kreg # Kerberos registration kpasswd 761/tcp kpwd # Kerberos "passwd" kpop 1109/tcp # Pop with Kerberos knetd 2053/tcp # Kerberos de-multiplexor zephyr-srv 2102/udp # Zephyr server zephyr-clt 2103/udp # Zephyr serv-hm connection zephyr-hm 2104/udp # Zephyr hostmanager eklogin 2105/tcp # Kerberos encrypted rlogin supfilesrv 871/tcp # SUP server supfiledbg 1127/tcp # SUP debugging rtmp 1/ddp # Routing Table Maintenance Protocol nbp 2/ddp # Name Binding Protocol echo 4/ddp # AppleTalk Echo Protocol zip 6/ddp # Zone Information Protocol rmtcfg 1236/tcp # Gracilis Packeten remote config server xtel 1313/tcp # french minitel cfinger 2003/tcp # GNU Finger cvspserver 2401/tcp # CVS client/server operations postgres 4321/tcp # POSTGRES mandelspawn 9359/udp mandelbrot # network mandelbrot fax 4557/tcp # FAX transmission service (old) hylafax 4559/tcp # HylaFAX client-server protocol (new) webcache 8080/tcp ircd 6667/tcp # Real IRC poppassd 106/tcp # Remote Password change for Eudora etc saft 487/tcp # simple asynchronous file transfer --- End /etc/services --- Begin /etc/hosts.allow (modified conffile) portmap: 203.29.16.1 203.29.16.4 203.29.16.128 203.29.16.7 in.telnetd: .noojee.com.au .dtms.com.au .warpspeed.com.au .virtual.net.au in.pop3d: .noojee.com.au .dtms.com.au .warpspeed.com.au .virtual.net.au cucipop: .noojee.com.au .dtms.com.au .warpspeed.com.au .virtual.net.au in.telnetd: 202.12.87.129 202.12.87.130 202.12.87.131 smbd: .noojee.com.au .dtms.com.au .warpspeed.com.au .virtual.net.au 202.12.87. sendmail: UNKNOWN --- End /etc/hosts.allow --- Begin /etc/hosts.deny (modified conffile) ALL: PARANOID ALL: UNKNOWN in.telnetd: ALL except .virtual.net.au in.pop3d: ALL except .virtual.net.au cucipop: ALL except .virtual.net.au smbd: ALL except .virtual.net.au --- End /etc/hosts.deny   Information forwarded to debian-bugs-dist@lists.debian.org, Peter Tobias <tobias@et-inf.fho-emden.de>:
Bug#9295; Package netbase.   debian-bugs-dist@lists.debian.orgPeter Tobias <tobias@et-inf.fho-emden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Andrea Arcangeli <arcangeli@mbox.queen.it>:
Extra info received and forwarded to list. Copy sent to Peter Tobias <tobias@et-inf.fho-emden.de>.   Andrea Arcangeli <arcangeli@mbox.queen.it>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at submit) by bugs.debian.org; 3 May 1997 11:04:41 +0000 Received: (qmail 17925 invoked from network); 3 May 1997 11:04:40 -0000 Received: from mbox.queen.it (root@194.184.164.4) by master.debian.org with SMTP; 3 May 1997 11:04:39 -0000 Received: from arca.queen.it (root@async09-imo.queen.it [194.184.164.149]) by mbox.queen.it (8.8.4/8.8.4) with ESMTP id NAA02185; Sat, 3 May 1997 13:03:16 +0200 Received: from localhost by arca.queen.it with smtp id m0wNR8p-000dH1C (Debian Smail-3.2 1996-Jul-4 #2); Sat, 3 May 1997 00:49:07 +0200 (CEST) Date: Sat, 3 May 1997 00:49:07 +0200 (CEST) From: Andrea Arcangeli X-Sender: andrea@arca.queen.it To: Russell Coker , 9295@bugs.debian.org cc: submit@bugs.debian.org, debian-bugs-dist@lists.debian.org, Peter Tobias Subject: Re: Bug#9295: netbase: `ifconfig` doesn't display all interfaces. In-Reply-To: <199705020623.QAA22997@server.virtual.net.au> Message-ID: 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 __ ____ _ _ __ __ _ _ /\ ( ) (_ _)( \( )( )( )( \/ ))( )(__ _)(_ ) ( )(__)( ) ( \/ (____)(____)(_)\_)(______)(_/\_)()   Information forwarded to debian-bugs-dist@lists.debian.org, Peter Tobias <tobias@et-inf.fho-emden.de>:
Bug#9295; Package netbase.   debian-bugs-dist@lists.debian.orgPeter Tobias <tobias@et-inf.fho-emden.de>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Andrea Arcangeli <arcangeli@mbox.queen.it>:
Extra info received and forwarded to list. Copy sent to Peter Tobias <tobias@et-inf.fho-emden.de>.   Andrea Arcangeli <arcangeli@mbox.queen.it>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 9295) by bugs.debian.org; 3 May 1997 11:04:41 +0000 Received: (qmail 17925 invoked from network); 3 May 1997 11:04:40 -0000 Received: from mbox.queen.it (root@194.184.164.4) by master.debian.org with SMTP; 3 May 1997 11:04:39 -0000 Received: from arca.queen.it (root@async09-imo.queen.it [194.184.164.149]) by mbox.queen.it (8.8.4/8.8.4) with ESMTP id NAA02185; Sat, 3 May 1997 13:03:16 +0200 Received: from localhost by arca.queen.it with smtp id m0wNR8p-000dH1C (Debian Smail-3.2 1996-Jul-4 #2); Sat, 3 May 1997 00:49:07 +0200 (CEST) Date: Sat, 3 May 1997 00:49:07 +0200 (CEST) From: Andrea Arcangeli X-Sender: andrea@arca.queen.it To: Russell Coker , 9295@bugs.debian.org cc: submit@bugs.debian.org, debian-bugs-dist@lists.debian.org, Peter Tobias Subject: Re: Bug#9295: netbase: `ifconfig` doesn't display all interfaces. In-Reply-To: <199705020623.QAA22997@server.virtual.net.au> Message-ID: 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.