diff options
author | Binh Trinh <beango@gmail.com> | 2016-09-13 00:46:06 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-10-12 21:34:42 +0000 |
commit | 5ace3b9405e4845ad7df1a3b2966af7bca6c2194 (patch) | |
tree | bf6282ff95f812bdc5c6059d223bc970cdffc19e /epan/addr_resolv.h | |
parent | 04143d1100342353c95c87dcaaa8d82258c25ec3 (diff) |
MTP3: Added SS7 Point Code Name Resolution
bug: 7592
Change-Id: I1af2c5d6664e172c358cd19bc20e9352c2582eae
Reviewed-on: https://code.wireshark.org/review/17677
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r-- | epan/addr_resolv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h index cb8c3291d0..38827c442e 100644 --- a/epan/addr_resolv.h +++ b/epan/addr_resolv.h @@ -62,6 +62,7 @@ typedef struct _e_addr_resolve { gboolean use_external_net_name_resolver; /**< Whether to system's configured DNS server to resolve names */ gboolean load_hosts_file_from_profile_only; /**< Whether to only load the hosts in the current profile, not hosts files */ gboolean vlan_name; /**< Whether to resolve VLAN IDs to names */ + gboolean ss7pc_name; /**< Whether to resolve SS7 Point Codes to names */ } e_addr_resolve; #define ADDR_RESOLV_MACADDR(at) \ @@ -192,6 +193,14 @@ WS_DLL_PUBLIC const gchar *get_hostname6(const struct e_in6_addr *ad); "%02x:%02x:%02x:%02x:%02x:%02x" */ WS_DLL_PUBLIC const gchar *get_ether_name(const guint8 *addr); +/* get_hostname_ss7pc returns the logical name if found in ss7pcs file else + '\0' on the first call or the unresolved Point Code in the subsequent calls */ +const gchar *get_hostname_ss7pc(const guint8 ni, const guint32 pc); + +/* fill_unresolved_ss7pc initializes the unresolved Point Code Address string in the hashtable */ +void fill_unresolved_ss7pc(const gchar * pc_addr, const guint8 ni, const guint32 pc); + + /* Same as get_ether_name with tvb support */ WS_DLL_PUBLIC const gchar *tvb_get_ether_name(tvbuff_t *tvb, gint offset); |