Commit 65c0c8fd authored by David Johnson's avatar David Johnson

Don't build an "Internet" lan for a single node.

parent 2f373d5b
......@@ -132,10 +132,13 @@ for {set i 1} {$i <= $num_nodes} {incr i} {
#
# This makes "the Internet" an addressable object in your topology - it will,
# for example, enable you to set up automatic tcpdump on it.
# for example, enable you to set up automatic tcpdump on it. However, you
# must have more than one node in your experiment!
#
set internet [$ns make-lan "$inet_string" 100Mbps 0ms]
tb-set-lan-protocol $internet "ipv4"
if { $num_nodes > 1 } {
set internet [$ns make-lan "$inet_string" 100Mbps 0ms]
tb-set-lan-protocol $internet "ipv4"
}
#
# Boilerplate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment