Subject: Re: netstat -i in /etc/daily
To: None <tech-userlevel@netbsd.org, tech-net@netbsd.org,>
From: None <alexis@panix.com>
List: tech-userlevel
Date: 01/18/2000 02:03:27
matt@3am-software.com (Matt Thomas) wrote:
> At 06:18 AM 1/17/00 , itojun@iijlab.net wrote:
> >Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Colls
> >sm1 1500 <Link> 00:00:86:05:80:fa 2358 0 2581 0 38
> >sm1 1500 fe80:1::200:86ff:fe05:80fa/64 fe80:1::200:86ff:fe05:80fa 2358 0 2581 0 38
> ^^^^^^^^
> That line should be fe80:1::/64 (it's the network, not the host part).
> [...]
That aside, why repeat this info at all?
Is there ever any case where the address will not be part of the network (at
least in IPv[46]? Why not just this:
Name Mtu Network &&/|| Address Ipkts Ierrs Opkts Oerrs Colls
sm1 1500 <Link> 00:00:86:05:80:fa 2358 0 2581 0 38
sm1 1500 fe80:1::200:86ff:fe05:80fa/64 2358 0 2581 0 38
[etc.]
This preserves all the info. It would also make IPv4 info look a lot nicer
too, since you wouldn't have a problem of truncation with "-in".
I don't really advocate using "&&/||", I'm just being lazy.
/a
---
Alexis Rosen
PANIX Public Access Unix & Internet, NYC.
alexis@panix.com