From 20e7e12695751f98cd85cae133995a94b3956fbd Mon Sep 17 00:00:00 2001 From: marko Date: Thu, 30 Aug 2007 18:54:35 +0000 Subject: [PATCH] ngnodemap must be set for rj45 type nodes as well, otherwise deployCfg would break when attempting to connect an rj45 node to whatever is on the other side of the link. With this change plus a kernel-level fix to be submitted to p4 shortly communication to external world via "rj45" nodes should work properly. Bug found by: Submitted by: Reviewed by: Approved by: Obtained from: --- rj45.tcl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rj45.tcl b/rj45.tcl index 7de56a5..48a3744 100755 --- a/rj45.tcl +++ b/rj45.tcl @@ -1,4 +1,4 @@ -# $Id: rj45.tcl,v 1.9 2007/05/07 08:43:20 ana Exp $ +# $Id: rj45.tcl,v 1.10 2007/08/30 18:54:35 marko Exp $ # # Copyright 2005 University of Zagreb, Croatia. All rights reserved. # @@ -77,7 +77,10 @@ proc $MODULE.layer {} { #**** proc $MODULE.instantiate { eid node } { + global ngnodemap + set ifname [getNodeName $node] + set ngnodemap($ifname) $ifname nexec ifconfig $ifname up promisc } -- 2.39.5