timeserver: Simplify timeserver IP address checking
[framework/connectivity/connman.git] / src / detect.c
index 97a8c60..f4b5d29 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2007-2010  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2012  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -51,7 +51,7 @@ static void detect_newlink(unsigned short type, int index,
 
        DBG("type %d index %d", type, index);
 
-       devtype = __connman_inet_get_device_type(index);
+       devtype = __connman_rtnl_get_device_type(index);
 
        switch (devtype) {
        case CONNMAN_DEVICE_TYPE_UNKNOWN:
@@ -63,6 +63,7 @@ static void detect_newlink(unsigned short type, int index,
                return;
        case CONNMAN_DEVICE_TYPE_ETHERNET:
        case CONNMAN_DEVICE_TYPE_WIFI:
+       case CONNMAN_DEVICE_TYPE_GADGET:
                break;
        }