X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=plugins%2Fethernet.c;h=e6d45ff43d30d85bc09c65b4be6e88b063e06e50;hb=e23167d6ac70797fba8e4c8470329aeb8956218e;hp=1e797c089e621a864805540616e3b964382d3b2a;hpb=91620bc550205144b793d4f8e7d96f7b9f78e9c6;p=connman diff --git a/plugins/ethernet.c b/plugins/ethernet.c index 1e797c0..e6d45ff 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -24,13 +24,11 @@ #endif #include -#include -#include -#include -#include -#include -#include -#include +#include + +#ifndef IFF_LOWER_UP +#define IFF_LOWER_UP 0x10000 +#endif #include @@ -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)