diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2012-02-21 11:59:41 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2012-02-21 11:59:41 +0000 |
commit | b1fa4c19e643704927d09078780cb3b47815a231 (patch) | |
tree | 92fe3bc83abe8e93d7d20fe510e8811fa8bc7cbf /ui/gtk/capture_dlg.h | |
parent | f104bae88ac133ce0fb35bbd75db74ec2e3a6998 (diff) | |
download | wireshark-b1fa4c19e643704927d09078780cb3b47815a231.tar.gz |
From Irene Ruengeler:
* Add support in the GUI for pipes.
* Allow the local interfaces to be rescanned via the GUI.
* Allow remote interfaces to be added and deleted.
The GUI can be extended to support other ways of capturing.
svn path=/trunk/; revision=41105
Diffstat (limited to 'ui/gtk/capture_dlg.h')
-rw-r--r-- | ui/gtk/capture_dlg.h | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/ui/gtk/capture_dlg.h b/ui/gtk/capture_dlg.h index 602be8a8e3..1a268b3807 100644 --- a/ui/gtk/capture_dlg.h +++ b/ui/gtk/capture_dlg.h @@ -95,27 +95,31 @@ void capture_start_confirmed(void); void capture_air_cb(GtkWidget *widget, gpointer data); -#if 0 -/* - * We remember the capture settings for each interface when a capture - * is started on it; the next time we select that interface we start - * out with those settings. +#ifdef HAVE_PCAP_REMOTE +struct remote_host { + gchar *remote_host; /**< Host name or network address for remote capturing */ + gchar *remote_port; /**< TCP port of remote RPCAP server */ + gint auth_type; /**< Authentication type */ + gchar *auth_username; /**< Remote authentication parameters */ + gchar *auth_password; /**< Remote authentication parameters */ +}; + +#define RECENT_KEY_REMOTE_HOST "recent.remote_host" + +/** Write all remote hosts to the recent file * - * XXX - we currently only do that for monitor mode and the link-layer - * type; arguably we should do it for the snapshot length, and perhaps - * promiscuous mode. + * @param rf recent file */ -typedef struct { - gboolean monitor_mode; - int linktype; -} cap_settings_t; +void +capture_remote_combo_recent_write_all(FILE *rf); -/** Get capture settings for interface +/** Add a new remote host from the recent file * - * @param if_name interface name + * @param s string with hostname,port,auth_type + * @return TRUE if correctly added */ -cap_settings_t -capture_get_cap_settings (gchar *if_name); +gboolean +capture_remote_combo_add_recent(gchar *s); #endif GtkTreeModel* |