I am using rtnet without rtmac/tdma.  I previously sent a patch that allows one to use the 
"rtnet" script and rtnet.conf in this configuration.  I would also like to be able to 
specify a list of IP addresses in rtnet.conf that are passed along to "rtroute solicit".  
I have attached patches for the rtnet and xenomai-3.git/next repositories.  I think others will 
find them useful.

-Jeff

(P.S. I am cross-posting this message to both rtnet-users and the xenomai 
mailing lists, since I have attached patches relevant to both git repositories. 
 I apologize to those who receive duplicate e-mails.)
diff --git a/tools/rtnet.conf.in b/tools/rtnet.conf.in
index aacc513..b12ddb7 100644
--- a/tools/rtnet.conf.in
+++ b/tools/rtnet.conf.in
@@ -7,6 +7,7 @@ prefix="@prefix@"
 exec_prefix="@exec_prefix@"
 RTNET_MOD="@RTNET_MODULE_DIR@"
 RTIFCONFIG="@sbindir@/rtifconfig"
+RTROUTE="@sbindir@/rtroute"
 RTCFG="@sbindir@/rtcfg"
 TDMACFG="@sbindir@/tdmacfg"
 
@@ -44,6 +45,13 @@ RTCAP="no"
 
 
 
+# RT routes to solicit
+#   Establish routes to each of the IP addresses in RT_SOLICIT_ROUTES.
+#   RT_SOLICIT_ROUTES="192.168.0.3 192.168.0.4"
+RT_SOLICIT_ROUTES=""
+
+
+
 # Common RTcfg stage 2 config data (master mode only)
 #   The TDMA_CONFIG file overrides this parameter.
 STAGE_2_SRC=""
diff --git a/tools/rtnet.in b/tools/rtnet.in
index b04e410..85b04e1 100755
--- a/tools/rtnet.in
+++ b/tools/rtnet.in
@@ -306,6 +306,14 @@ case "$1" in
             $RTCFG rteth0 ready
             echo
         fi
+
+        if [ ! "$RT_SOLICIT_ROUTES" = "" ]; then
+            echo "waiting to solicit routes"
+            sleep 3
+        fi
+        for ADDR in $RT_SOLICIT_ROUTES; do
+            $RTROUTE solicit $ADDR dev rteth0
+        done
         ;;
 
     stop)
diff --git a/utils/net/rtnet.conf.in b/utils/net/rtnet.conf.in
index 12335d2..9c0ce5a 100644
--- a/utils/net/rtnet.conf.in
+++ b/utils/net/rtnet.conf.in
@@ -7,6 +7,7 @@ prefix="@prefix@"
 exec_prefix="@exec_prefix@"
 RTNET_MOD="/lib/modules/`uname -r`/kernel/drivers/xenomai/net"
 RTIFCONFIG="@sbindir@/rtifconfig"
+RTROUTE="@sbindir@/rtroute"
 RTCFG="@sbindir@/rtcfg"
 TDMACFG="@sbindir@/tdmacfg"
 
@@ -44,6 +45,13 @@ RTCAP="no"
 
 
 
+# RT routes to solicit
+#   Establish routes to each of the IP addresses in RT_SOLICIT_ROUTES.
+#   RT_SOLICIT_ROUTES="192.168.0.3 192.168.0.4"
+RT_SOLICIT_ROUTES=""
+
+
+
 # Common RTcfg stage 2 config data (master mode only)
 #   The TDMA_CONFIG file overrides this parameter.
 STAGE_2_SRC=""
diff --git a/utils/net/rtnet.in b/utils/net/rtnet.in
index f81a7bb..8cef87c 100755
--- a/utils/net/rtnet.in
+++ b/utils/net/rtnet.in
@@ -306,6 +306,14 @@ case "$1" in
 	    $RTCFG rteth0 ready
 	    echo
 	fi
+
+	if [ ! "$RT_SOLICIT_ROUTES" = "" ]; then
+	    echo "waiting to solicit routes"
+	    sleep 3
+	fi
+	for ADDR in $RT_SOLICIT_ROUTES; do
+	    $RTROUTE solicit $ADDR dev rteth0
+	done
 	;;
 
     stop)
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to