diff options
-rw-r--r-- | include/ipconfig.h | 5 | ||||
-rw-r--r-- | plugins/openconnect.c | 2 | ||||
-rw-r--r-- | src/ipconfig.c | 7 |
3 files changed, 8 insertions, 6 deletions
diff --git a/include/ipconfig.h b/include/ipconfig.h index 22e8c547..a0673afc 100644 --- a/include/ipconfig.h +++ b/include/ipconfig.h @@ -47,8 +47,9 @@ 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); + const char *address, + unsigned char prefix_length, + const char *gateway); void connman_ipaddress_set_peer(struct connman_ipaddress *ipaddress, const char *peer); void connman_ipaddress_clear(struct connman_ipaddress *ipaddress); diff --git a/plugins/openconnect.c b/plugins/openconnect.c index 94bfcfcc..5c8db26c 100644 --- a/plugins/openconnect.c +++ b/plugins/openconnect.c @@ -146,7 +146,7 @@ static int oc_notify(DBusMessage *msg, struct connman_provider *provider) netmask, gateway); else connman_ipaddress_set_ipv6(ipaddress, addressv6, - gateway, prefix_len); + prefix_len, gateway); connman_provider_set_ipaddress(provider, ipaddress); connman_provider_set_domain(provider, domain); diff --git a/src/ipconfig.c b/src/ipconfig.c index 22dd03bc..92ac8f68 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -153,8 +153,9 @@ static gboolean check_ipv6_address(const char *address) } int connman_ipaddress_set_ipv6(struct connman_ipaddress *ipaddress, - const char *address, const char *gateway, - unsigned char prefix_length) + const char *address, + unsigned char prefix_length, + const char *gateway) { if (ipaddress == NULL) return -EINVAL; @@ -1947,7 +1948,7 @@ int __connman_ipconfig_set_config(struct connman_ipconfig *ipconfig, else return connman_ipaddress_set_ipv6( ipconfig->address, address, - gateway, prefix_length); + prefix_length, gateway); break; case CONNMAN_IPCONFIG_METHOD_DHCP: |