fix bug #263 use correct interface name with Wireshark right-click menu
(Boeing r187)
This commit is contained in:
parent
1973eb9313
commit
c60fc54ed2
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue