From: Kosta Pribić Date: Tue, 8 Sep 2009 19:55:34 +0000 (+0200) Subject: implementirano pokretanje Wiresharka na odabranom linku (bridge-u) X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=d8a7b46a99557d4578e640d922923627619b3899;p=imunes.git implementirano pokretanje Wiresharka na odabranom linku (bridge-u) --- diff --git a/editor.tcl b/editor.tcl index 60a6dc7..f3e2ade 100755 --- a/editor.tcl +++ b/editor.tcl @@ -1334,8 +1334,15 @@ proc spawnShell { node cmd } { #**** proc startethereal { node iface } { upvar 0 ::cf::[set ::curcfg]::eid eid - - set interface "$iface@$eid\.$node" + global gui_unix gui_linux + + #OpenVZ - lokalni interface-i za VE-ve, imaju drukciju nomenklaturu + if { $gui_unix && $gui_linux } { + set interface "to_[set node]_[set iface]" + } else { + set interface "$iface@$eid\.$node" + } + nexec wireshark -i $interface -f " " & }