diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-08-11 00:34:00 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-11 00:34:00 -0700 |
commit | 4415df317fd3c9356635703b1d3cdd329112caef (patch) | |
tree | 6e0d4293778c398395e9f8f5334f9200490633fe /include/ipconfig.h | |
parent | 00244ccfa4ee00b587de105acb02e42c8f90ad7a (diff) | |
download | connman-4415df317fd3c9356635703b1d3cdd329112caef.tar.gz connman-4415df317fd3c9356635703b1d3cdd329112caef.tar.bz2 connman-4415df317fd3c9356635703b1d3cdd329112caef.zip |
Add cleaner handling of IP address details
Diffstat (limited to 'include/ipconfig.h')
-rw-r--r-- | include/ipconfig.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/ipconfig.h b/include/ipconfig.h index a9f82851..83a8172d 100644 --- a/include/ipconfig.h +++ b/include/ipconfig.h @@ -32,6 +32,18 @@ extern "C" { * @short_description: Functions for IP configuration handling */ +struct connman_ipaddress { + unsigned char prefixlen; + char *local; + char *peer; + char *broadcast; +}; + +struct connman_ipaddress *connman_ipaddress_alloc(void); +void connman_ipaddress_free(struct connman_ipaddress *ipaddress); +void connman_ipaddress_copy(struct connman_ipaddress *ipaddress, + struct connman_ipaddress *source); + enum connman_ipconfig_type { CONNMAN_IPCONFIG_TYPE_UNKNOWN = 0, CONNMAN_IPCONFIG_TYPE_IPV4 = 1, @@ -70,6 +82,9 @@ void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig, int connman_ipconfig_set_method(struct connman_ipconfig *ipconfig, enum connman_ipconfig_method method); +void connman_ipconfig_bind(struct connman_ipconfig *ipconfig, + struct connman_ipaddress *ipaddress); + #define CONNMAN_IPCONFIG_PRIORITY_LOW -100 #define CONNMAN_IPCONFIG_PRIORITY_DEFAULT 0 #define CONNMAN_IPCONFIG_PRIORITY_HIGH 100 |