equal
deleted
inserted
replaced
30 # |
30 # |
31 # Settings for the socket based console protocol. |
31 # Settings for the socket based console protocol. |
32 # (this interprets user commands) |
32 # (this interprets user commands) |
33 # |
33 # |
34 console set addr 127.0.0.1 |
34 console set addr 127.0.0.1 |
35 console set port 5050 |
35 console set port 5051 |
36 |
36 |
37 # |
37 # |
38 # console set prompt <prompt> |
38 # console set prompt <prompt> |
39 # |
39 # |
40 # Set the prompt string. Helps if running multiple dtnd's |
40 # Set the prompt string. Helps if running multiple dtnd's |
172 # Add a route to the given bundle endpoint id pattern <dest> using the |
172 # Add a route to the given bundle endpoint id pattern <dest> using the |
173 # specified link name or peer endpoint. |
173 # specified link name or peer endpoint. |
174 # |
174 # |
175 # e.g. route add dtn://host.domain/* tcp0 |
175 # e.g. route add dtn://host.domain/* tcp0 |
176 |
176 |
|
177 set localhost [lindex [split [info hostname] .] 0] |
|
178 switch -exact $localhost { |
|
179 stewie { |
|
180 route local_eid dtn://stewie.dtn |
|
181 |
|
182 link add l-audrey 134.226.36.152:4557 ALWAYSON tcp |
|
183 route add dtn://audrey.dtn l-audrey |
|
184 |
|
185 link add l-basil 134.226.36.138:4557 ALWAYSON tcp |
|
186 route add dtn://basil.dtn l-basil |
|
187 |
|
188 route add dtn://terry.dtn/* dtn://audrey.dtn |
|
189 } |
|
190 audrey { |
|
191 route local_eid dtn://audrey.dtn |
|
192 |
|
193 route add dtn://terry.dtn/* dtn://terry.dtn |
|
194 |
|
195 route add dtn://stewie.dtn/* dtn://stewie.dtn |
|
196 } |
|
197 terry { |
|
198 route local_eid dtn://terry.dtn |
|
199 |
|
200 link add l-audrey 134.226.36.152:4557 ALWAYSON tcp |
|
201 route add dtn://audrey.dtn l-audrey |
|
202 route add dtn://audrey.dtn/* dtn://audrey.dtn |
|
203 |
|
204 route add dtn://stewie.dtn/* dtn://audrey.dtn |
|
205 } |
|
206 } |
|
207 |
|
208 |
177 ######################################## |
209 ######################################## |
178 # |
210 # |
179 # Service discovery |
211 # Service discovery |
180 # |
212 # |
181 ######################################## |
213 ######################################## |