fix bug #263 use correct interface name with Wireshark right-click menu

(Boeing r187)
This commit is contained in:
ahrenholz 2014-09-15 19:15:35 +00:00
parent 1973eb9313
commit c60fc54ed2

View file

@ -1475,7 +1475,9 @@ proc addInterfaceCommand { node parentmenu txt cmd state isnodecmd } {
if { $isnodecmd } { ;# run command in a node if { $isnodecmd } { ;# run command in a node
set icmd "spawnShell $node \"$cmd $ifc\"" set icmd "spawnShell $node \"$cmd $ifc\""
} else { ;# exec a command directly } 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 &" set icmd "exec $cmd $localifc &"
} }
$childmenu add command -label "$ifc$addr" -state $state -command $icmd $childmenu add command -label "$ifc$addr" -state $state -command $icmd