Subject: Re: netstat(1) broken for some time now
To: Nino Dehne <ndehne@gmail.com>
From: Rui Paulo <rpaulo@fnop.net>
List: current-users
Date: 09/14/2006 20:13:39
On Sep 14, 2006, at 8:01 PM, Nino Dehne wrote:
> Hi,
>
> I noticed in 4.0_BETA and now in 4.99.1 that netstat must be broken
> somehow.
>
> # netstat -rn
> Routing tables
>
> Internet:
> Destination Gateway Flags Refs Use
> Mtu Interface
> default [...] UGS - pppoe0
> [...]
> 127/8 127.0.0.1 UGRS 33192 lo0
> 127.0.0.1 127.0.0.1 UH 33192 lo0
> [...]
>
> Notice how the columns Refs and Use are empty.
Ask Elad:
#ifdef notyet /* XXX elad */
printf("%6d %8ld ", (int)rtm->rtm_rmx.rmx_refcnt,
rtm->rtm_rmx.rmx_pksent);
#endif
> Also, where the default route
> for IPv6 ought to be, there is just:
>
> netstat: illegal prefixlen
>
> IPv6 route handling is done by aiccu. However, even if I reset the
> default
> route by hand I get the same output.
Are you sure your kernel and userland are in sync?
-- Rui Paulo