diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-10-07 03:50:16 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-10-07 03:50:16 +0000 |
commit | ab9b8d36b55fbeefb22dac721193b79e578a8929 (patch) | |
tree | 07b4c812d77e1f31fdd5e928891c5325f47c1775 /gtk/cfilter_combo_utils.h | |
parent | 5a244d166b223e904fdea142a495eba38f9fcb28 (diff) |
Save the capture filter in the recent list iff the capture succeeds.
Checking the syntax involves opening a device, which
1) might not succeed
and
2) might tie up a BPF device or otherwise consume resources
so we leave it up to the capture operation to do the checking.
svn path=/trunk/; revision=12225
Diffstat (limited to 'gtk/cfilter_combo_utils.h')
-rw-r--r-- | gtk/cfilter_combo_utils.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/cfilter_combo_utils.h b/gtk/cfilter_combo_utils.h index 08f4b41746..09ff0368af 100644 --- a/gtk/cfilter_combo_utils.h +++ b/gtk/cfilter_combo_utils.h @@ -25,13 +25,6 @@ extern void cfilter_combo_recent_write_all(FILE *rf); extern gboolean cfilter_combo_add_recent(gchar *s); -/** Check the syntax of a capture filter string. This is done by calling pcap_open_live(). - * - * @param interface_name The interface name to be opened by pcap_open_live(). - * @param filter_str The filter string to be verified. - */ -extern gboolean check_capture_filter_syntax(gchar *interface_name, gchar *filter_str); - #define E_CFILTER_CM_KEY "capture_filter_combo" #define E_CFILTER_FL_KEY "capture_filter_list" #define RECENT_KEY_CAPTURE_FILTER "recent.capture_filter" |