]> git.entuzijast.net Git - imunes.git/commitdiff
Fix the MAC address autogenerator which was not resetting after repeated
authormarko <marko>
Sun, 14 Aug 2005 15:35:09 +0000 (15:35 +0000)
committermarko <marko>
Sun, 14 Aug 2005 15:35:09 +0000 (15:35 +0000)
instantiation of topologies, which could lead to overflows of the last
byte of the autogenerated MAC addresses.

Bug found by:
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:

exec.tcl

index 661c23fb4357e4c9331945504009076ff0ca1db5..511c6bd7cb2c3980184257f28f770ea4ed651712 100755 (executable)
--- a/exec.tcl
+++ b/exec.tcl
@@ -123,7 +123,6 @@ proc createIfc {type hook} {
 }
 
 
-set mac_byte5 0
 proc l3node.instantiate { eid node } {
     global mac_byte5
     set node_id "$eid\_$node"
@@ -190,6 +189,9 @@ proc l3node.nghook { eid node ifc } {
 proc deployCfg {} {
     global eid
     global nodes links supp_router_models
+    global mac_byte5
+
+    set mac_byte5 0
 
     set t_start [clock seconds]