diff options
Diffstat (limited to 'extcap.h')
-rw-r--r-- | extcap.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -62,6 +62,12 @@ typedef struct _extcap_info { GList * interfaces; } extcap_info; +typedef enum { + EXTCAP_FILTER_UNKNOWN, + EXTCAP_FILTER_VALID, + EXTCAP_FILTER_INVALID +} extcap_filter_status; + struct _extcap_arg; #ifdef __cplusplus @@ -108,6 +114,16 @@ GList * extcap_get_if_configuration(const char * ifname); /** + * Check if the capture filter for the given interface name is valid. + * @param ifname Interface to check + * @param filter Capture filter to check + * @param err_str Error string returned if filter is invalid + * @return Filter check status. + */ +extcap_filter_status +extcap_verify_capture_filter(const char *ifname, const char *filter, gchar **err_str); + +/** * Frees the memory from extcap_get_if_configuration. * @param list The list returned by extcap_get_if_configuration. * @param free_args TRUE if all arguments in the list must be freed too or FALSE |