daemon/dtn.conf
changeset 1 44c5e3fa6d30
parent 0 2b3e5ec03512
--- a/daemon/dtn.conf	Thu Apr 21 14:57:45 2011 +0100
+++ b/daemon/dtn.conf	Tue Apr 26 14:43:43 2011 +0100
@@ -32,7 +32,7 @@
 # (this interprets user commands)
 #
 console set addr 127.0.0.1
-console set port 5050
+console set port 5051
 
 #
 # console set prompt <prompt>
@@ -174,6 +174,38 @@
 #
 # e.g. route add dtn://host.domain/* tcp0
 
+set localhost [lindex [split [info hostname] .] 0]
+switch -exact $localhost {
+    stewie {
+        route local_eid                 dtn://stewie.dtn
+
+        link  add l-audrey              134.226.36.152:4557 ALWAYSON tcp
+        route add dtn://audrey.dtn      l-audrey
+
+        link add l-basil                134.226.36.138:4557 ALWAYSON tcp
+        route add dtn://basil.dtn       l-basil
+
+        route add dtn://terry.dtn/*     dtn://audrey.dtn
+    }
+    audrey {
+        route local_eid                 dtn://audrey.dtn
+
+        route add dtn://terry.dtn/*     dtn://terry.dtn
+
+        route add dtn://stewie.dtn/*    dtn://stewie.dtn
+    }
+    terry {
+        route local_eid                 dtn://terry.dtn
+
+        link  add l-audrey              134.226.36.152:4557 ALWAYSON tcp
+        route add dtn://audrey.dtn      l-audrey
+        route add dtn://audrey.dtn/*    dtn://audrey.dtn
+
+        route add dtn://stewie.dtn/*    dtn://audrey.dtn
+    }
+}
+
+
 ########################################
 #
 # Service discovery