From 4a847e83197fc8679adf6517636b8f499f62273f Mon Sep 17 00:00:00 2001 From: "ahrenholz@gmail.com" Date: Mon, 15 Sep 2014 19:15:35 +0000 Subject: [PATCH] fix bug #263 use correct interface name with Wireshark right-click menu (Boeing r187) --- trunk/gui/editor.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/gui/editor.tcl b/trunk/gui/editor.tcl index 0e88eb06..53226c2e 100755 --- a/trunk/gui/editor.tcl +++ b/trunk/gui/editor.tcl @@ -1475,7 +1475,9 @@ proc addInterfaceCommand { node parentmenu txt cmd state isnodecmd } { if { $isnodecmd } { ;# run command in a node set icmd "spawnShell $node \"$cmd $ifc\"" } else { ;# exec a command directly - set localifc $node.$ifc.$ssid + set nodenum [string range $node 1 end] + set ifnum [string range $ifc 3 end] + set localifc veth$nodenum.$ifnum.$ssid set icmd "exec $cmd $localifc &" } $childmenu add command -label "$ifc$addr" -state $state -command $icmd