[ECOS] Route table and No. of hops

Matt Jerdonek maj1224@yahoo.com
Thu Sep 8 01:08:00 GMT 2005


You can display the routing table with
show_network_tables() in
bsd_tcpip/current/src/ecos/support.c 

-- Matt
--- mkhoyila@uci.edu wrote:

> Gentlemen,
> 
> Thanks for the help on static arp. Now I want to
> setup the 2 EMACs so that
> packets come from eth0 and rerouted internally by
> eCos to eth1 and goes
> out from there. However, The receive is working but
> rerouting to other
> interface internally is NOT happening. I see two
> reasons which I need to
> resolve:
> 
> 1) Number of "hops" is set to 0. I need to change
> hops to >0 number. HOW?
> 
> 2) Routing is not done properly which I doubt this
> is the problem. Is
> there any easy way to dump the eCos route table and
> manipulate it? thanks.
> 
> Michael
> 
> 
> BOOTP[eth0] op: REPLY
>        htype: Ethernet
>         hlen: 6
>         hops: 0
>          xid: 0x0
>         secs: 0
>        flags: 0x0
>        hw_addr: 02:10:12:01:00:08
>      client IP: 192.168.1.8
>          my IP: 192.168.1.8
>      server IP: 192.168.1.8
>     gateway IP: 192.168.1.8
>   options:
>         subnet mask: 255.255.255.0
>        IP broadcast: 192.168.1.255
>             gateway: 192.168.1.8
> BOOTP[eth1] op: REPLY
>        htype: Ethernet
>         hlen: 6
>         hops: 0
>          xid: 0x0
>         secs: 0
>        flags: 0x0
>        hw_addr: 02:10:12:01:00:09
>      client IP: 192.168.2.8
>          my IP: 192.168.2.8
>      server IP: 192.168.2.8
>     gateway IP: 192.168.2.8
>   options:
>         subnet mask: 255.255.255.0
>        IP broadcast: 192.168.2.255
>             gateway: 192.168.2.8
> 
> 
> -- 
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



More information about the Ecos-discuss mailing list