Hi,

now that I can play more with rtnet I have more doubts that I would like to 
share to try to find the light in this dark path ....

- first of all, it's convenient that I erase /dev/rtnet every time that I 
unloaded rtnet?

- I have found a correct route table playing with the times and the order. For 
example, this script shows a correct route table. This is normal?

-----------------------------------------------------------------------
#!/bin/sh
echo "Creating the device"
mknod /dev/rtnet c 10 240;

echo "Loading rtnet module"
insmod /usr/local/rtnet/modules/rtnet.ko;

echo "Loading rtipv4 module"
insmod /usr/local/rtnet/modules/rtipv4.ko;

echo "Loading rtpacket module"
insmod /usr/local/rtnet/modules/rtpacket.ko;

echo "Loading rt_loopback module"
insmod /usr/local/rtnet/modules/rt_loopback.ko;

echo "Loading rt_e1000 driver"
insmod /usr/local/rtnet/modules/rt_e1000.ko;

echo "Loading the capture interface module"
insmod /usr/local/rtnet/modules/rtcap.ko;

echo "Configuring the loopback"
/usr/local/rtnet/sbin/rtifconfig rtlo up 127.0.0.1

echo "Configuring the rteth0 interface"
/usr/local/rtnet/sbin/rtifconfig rteth0 up 10.0.0.1 netmask 255.255.255.0;

echo "Waiting 4 seconds ...."
sleep 4;

echo "Configuring the rteth1 interface"
/usr/local/rtnet/sbin/rtifconfig rteth1 up 10.0.1.1 netmask 255.255.255.0;

echo "Waiting 4 seconds ...."
sleep 4;

echo "Attaching explicit to the rteth0 interface"
for((i=1;i<5;i++)); do
/usr/local/rtnet/sbin/rtroute add 10.0.0.$i 00:1b:21:05:0c:fc dev rteth0;
echo "Attached 10.0.0.$i to rteth0"
done

echo "Attaching explicit to the rteth1 interface"
for((i=1;i<5;i++)); do
/usr/local/rtnet/sbin/rtroute add 10.0.1.$i 00:1b:21:05:0c:b6 dev rteth1;
echo "Attached 10.0.1.$i to rteth1"
done

echo "The final route table"
/usr/local/rtnet/sbin/rtroute
-------------------------------------------------------------


- I was playing with rtnet some time ago but with rtai. I looked the examples. 
Now, I'm trying to play with xenomai, but I have found that the examples some 
two folders: native and posix. The native use the rt**** calls but the posix 
use a _normal_ net calls. Looking on the wiki, I have found this:

TODO: explain differences of native rt_dev_xxx vs. POSIX service calls (with 
Xenomai)

could someone tell me something? Probably it's no the same, but this means 
that in xenomai I can use normal net calls to use a rtnet interface in 
realtime?

Regards,

Leo


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
RTnet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to