aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.h
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-09-12 06:35:22 +0100
committerMichael Mann <mmann78@netscape.net>2015-09-25 21:12:01 +0000
commit26ebfef4bb0e39ea8f0114ec20803bc9554465f8 (patch)
tree6f100d114b710daea973d5282db51363d47fff87 /epan/addr_resolv.h
parent3b04a89828a12ee71aa6693aadb900862c9d3c75 (diff)
Don't display duplicate addresses without name resolution enabled
Change-Id: Ieb88e2632401cbf50c4ae51768a64df64d54a45d Reviewed-on: https://code.wireshark.org/review/10497 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r--epan/addr_resolv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h
index c60e2c5180..10f5cd6a94 100644
--- a/epan/addr_resolv.h
+++ b/epan/addr_resolv.h
@@ -60,6 +60,12 @@ typedef struct _e_addr_resolve {
gboolean load_hosts_file_from_profile_only; /**< Whether to only load the hosts in the current profile, not hosts files */
} e_addr_resolve;
+#define ADDR_RESOLV_MACADDR(at) \
+ (((at)->type == AT_ETHER))
+
+#define ADDR_RESOLV_NETADDR(at) \
+ (((at)->type == AT_IPv4) || ((at)->type == AT_IPv6) || ((at)->type == AT_IPX))
+
struct hashether;
typedef struct hashether hashether_t;