diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-05-21 01:02:31 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-05-21 01:02:31 -0700 |
commit | 36b19e423a2d66c0c9d722d4ee2fc65c03163b43 (patch) | |
tree | a8e75b8c9b59b56397591f6cebde5d456d8fa30a /plugins/ethernet.c | |
parent | 91a77ed7265af5b9bf10784292945abb8db940ce (diff) | |
download | connman-36b19e423a2d66c0c9d722d4ee2fc65c03163b43.tar.gz connman-36b19e423a2d66c0c9d722d4ee2fc65c03163b43.tar.bz2 connman-36b19e423a2d66c0c9d722d4ee2fc65c03163b43.zip |
Export and use more generic INET helpers
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r-- | plugins/ethernet.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c index e6d45ff4..30132713 100644 --- 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> +#include <connman/inet.h> #include <connman/rtnl.h> #include <connman/log.h> -#include "inet.h" - struct ethernet_data { int index; unsigned flags; @@ -118,7 +117,7 @@ static int ethernet_enable(struct connman_device *device) DBG("device %p", device); - return inet_ifup(ethernet->index); + return connman_inet_ifup(ethernet->index); } static int ethernet_disable(struct connman_device *device) @@ -127,7 +126,7 @@ static int ethernet_disable(struct connman_device *device) DBG("device %p", device); - return inet_ifdown(ethernet->index); + return connman_inet_ifdown(ethernet->index); } static struct connman_device_driver ethernet_driver = { |