]> git.entuzijast.net Git - imunes.git/commitdiff
In Ethereal menu display IPv4 / IPv6 addresses associated with the
authormarko <marko>
Thu, 17 Nov 2005 13:25:22 +0000 (13:25 +0000)
committermarko <marko>
Thu, 17 Nov 2005 13:25:22 +0000 (13:25 +0000)
target interface.

Bug found by:
Submitted by:
Requested by: Gledec
Reviewed by:
Approved by:
Obtained from:

editor.tcl

index a0e3ce2a19c0767add3f74ec79fa2b39cc9c044b..906b4ad0c14c3837d800f0e6e35fcc71c8d0d68c 100755 (executable)
@@ -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 {