From 3f8956f4577e62a76e9ff5547661c2b883ae3f77 Mon Sep 17 00:00:00 2001 From: marko Date: Sun, 14 Aug 2005 15:35:09 +0000 Subject: [PATCH] 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: --- exec.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] -- 2.39.5