From c60fc54ed2177c27fb89f0414162da1f72a6f1e0 Mon Sep 17 00:00:00 2001 From: ahrenholz 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) --- gui/editor.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/editor.tcl b/gui/editor.tcl index 0e88eb06..53226c2e 100755 --- a/gui/editor.tcl +++ b/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