From: marko Date: Sun, 14 Aug 2005 15:35:09 +0000 (+0000) Subject: Fix the MAC address autogenerator which was not resetting after repeated X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=3f8956f4577e62a76e9ff5547661c2b883ae3f77;p=imunes.git Fix the MAC address autogenerator which was not resetting after repeated 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: --- diff --git a/exec.tcl b/exec.tcl index 661c23f..511c6bd 100755 --- 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]