This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: show_network_tables doesn't show host routes


On Wed, Mar 24, 2004 at 03:45:51PM -0800, Matt Jerdonek wrote:
> I'm having trouble getting show_network_tables to
> display host routes.  I tracked this down to the
> following code in bsd_tcpip\ver\src\ecos\support.c
> 
> static int
> _dumpentry(struct radix_node *rn, void *vw)
> {
>     // .... snip ....
>     if ((rt->rt_flags & (RTF_UP | RTF_WASCLONED)) ==
> RTF_UP) {
>         if (netmask == NULL) {
>             return 0;
>         }
>         
> It appears as if the netmask is 0, which is the case
> for host routes, the route will not be displayed.  Is
> this intentional?

I took the check out and it seems to work OK:

Destination     Gateway         Mask            Flags    Interface
127.0.0.0       127.0.0.1       255.0.0.0       UG       lo0
127.0.0.1       127.0.0.1                       UH       lo0
192.168.10.0    192.168.10.0    255.255.255.0   U        eth0
::              fe80:1::2ff:ecff:fe21:1ecd /0              UG       eth0
::1             ::1                             UH       lo0
3ffe:302:11:2::c0a8:a0a 3ffe:302:11:2::c0a8:a0a                 UH       lo0
fe80:1::        fe80:1::        /64             U        eth0
fe80:1::201:2ff:fe03:fe06 fe80:1::201:2ff:fe03:fe06                 UH       lo0
fe80:2::        fe80:2::1       /64             U        lo0
fe80:2::1       fe80:2::1                       UH       lo0
fec0:0:0:2::    fec0:0:0:2::    /64             U        eth0
fec0::2:201:2ff:fe03:fe06 fec0::2:201:2ff:fe03:fe06                 UH       lo0
ff01:1::        ff01:1::        /32             U        eth0
ff01:2::        ::1             /32             U        lo0
ff02:1::        ff02:1::        /32             U        eth0
ff02:2::        ::1             /32             U        lo0

     Andrew

Attachment: patch
Description: Text document

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]