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:
-# $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.
#
#****
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] {