From: marko Date: Thu, 17 Nov 2005 13:25:22 +0000 (+0000) Subject: In Ethereal menu display IPv4 / IPv6 addresses associated with the X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=9cc1c3e622c3838932860ff00f37fdcfa52f45cd;p=imunes.git In Ethereal menu display IPv4 / IPv6 addresses associated with the target interface. Bug found by: Submitted by: Requested by: Gledec Reviewed by: Approved by: Obtained from: --- diff --git a/editor.tcl b/editor.tcl index a0e3ce2..906b4ad 100755 --- a/editor.tcl +++ b/editor.tcl @@ -769,7 +769,14 @@ proc button3node { c x y } { .button3menu add cascade -label "Ethereal" \ -menu .button3menu.ethereal foreach ifc [ifcList $node] { - .button3menu.ethereal add command -label "$ifc" \ + set label "$ifc" + if { [getIfcIPv4addr $node $ifc] != "" } { + set label "$label ([getIfcIPv4addr $node $ifc])" + } + if { [getIfcIPv6addr $node $ifc] != "" } { + set label "$label ([getIfcIPv6addr $node $ifc])" + } + .button3menu.ethereal add command -label $label \ -command "startethereal $node $ifc" } } else {