Commit c681eefa authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add check to make sure that a remote node is used in a link only (lans

not allowed).
parent cb22afb3
......@@ -187,12 +187,16 @@ LanLink instproc fill_ips {} {
set isremote [expr $isremote + [$node set isremote]]
if {$ip != {}} {
if {$isremote} {
perror "Not allowed to specify IP subnet of a remote lan!"
perror "Not allowed to specify IP subnet of a remote link!"
}
set subnet [join [lrange [split $ip .] 0 2] .]
set ips($ip) 1
}
}
if {$isremote && [$self info class] != "Link"} {
perror "Not allowed to use a remote node in lan $self!"
return
}
set widearea $isremote
# If we couldn't find a subnet we ask the Simulator for one.
......
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