Date: Wed, 28 Mar 2001 17:25:43 +0300 From: Peter Pentchev <roam@orbitel.bg> To: Michael Lucas <mwlucas@blackhelicopters.org> Cc: Jim Mercer <jim@reptiles.org>, hackers@FreeBSD.ORG Subject: Re: 4.3-RC bug in /usr/bin/netstat Message-ID: <20010328172543.M5524@ringworld.oblivion.bg> In-Reply-To: <20010328091904.A67574@blackhelicopters.org>; from mwlucas@blackhelicopters.org on Wed, Mar 28, 2001 at 09:19:04AM -0500 References: <20010328073324.O29550@reptiles.org> <20010328091904.A67574@blackhelicopters.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 28, 2001 at 09:19:04AM -0500, Michael Lucas wrote:
> Broken on a few days old -current as well:
>
> turtledawn~;netstat -ia
> Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
> lp0* 1500 <Link#1> 0 0 0 0 0
> lo0 16384 <Link#2> 123 0 123 0 0
> Bus error
> turtledawn~;
Yes, it seems the same bug's in -current, too; patch attached.
G'luck,
Peter
--
This sentence would be seven words long if it were six words shorter.
Index: src/usr.bin/netstat/if.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/netstat/if.c,v
retrieving revision 1.38
diff -u -r1.38 if.c
--- src/usr.bin/netstat/if.c 2001/03/04 22:25:05 1.38
+++ src/usr.bin/netstat/if.c 2001/03/28 14:24:44
@@ -448,9 +448,10 @@
const char *fmt;
TAILQ_FOREACH(multiaddr, &ifnet.if_multiaddrs, ifma_link) {
- if (kread(*(u_long *)multiaddr, (char *)&ifma,
+ if (kread(multiaddr, (char *)&ifma,
sizeof ifma))
break;
+ multiaddr = &ifma;
if (kread((u_long)ifma.ifma_addr, (char *)&msa,
sizeof msa))
break;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010328172543.M5524>
