Wireshark mailing list archives

duplicate outcome in tree


From: Brian Oleksa <oleksab () darkcornersoftware com>
Date: Wed, 27 Jan 2010 13:48:27 -0500

Wiresharkers

When I print out the ipv4 address in the tree... I get the following:

IPv4: 192.168.2.8 (192.168.2.8)

Why am I getting double ip addresses in the output..??

Here is my code:

        { &hf_helen_ipv4,
            { "IPv4", "helen.ipv4address", FT_IPv4, BASE_NONE, NULL, 0x0,
                "IPv4", HFILL}},

         guint32 addr;
         addr = tvb_get_ipv4(tvb,offset);
         proto_tree_add_item(helen_sub_tree, hf_helen_ipv4, tvb, offset, 
4, FALSE);


Thanks,
Brian


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: