NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/50027: netstat -r/route show don't show Refs and Use columns
>Number: 50027
>Category: kern
>Synopsis: netstat -r/route show don't show Refs and Use columns
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 03 05:05:00 +0000 2015
>Originator: Ryota Ozaki
>Release: current
>Organization:
>Environment:
NetBSD rangeley 7.99.19 NetBSD 7.99.19 (RANGELEY) #2: Fri Jul 3 13:08:43 JST 2015 ozaki-r@rangeley:(hidden) amd64
>Description:
netstat -r and route show (they use a common code and their outputs are almost
the same now) always show "-" for Refs and Use columns. netstat -r on NetBSD 6.0
was able to show Refs and Use properly.
netbsd6# netstat -nr -f inet |grep -e 127.0.0.1 -e Refs
Destination Gateway Flags Refs Use Mtu Interface
127/8 127.0.0.1 UGRS 0 0 33648 lo0
127.0.0.1 127.0.0.1 UH 2 114 33648 lo0
current# netstat -nr -f inet |grep -e 127.0.0.1 -e Refs
Destination Gateway Flags Refs Use Mtu Interface
127/8 127.0.0.1 UGRS - - 33648 lo0
127.0.0.1 127.0.0.1 UHl - - 33648 lo0
Refs and Use are useful for debugging and tests. We should get them back.
>How-To-Repeat:
Run netstat -r or route show.
>Fix:
If we consider only -current, we can fix the problem by adding rtm_refcnt
to struct rt_msghdr and doing rtm->rtm_refcnt = rt->rt_refcnt in
sysctl_dumpentry. However, if we take into account of compat, the problem
is not so easy to fix.
Home |
Main Index |
Thread Index |
Old Index