]> git.entuzijast.net Git - imunes.git/commitdiff
implementirano pokretanje Wiresharka na odabranom linku (bridge-u)
authorKosta Pribić <kosta.pribic@gmail.com>
Tue, 8 Sep 2009 19:55:34 +0000 (21:55 +0200)
committerKosta Pribić <kosta.pribic@gmail.com>
Tue, 8 Sep 2009 19:55:34 +0000 (21:55 +0200)
editor.tcl

index 60a6dc76e0143453ec98af2e6afe73a5b0e5164e..f3e2adeea92962e1023db57fb5e1d7b4a1a382ac 100755 (executable)
@@ -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 " " &
 }