summaryrefslogtreecommitdiff
path: root/extcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/extcap.c b/extcap.c
index f02f86f678..339021971b 100644
--- a/extcap.c
+++ b/extcap.c
@@ -428,6 +428,32 @@ extcap_get_if_configuration(const char * ifname) {
return ret;
}
+gboolean
+extcap_has_configuration(const char * ifname) {
+ GList * arguments = 0;
+ GList * walker = 0, * item = 0;
+
+ gboolean found = FALSE;
+
+ arguments = extcap_get_if_configuration((const char *)( ifname ) );
+ walker = g_list_first(arguments);
+
+ while ( walker != NULL && ! found )
+ {
+ item = g_list_first((GList *)(walker->data));
+ while ( item != NULL && ! found )
+ {
+ if ( (extcap_arg *)(item->data) != NULL )
+ found = TRUE;
+
+ item = item->next;
+ }
+ walker = walker->next;
+ }
+
+ return found;
+}
+
void extcap_cleanup(capture_options * capture_opts) {
interface_options interface_opts;
guint icnt = 0;