diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-07-02 16:17:20 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-07-03 02:21:20 +0000 |
commit | df5a315048e9b318f7862901c1bd40fa2c08dad5 (patch) | |
tree | 5a098c4f335fcdf485aa3e9f150f44aff92f8166 /epan/addr_resolv.h | |
parent | ed21afa9521a930c96c69ff11b13b54ca006767e (diff) |
Fix address resolution for columns.
Have address_to_name() be a routine that takes an address and returns a
string with a "sufficiently long" lifetime for use in columns, using the
address type's addr_name_res_str routine for most address types, rather
than having a too-small set of address types wired into it. It replaces
both the internal solve_address_to_name() routine and get_addr_name(),
and can, for example, handle the special WLAN address types rather than
leaving them unresolved even with an ethers file.
Change-Id: Id09bc412adf5d2752155650a14a77c5378af2e42
Reviewed-on: https://code.wireshark.org/review/9475
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r-- | epan/addr_resolv.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h index d6ac3a559e..25bd0156d1 100644 --- a/epan/addr_resolv.h +++ b/epan/addr_resolv.h @@ -131,20 +131,6 @@ extern gchar *dccp_port_to_display(wmem_allocator_t *allocator, guint port); WS_DLL_PUBLIC gchar *sctp_port_to_display(wmem_allocator_t *allocator, guint port); /* - * address_to_display takes as input an "address", as defined in address.h */ -/* it returns a string that contains: */ -/* - if the address is of a type that can be translated into a name, and the user */ -/* has activated name resolution, the translated name */ -/* - if the address is of type AT_NONE, a pointer to the string "NONE" */ -/* - if the address is of any other type, the result of address_to_str on the argument, */ -/* which should be a string representation for the answer -e.g. "10.10.10.10" for IPv4 */ -/* address 10.10.10.10 */ -WS_DLL_PUBLIC -const gchar *address_to_display(wmem_allocator_t *allocator, const address *addr); - -const gchar *get_addr_name(const address *addr); - -/* * Asynchronous host name lookup initialization, processing, and cleanup */ |