From: marko Date: Sat, 10 Nov 2007 01:47:52 +0000 (+0000) Subject: Use a shorter name for the top-level vimage container holding all X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=ad6297206a186a29a15b3c152b7d3b741a6b302a;p=imunes.git Use a shorter name for the top-level vimage container holding all virtual nodes in an experiment, so that a string in form of ifname@eid.nodeid could fit into 15 characters or less for all node ids smaller than n1000. The 15 chatacter string length limitation is derived from the IF_NAMESIZE constant which applies when specifying interface names. Longer eids were previously causing trouble when attempting to open a bpf tap in child nodes. This change fixes bugzilla bug #2: http://imunes.tel.fer.hr/bugzilla/show_bug.cgi?id=2 Bug found by: miljenko at tel.fer.hr Submitted by: Reviewed by: Approved by: Obtained from: --- diff --git a/imunes.tcl b/imunes.tcl index ceda9a7..3777658 100755 --- a/imunes.tcl +++ b/imunes.tcl @@ -1,4 +1,4 @@ -# $Id: imunes.tcl,v 1.28 2007/11/01 17:31:05 marko Exp $ +# $Id: imunes.tcl,v 1.29 2007/11/10 01:47:52 marko Exp $ # # Copyright 2004, 2005 University of Zagreb, Croatia. All rights reserved. # @@ -51,7 +51,7 @@ #**** set execMode interactive -set eid imunes_[pid] +set eid i[format %04X [pid]] while { [string index [lindex $argv 0] 0] == "-" } { switch -exact -- [lindex $argv 0] {