diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-10-10 19:17:48 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-10-10 19:17:48 +0000 |
commit | d038be780b817e8c0b0a2b5ed66f37fbaeda63e9 (patch) | |
tree | 96af254b6e6b30ddeea255a4402ce3cac6958fcf /epan/addr_resolv.h | |
parent | f29544f9df11fec5ab0f051a58c775365d6e368a (diff) | |
download | wireshark-d038be780b817e8c0b0a2b5ed66f37fbaeda63e9.tar.gz wireshark-d038be780b817e8c0b0a2b5ed66f37fbaeda63e9.tar.bz2 wireshark-d038be780b817e8c0b0a2b5ed66f37fbaeda63e9.zip |
Flag the addresses used in the trace which has been resolved and only add those to the list used to create the NRB.
svn path=/trunk/; revision=52504
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r-- | epan/addr_resolv.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h index d6e2f6e506..39c463b4cc 100644 --- a/epan/addr_resolv.h +++ b/epan/addr_resolv.h @@ -73,23 +73,25 @@ typedef struct serv_port { } serv_port_t; /* - * XXX Some of this is duplicated in addrinfo_list. We may want to replace the - * addr and name parts with a struct addrinfo or create our own addrinfo-like - * struct that simply points to the data below. + * */ +#define DUMMY_ADDRESS_ENTRY 1<<0 +#define TRIED_RESOLVE_ADDRESS 1<<1 +#define RESOLVED_ADDRESS_USED 1<<2 + +#define DUMMY_AND_RESOLVE_FLGS 3 +#define USED_AND_RESOLVED_MASK 1+4 typedef struct hashipv4 { - guint addr; - gboolean is_dummy_entry; /* name is IPv4 address in dot format */ - gboolean resolve; /* already tried to resolve it */ - gchar ip[16]; - gchar name[MAXNAMELEN]; + guint addr; + guint8 flags; /* B0 dummy_entry, B1 resolve, B2 If the address is used in the trace */ + gchar ip[16]; + gchar name[MAXNAMELEN]; } hashipv4_t; typedef struct hashipv6 { struct e_in6_addr addr; - gboolean is_dummy_entry; /* name is IPv6 address in colon format */ - gboolean resolve; /* */ + guint8 flags; /* B0 dummy_entry, B1 resolve, B2 If the address is used in the trace */ gchar ip6[MAX_IP6_STR_LEN]; /* XX */ gchar name[MAXNAMELEN]; } hashipv6_t; |