Re: [RTnet-developers] Ethernet IP
Brought to you by:
bet-frogger,
kiszka
|
From: Jan K. <jan...@we...> - 2011-01-26 08:34:45
|
On 2011-01-19 00:48, Glen Wernersbach wrote:
> Hi All,
>
> Well, I now have script to the point where I an ping non RTNET devices. I am
> now trying to get my RTNET stack to accept and send TCP and UDP packets
> from/to non RTNET stack devices.
>
> Again, I am only using RTNET for the real time NIC, UDP and TCP drivers.
>
> The Ethernet IP spec makes use of Administrative scoping broad cast address.
> To get my program working on non RTNET stack, I have to issue this routing
> command:
> route add -net 224.0.0.0 netmask 240.0.0.0 dev eth3
>
> While the actual scope could be less than the command above, do you know how
> I would do the same command with RTROUTE which has difference syntax.
>
For sending any IP frame to and RTnet segment, you need to specify both
the destination device ("rtethX") and the destination MAC which is
FF:FF:FF:FF:FF:FF in this case. However, you can't specify this for a
complete range of addresses like in the above case, you need to tell the
precise 224.x.x.x address(es). Network routes are also possible, but
they are then targeting a specific gateway via its IP.
More on this in Documentation/README.routing.
Jan
|