aboutsummaryrefslogtreecommitdiffstats
path: root/ui/traffic_table_ui.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-09-05 11:17:17 -0700
committerGerald Combs <gerald@wireshark.org>2014-09-17 20:04:28 +0000
commit7e638057089bb9d599cd35d4673aef70e0ae58a1 (patch)
treece2f546bac9c6c8bcac74b0d5ba0424ddefad0ca /ui/traffic_table_ui.h
parent478fab5206bf30a639ec9ba71edff2fb6ec2cad4 (diff)
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 <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/traffic_table_ui.h')
-rw-r--r--ui/traffic_table_ui.h13
1 files changed, 13 insertions, 0 deletions
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 */