]> git.entuzijast.net Git - imunes.git/commitdiff
Use a shorter name for the top-level vimage container holding all
authormarko <marko>
Sat, 10 Nov 2007 01:47:52 +0000 (01:47 +0000)
committermarko <marko>
Sat, 10 Nov 2007 01:47:52 +0000 (01:47 +0000)
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:

imunes.tcl

index ceda9a7cbba78896a3de3784312a11223ba18e0b..37776582a83f924b3a2eeedc05a0c6ace09f3da8 100755 (executable)
@@ -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] {