Don't enumerate network pseudo devices
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 9 Dec 2008 09:04:48 +0000 (10:04 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 9 Dec 2008 09:04:48 +0000 (10:04 +0100)
src/element.c

index 407afc7..9dd3039 100644 (file)
@@ -742,6 +742,10 @@ static gboolean append_path(GNode *node, gpointer user_data)
                                        filter->type != element->type)
                return FALSE;
 
+       if (filter->type == CONNMAN_ELEMENT_TYPE_DEVICE &&
+                       element->subtype == CONNMAN_ELEMENT_SUBTYPE_NETWORK)
+               return FALSE;
+
        dbus_message_iter_append_basic(filter->iter,
                                DBUS_TYPE_OBJECT_PATH, &element->path);