Subject: netstat -i in /etc/daily
To: None <tech-userlevel@netbsd.org, tech-net@netbsd.org>
From: None <itojun@iijlab.net>
List: tech-userlevel
Date: 01/17/2000 02:33:31
	How do you think if we change "netstat -i" in /etc/daily to
	"netstat -iv", to avoid truncation of long addresses? (yes, IPv6
	is suffering from truncation very much)
	or -ivn for avoiding name lookup?

itojun


-- netstat -in example
Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs Colls
ne2   1500  <Link>        00:e0:98:00:30:9f     9700     0     2677     0    10
ne2   1500  210.160.95.96 210.160.95.98         9700     0     2677     0    10
ne2   1500  fe80:1::2e0:9 fe80:1::2e0:98ff:     9700     0     2677     0    10
ne2   1500  2001:218:420: 2001:218:420:0:2e     9700     0     2677     0    10
ne2   1500  3ffe:8020:10f 3ffe:8020:10ff:1:     9700     0     2677     0    10
ne2   1500  3ffe:507:1:1: 3ffe:507:1:1:2e0:     9700     0     2677     0    10
ne2   1500  3ffe:501:410: 3ffe:501:410:0:2e     9700     0     2677     0    10
lo0   32976 <Link>                                92     0       92     0     0
lo0   32976 fe80:2::1/64  fe80:2::1               92     0       92     0     0
lo0   32976 ::1/128       ::1                     92     0       92     0     0
lo0   32976 127           127.0.0.1               92     0       92     0     0
ppp0* 1500  <Link>                                 0     0        0     0     0
ppp1* 1500  <Link>                                 0     0        0     0     0
sl0*  296   <Link>                                 0     0        0     0     0
sl1*  296   <Link>                                 0     0        0     0     0
strip 1100  <Link>                                 0     0        0     0     0
strip 1100  <Link>                                 0     0        0     0     0
tun0* 1500  <Link>                                 0     0        0     0     0
tun1* 1500  <Link>                                 0     0        0     0     0
gre0* 1450  <Link>                                 0     0        0     0     0
gre1* 1450  <Link>                                 0     0        0     0     0
ipip0 0     <Link>                                 0     0        0     0     0
ipip1 0     <Link>                                 0     0        0     0     0
gif0* 1280  <Link>                                 0     0        0     0     0
gif1* 1280  <Link>                                 0     0        0     0     0
gif2* 1280  <Link>                                 0     0        0     0     0
gif3* 1280  <Link>                                 0     0        0     0     0
faith 1500  <Link>                                 0     0        0     0     0
eon0  1500  <Link>                                 0     0        0     0     0


--- netstat -ivn example
Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs Colls
ne2   1500  <Link>        00:e0:98:00:30:9f     9786     0     2707     0    10
ne2   1500  210.160.95.96 210.160.95.98         9786     0     2707     0    10
ne2   1500  fe80:1::2e0:98ff:fe00:309f/64 fe80:1::2e0:98ff:fe00:309f     9786     0     2707     0    10
ne2   1500  2001:218:420:0:2e0:98ff:fe00:309f/64 2001:218:420:0:2e0:98ff:fe00:309f     9786     0     2707     0    10
ne2   1500  3ffe:8020:10ff:1:2e0:98ff:fe00:309f/64 3ffe:8020:10ff:1:2e0:98ff:fe00:309f     9786     0     2707     0    10
ne2   1500  3ffe:507:1:1:2e0:98ff:fe00:309f/64 3ffe:507:1:1:2e0:98ff:fe00:309f     9786     0     2707     0    10
ne2   1500  3ffe:501:410:0:2e0:98ff:fe00:309f/64 3ffe:501:410:0:2e0:98ff:fe00:309f     9786     0     2707     0    10
lo0   32976 <Link>                                92     0       92     0     0
lo0   32976 fe80:2::1/64  fe80:2::1               92     0       92     0     0
lo0   32976 ::1/128       ::1                     92     0       92     0     0
lo0   32976 127           127.0.0.1               92     0       92     0     0
ppp0* 1500  <Link>                                 0     0        0     0     0
ppp1* 1500  <Link>                                 0     0        0     0     0
sl0*  296   <Link>                                 0     0        0     0     0
sl1*  296   <Link>                                 0     0        0     0     0
strip 1100  <Link>                                 0     0        0     0     0
strip 1100  <Link>                                 0     0        0     0     0
tun0* 1500  <Link>                                 0     0        0     0     0
tun1* 1500  <Link>                                 0     0        0     0     0
gre0* 1450  <Link>                                 0     0        0     0     0
gre1* 1450  <Link>                                 0     0        0     0     0
ipip0 0     <Link>                                 0     0        0     0     0
ipip1 0     <Link>                                 0     0        0     0     0
gif0* 1280  <Link>                                 0     0        0     0     0
gif1* 1280  <Link>                                 0     0        0     0     0
gif2* 1280  <Link>                                 0     0        0     0     0
gif3* 1280  <Link>                                 0     0        0     0     0
faith 1500  <Link>                                 0     0        0     0     0
eon0  1500  <Link>                                 0     0        0     0     0