diff options
Diffstat (limited to 'gtk/capture_dlg.h')
-rw-r--r-- | gtk/capture_dlg.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gtk/capture_dlg.h b/gtk/capture_dlg.h index 96a8e4e878..c74792c43f 100644 --- a/gtk/capture_dlg.h +++ b/gtk/capture_dlg.h @@ -71,12 +71,26 @@ void capture_start_confirmed(void); void capture_air_cb(GtkWidget *widget, gpointer data); -/** Get linktype for interface +/* + * 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. + * + * 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. + */ +typedef struct { + gboolean monitor_mode; + int linktype; +} cap_settings_t; + +/** Get capture settings for interface * * @param if_name interface name */ -gint -capture_get_linktype (gchar *if_name); +cap_settings_t +capture_get_cap_settings (gchar *if_name); #ifdef HAVE_PCAP_REMOTE |