From 221527986bdae3c4140be05725cb858cd8dae0d0 Mon Sep 17 00:00:00 2001 From: treysis Date: Tue, 22 Dec 2020 02:02:20 +0100 Subject: netspeed: improve display of IPv6 addresses in device details. --- netspeed/data/netspeed-details.ui | 86 +++++++++++++++++++-------------------- netspeed/src/backend.c | 4 +- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/netspeed/data/netspeed-details.ui b/netspeed/data/netspeed-details.ui index 32f01ed1..af1cc376 100644 --- a/netspeed/data/netspeed-details.ui +++ b/netspeed/data/netspeed-details.ui @@ -249,6 +249,48 @@ 0 + + + True + False + 12 + + + True + False + start + IPv6 Address: + 0 + 0 + + + False + True + 0 + + + + + True + False + start + True + 0 + 0 + + + False + True + 1 + + + + + False + True + 1 + + True @@ -314,7 +356,7 @@ False True - 1 + 2 @@ -379,48 +421,6 @@ - - False - True - 2 - - - - - True - False - 12 - - - True - False - start - IPv6 Address: - 0 - 0 - - - False - True - 0 - - - - - True - False - start - True - 0 - 0 - - - False - True - 1 - - - False True diff --git a/netspeed/src/backend.c b/netspeed/src/backend.c index 5eb67319..9fcfa226 100644 --- a/netspeed/src/backend.c +++ b/netspeed/src/backend.c @@ -174,8 +174,8 @@ get_ip_address_list (const char *iface_name, } list = g_slist_prepend (list, - g_strdup_printf ("%s: %s/%u", - scope, ip, netmask)); + g_strdup_printf ("%s/%u (%s)", + ip, netmask, scope)); } else { struct sockaddr_in ip4_addr; struct sockaddr_in ip4_network; -- cgit v1.2.1