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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message