projects
/
connman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added vcs git path and link to homepage.
[connman]
/
plugins
/
ethernet.c
diff --git
a/plugins/ethernet.c
b/plugins/ethernet.c
index
4ef163c
..
3013271
100644
(file)
--- a/
plugins/ethernet.c
+++ b/
plugins/ethernet.c
@@
-35,11
+35,10
@@
#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/device.h>
#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/device.h>
+#include <connman/inet.h>
#include <connman/rtnl.h>
#include <connman/log.h>
#include <connman/rtnl.h>
#include <connman/log.h>
-#include "inet.h"
-
struct ethernet_data {
int index;
unsigned flags;
struct ethernet_data {
int index;
unsigned flags;
@@
-51,7
+50,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);
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) {
if ((ethernet->flags & IFF_UP) != (flags & IFF_UP)) {
if (flags & IFF_UP) {
@@
-118,7
+117,7
@@
static int ethernet_enable(struct connman_device *device)
DBG("device %p", device);
DBG("device %p", device);
- return inet_ifup(ethernet->index);
+ return connman_inet_ifup(ethernet->index);
}
static int ethernet_disable(struct connman_device *device)
}
static int ethernet_disable(struct connman_device *device)
@@
-127,7
+126,7
@@
static int ethernet_disable(struct connman_device *device)
DBG("device %p", device);
DBG("device %p", device);
- return inet_ifdown(ethernet->index);
+ return connman_inet_ifdown(ethernet->index);
}
static struct connman_device_driver ethernet_driver = {
}
static struct connman_device_driver ethernet_driver = {
@@
-150,4
+149,4
@@
static void ethernet_exit(void)
}
CONNMAN_PLUGIN_DEFINE(ethernet, "Ethernet interface plugin", VERSION,
}
CONNMAN_PLUGIN_DEFINE(ethernet, "Ethernet interface plugin", VERSION,
- ethernet_init, ethernet_exit)
+ CONNMAN_PLUGIN_PRIORITY_DEFAULT, ethernet_init, ethernet_exit)