Use a more detailed list of special/default SSIDs
[connman] / plugins / ethernet.c
index 1e797c0..e6d45ff 100644 (file)
 #endif
 
 #include <errno.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-#include <linux/if.h>
-#include <linux/netlink.h>
-#include <linux/rtnetlink.h>
+#include <net/if.h>
+
+#ifndef IFF_LOWER_UP
+#define IFF_LOWER_UP   0x10000
+#endif
 
 #include <glib.h>
 
@@ -53,7 +51,7 @@ static void ethernet_newlink(unsigned flags, unsigned change, void *user_data)
        struct connman_device *device = user_data;
        struct ethernet_data *ethernet = connman_device_get_data(device);
 
-       DBG("index %d flags %ld change %ld", ethernet->index, flags, change);
+       DBG("index %d flags %d change %d", ethernet->index, flags, change);
 
        if ((ethernet->flags & IFF_UP) != (flags & IFF_UP)) {
                if (flags & IFF_UP) {
@@ -152,4 +150,4 @@ static void ethernet_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(ethernet, "Ethernet interface plugin", VERSION,
-                                               ethernet_init, ethernet_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, ethernet_init, ethernet_exit)