diff options
author | Sam Leffler <sleffler@google.com> | 2009-10-19 10:52:59 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-10-20 22:07:30 +0200 |
commit | 14921d074bd7f6d47bce8ad955baf088446e64ac (patch) | |
tree | 9e5eb6560b3ba6c0b3ea44a32b0da19a8086a1ed /src/inet.c | |
parent | 8ae3b2731826a64ac3469594414cfc5bd9d7ac06 (diff) | |
download | connman-14921d074bd7f6d47bce8ad955baf088446e64ac.tar.gz connman-14921d074bd7f6d47bce8ad955baf088446e64ac.tar.bz2 connman-14921d074bd7f6d47bce8ad955baf088446e64ac.zip |
Fix command line options for device filtering
Also re-implement -I option to filter devices discovered through netlink.
Diffstat (limited to 'src/inet.c')
-rw-r--r-- | src/inet.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -441,6 +441,11 @@ struct connman_device *connman_inet_create_device(int index) devname = connman_inet_ifname(index); if (devname == NULL) return NULL; + if (__connman_element_device_isfiltered(devname) == TRUE) { + connman_info("Ignoring network interface %s (filtered)", + devname); + return NULL; + } __connman_udev_get_devtype(devname); @@ -448,7 +453,8 @@ struct connman_device *connman_inet_create_device(int index) switch (type) { case CONNMAN_DEVICE_TYPE_UNKNOWN: - connman_info("Ignoring network interface %s", devname); + connman_info("Ignoring network interface %s (type unknown)", + devname); g_free(devname); return NULL; case CONNMAN_DEVICE_TYPE_ETHERNET: |