Network panel only shows one IPv6 address per interface
The network panel only shows one IPv6 address per interface. As we know, in IPv6 worls, interfaces usually have more than one IPv6 address.
We should show all IPv6 addresses for an interface.
- design tasks
IPv6 addresses probably should be listed line-by-line?
- development tasks
Need to get the list of IPv6 addresses and add them to variable
Currently, only one IPv6 addresses is displayed, e.g. at
GPtrArray *addresses; ... addresses = nm_ip_config_get_addresses (ipv6_config); if (addresses->len > 0) ipv6_text = nm_ip_address_get_address (g_ptr_array_index (addresses, 0));
I don't really know how to address this. The array is filled with pointers to NMIPAddress structs. Those probably need to be converted to strings(?), or an array of strings(?) and then added to
\n as separator between each of the addresses.
But pointers and memory allocations mess with my head ^^
I found a working solution now. I iterate through the
addresses array and copy this to a new array, which is later joined and then written into
Please see !969 (closed)