A Dimarts 27 Març 2007 19:56, Jan Kiszka va escriure:
> Leopold Palomo-Avellaneda wrote:
> > A Dimarts 27 Març 2007 13:10, M. Koehrer va escriure:
> >> Hi Leo,
> >>
> >> I did something similar.
> >> My approach is not really beautiful but I works nice.
> >> I call rtroute solicit in a sh-loop:
> >>
> >> for (( i=0; i<255; i++)); do
> >>    rtroute solicit 192.168.1.$i dev rteth0
> >> done
> >>
> >> This is fairly fast and works!
> >> However, a "smoother" way to do that (directly in rtroute) would be
> >> actually better...
>
> [The smoothest way ARP maintenance is actually RTcfg, but that one was
> designed for RTmac scenarios.]
>
> >> You can see the routing list by calling rtroute without arguments.
> >
> > thanks Mathias,
> >
> > it really works nice. Maybe adding some parameters in the rtconf file
> > with the number of nodes, or something similar would be better. To think
> > it.
>
> Patches against the rtnet script or whatever are always welcome.

my rtnet-notdma differs form the original:

3c3
< # script for loading/unloading RTnet
---
> # script for loading/unloading RTnet, RTmac/TMDA, and RTcap
26,29c26
<
<     $0 [-cf <config-file>] [-v] {notdma}
<         Start only in without tdma
<
---
>
65,78d61
< init_notdma() {
<     insmod $RTNET_MOD/rtnet$MODULE_EXT >/dev/null || exit 1
<     insmod $RTNET_MOD/rtipv4$MODULE_EXT >/dev/null || exit 1
<     insmod $RTNET_MOD/rtpacket$MODULE_EXT >/dev/null || exit 1
<     insmod $RTNET_MOD/$RT_DRIVER$MODULE_EXT $RT_DRIVER_OPTIONS >/dev/null || 
exit 1
<
<     insmod $RTNET_MOD/rt_loopback$MODULE_EXT >/dev/null || exit 1
<
<     $RTIFCONFIG rtlo up 127.0.0.1
<     insmod $RTNET_MOD/rtcfg$MODULE_EXT >/dev/null
< }
<
<
<
271d253
<     RTROUTE="debug_func $RTROUTE"
339,347d320
<
<      notdma)
<         init_notdma
<
<         $RTIFCONFIG rteth0 up $IPADDR $NETMASK_OPT
<       for (( i=0; i<255; i++)); do
<          $RTROUTE solicit 192.168.1.$i dev rteth0
<       done
<       ;;

you have also to add in the rtnet.conf:
RTROUTE="${exec_prefix}/sbin/rtroute"

this script need to improve a part, because it supposes that the IP address is 
192.168.1.X, and it's not correct always. But I don't know how to make some 
edit of the  $IPADDR var in the way of have the XXX.XXX.XXX. part. Also, the 
loop should look the netmask to calculate till when the for have to arrive. 
Well, all of this for the v.0.2 ....

Regards,

Leo



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to