Subject: Re: netstat(1) broken for some time now
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 09/14/2006 20:46:13
In article <1D5689D7-09D8-44AB-8DA4-33FAA355C099@fnop.net>,
Rui Paulo  <rpaulo@fnop.net> wrote:
>
>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?
>

I just fixed that.

christos