-/**
- * connman_ipconfig_bind:
- * @ipconfig: ipconfig structure
- * @ipaddress: ipaddress structure
- *
- * Bind IP address details to configuration
- */
-void connman_ipconfig_bind(struct connman_ipconfig *ipconfig,
- struct connman_ipaddress *ipaddress)
-{
- struct connman_ipconfig *origin;
-
- origin = ipconfig->origin ? ipconfig->origin : ipconfig;
-
- connman_ipaddress_copy(origin->address, ipaddress);
-
- connman_inet_set_address(origin->index, origin->address);
-}
-
-void __connman_ipconfig_set_element_ipv6_gateway(
- struct connman_ipconfig *ipconfig,
- struct connman_element *element)
-{
- element->ipv6.gateway = ipconfig->ipv6->address->gateway;
-}
-
-/*
- * FIXME: The element soulution should be removed in the future
- * Set IPv4 and IPv6 gateway
- */
-int __connman_ipconfig_set_gateway(struct connman_ipconfig *ipconfig,
- struct connman_element *parent)
-{
- struct connman_element *connection;
-
- connection = connman_element_create(NULL);
-
- DBG("ipconfig %p", ipconfig);
-
- connection->type = CONNMAN_ELEMENT_TYPE_CONNECTION;
- connection->index = ipconfig->index;
- connection->ipv4.gateway = ipconfig->address->gateway;
- connection->ipv6.gateway = ipconfig->ipv6->address->gateway;
-
- if (connman_element_register(connection, parent) < 0)
- connman_element_unref(connection);
-
- return 0;
-}
-
-int __connman_ipconfig_set_address(struct connman_ipconfig *ipconfig)