diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-02-23 20:12:06 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-02-23 20:12:06 +0100 |
commit | cb27c17378552b6f4ab86c5d28af716a159c28b7 (patch) | |
tree | 1022fb5bd36b5abd996f82e0e7f9dba4740ce153 /include/ipconfig.h | |
parent | c30057af5e6db26136343570d72e14782538405b (diff) | |
download | connman-cb27c17378552b6f4ab86c5d28af716a159c28b7.tar.gz connman-cb27c17378552b6f4ab86c5d28af716a159c28b7.tar.bz2 connman-cb27c17378552b6f4ab86c5d28af716a159c28b7.zip |
ipconfig: Fix IP setters
Diffstat (limited to 'include/ipconfig.h')
-rw-r--r-- | include/ipconfig.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/ipconfig.h b/include/ipconfig.h index 7d62330e..fd6d8718 100644 --- a/include/ipconfig.h +++ b/include/ipconfig.h @@ -43,8 +43,14 @@ struct connman_ipaddress { struct connman_ipaddress *connman_ipaddress_alloc(int family); void connman_ipaddress_free(struct connman_ipaddress *ipaddress); -void connman_ipaddress_set(struct connman_ipaddress *ipaddress, - const char *address, const char *netmask, const char *gateway); +int connman_ipaddress_set_ipv4(struct connman_ipaddress *ipaddress, + const char *address, const char *netmask, + const char *gateway); +int connman_ipaddress_set_ipv6(struct connman_ipaddress *ipaddress, + const char *address, const char *gateway, + unsigned char prefix_length); +void connman_ipaddress_set_peer(struct connman_ipaddress *ipaddress, + const char *peer); void connman_ipaddress_clear(struct connman_ipaddress *ipaddress); void connman_ipaddress_copy(struct connman_ipaddress *ipaddress, struct connman_ipaddress *source); @@ -88,9 +94,6 @@ const char *connman_ipconfig_get_ifname(struct connman_ipconfig *ipconfig); void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig, const struct connman_ipconfig_ops *ops); -int connman_ipaddress_set_ipv6(struct connman_ipaddress *ipaddress, - const char *address, const char *gateway, - unsigned char prefix_length); int connman_ipconfig_set_method(struct connman_ipconfig *ipconfig, enum connman_ipconfig_method method); void connman_ipconfig_bind(struct connman_ipconfig *ipconfig, |