eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 91f7253ae11c72367a4612a046335f5a047a0464
parent 06c80806643a3f7119a60c738ff92027df46d3c5
Author: Yuki Sireneva <yuki.utk8g@gmail.com>
Date:   Tue, 23 Jul 2024 19:18:17 +0300

client: use display_table_row for IPv6 in station

IPv6 address entry was not updated to use display_table_row which led to
a shifted line in table, as shown below:

    $ iwctl station wlan0 show | head | sed 's| |.|g'
    .................................Station:.wlan0................................
    --------------------------------------------------------------------------------
    ..Settable..Property..............Value..........................................
    --------------------------------------------------------------------------------
    ............Scanning..............no...............................................
    ............State.................connected........................................
    ............Connected.network.....Clannad.Legacy...................................
    ............IPv4.address..........192.168.1.12.....................................
    ............IPv6.address........fdc3:541d:864f:0:96db:c9ff:fe36:b15............
    ............ConnectedBss..........cc:d8:43:77:91:0e................................

This patch aligns IPv6 address line with other lines in the table.

Fixes: 35dd2c08219a (client: update station to use display_table_row, 2022-07-07)

Diffstat:
Mclient/station.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/station.c b/client/station.c @@ -175,8 +175,8 @@ static void display_addresses(const char *device_name) continue; have_address = true; - display("%s%*s %-*s%-*s\n", MARGIN, 8, "", 20, - "IPv6 address", 47, addrstr); + display_table_row(MARGIN, 3, 8, "", 20, + "IPv6 address", 47, addrstr); } else if (cur->ifa_addr->sa_family == AF_INET) { struct sockaddr_in *si = (struct sockaddr_in *) cur->ifa_addr;