diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-06-26 12:23:12 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-06-26 12:23:12 +0200 |
commit | f6894721181f66414f91463b1baa83a7a68e19f0 (patch) | |
tree | b1f45dd347a669ecf8ce5017ef47be3ecc776567 /include | |
parent | 9cd35e56c397955f6daceb5b8d8ba524e7564d84 (diff) | |
download | connman-f6894721181f66414f91463b1baa83a7a68e19f0.tar.gz connman-f6894721181f66414f91463b1baa83a7a68e19f0.tar.bz2 connman-f6894721181f66414f91463b1baa83a7a68e19f0.zip |
Add some more INET helpers
Diffstat (limited to 'include')
-rw-r--r-- | include/inet.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/inet.h b/include/inet.h index 3aacbdc2..1f80b74a 100644 --- a/include/inet.h +++ b/include/inet.h @@ -26,6 +26,8 @@ extern "C" { #endif +#include <arpa/inet.h> + #include <connman/device.h> extern int connman_inet_ifindex(const char *name); @@ -36,6 +38,11 @@ extern int connman_inet_ifdown(int index); extern struct connman_device *connman_inet_create_device(int index); +extern int connman_inet_set_address(int index, struct in_addr address, + struct in_addr netmask, struct in_addr broadcast); +extern int connman_inet_clear_address(int index); +extern int connman_inet_set_gateway(int index, struct in_addr gateway); + #ifdef __cplusplus } #endif |