diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-08-05 16:36:24 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-08-05 16:36:24 +0000 |
commit | 21d5a76a68c866418aef8753383e3e43731c2e1b (patch) | |
tree | 7eec3f3a93808cc3e3911d40ee52d3145bea59ea /epan/addr_resolv.h | |
parent | 86472b67dfb532804a2da68a7db41061c7400fe5 (diff) |
Use a hastable for port resolution. Currently one table for the 4 protocols with resolution. SCTP and DCCP should perhaps be splited out to their own tables.
svn path=/trunk/; revision=51153
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r-- | epan/addr_resolv.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h index b685196a5b..9a09acc955 100644 --- a/epan/addr_resolv.h +++ b/epan/addr_resolv.h @@ -63,6 +63,13 @@ typedef struct hashether { char resolved_name[MAXNAMELEN]; } hashether_t; +typedef struct serv_port { + gchar *udp_name; + gchar *tcp_name; + gchar *sctp_name; + gchar *dccp_name; +} serv_port_t; + /* * Flag controlling what names to resolve. */ @@ -315,6 +322,9 @@ WS_DLL_PUBLIC GHashTable *get_eth_hashtable(void); WS_DLL_PUBLIC +GHashTable *get_serv_port_hashtable(void); + +WS_DLL_PUBLIC void initialize_ethers(void); WS_DLL_PUBLIC |