Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Target IP address: jw-pi01.local ( field is arp.dst.proto_ipv4 defined in packet-arp.c:

    { &hf_arp_dst_proto_ipv4,
      { "Target IP address",            "arp.dst.proto_ipv4",
        FT_IPv4,        BASE_NONE,      NULL,   0x0,
        NULL, HFILL }},

proto_item_fill_label() in proto.c formats the string and calls for name resolution:

        case FT_IPv4:
            ipv4 = fvalue_get_uinteger(&fi->value);

            addr.type = AT_IPv4;
            addr.len  = 4;
   = &ipv4;

            if (hfinfo->display == BASE_NETMASK) {
                addr_str = (char*)address_to_str(NULL, &addr);
            } else {
                addr_str = (char*)address_with_resolution_to_str(NULL, &addr);
            g_snprintf(label_str, ITEM_LABEL_LENGTH,
                   "%s: %s", hfinfo->name, addr_str);
            wmem_free(NULL, addr_str);

If you are open to a Lua plugin, arp_host.lua available in the Contrib section of the Wireshark wiki, will add a new field that copies in the formatted/resolved address which can be added as a column and filtered on.