From 7e638057089bb9d599cd35d4673aef70e0ae58a1 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 5 Sep 2014 11:17:17 -0700 Subject: Qt: Add the "Map" button to the Endpoints dialog. Move the map creation code from ui/gtk/hostlist_table.c to ui/traffic_table_ui.c. Add CMake commands to copy ipmap.html to the run directory so that WIRESHARK_RUN_FROM_BUILD_DIRECTORY works for the endpoint map. Not sure if they're entirely correct but they appear to work. Add boundary checkes to geoip_db_lookup_ipv[46]. To do: - It looks like there are prettier maps and newer APIs that we might want to use. Change-Id: Ie06992c9bc9c9aa683328aecab3f5f69c9cab966 Reviewed-on: https://code.wireshark.org/review/4011 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- ui/traffic_table_ui.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ui/traffic_table_ui.h') diff --git a/ui/traffic_table_ui.h b/ui/traffic_table_ui.h index 9f3bd061ba..3edf13b0fd 100644 --- a/ui/traffic_table_ui.h +++ b/ui/traffic_table_ui.h @@ -72,6 +72,19 @@ extern const char *endp_column_titles[ENDP_NUM_COLUMNS]; extern const char *endp_conn_title; +#ifdef HAVE_GEOIP +/** Create an HTML file containing a map showing the geograpical + * locations of IPv4 and IPv6 addresses. The map is named "ipmap.html". + * + * @param [in] endp_array GArray of hostlist_talker_t structs. + * @param [in,out] err_str Set to error string on failure. Error string must + * be g_freed. May be NULL. + * @return Path of the map file if it was successfully written or NULL + * on failure. The path must be g_freed. + */ +gchar *create_endpoint_geoip_map(const GArray *endp_array, gchar **err_str); +#endif + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.1