From 9cc1c3e622c3838932860ff00f37fdcfa52f45cd Mon Sep 17 00:00:00 2001 From: marko Date: Thu, 17 Nov 2005 13:25:22 +0000 Subject: [PATCH] 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: --- editor.tcl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 { -- 2.39.5