On Wed, Jul 13, 2022 at 03:37:05PM +0000, Mikolaj Kucharski wrote: > Example from running -current: > > pce-0067# ifconfig.new wg0 > wg0: flags=80c3<UP,BROADCAST,RUNNING,NOARP,MULTICAST> mtu 1420 > index 8 priority 0 llprio 3 > wgport 51820 > wgpubkey qcb... > wgpeer klM... > description: ks2 > wgpsk (present) > wgpka 25 (sec) > wgendpoint xxx.xxx.xxx.xxx 51820 > tx: 1932, rx: 620 > last handshake: 83 seconds ago > wgaip fde4:f456:48c2:13c0::/64 > groups: wg > inet6 fde4:f456:48c2:13c0::cc67 prefixlen 64 > > Seems to work for me. Looking at above ifconfig(8) output, not sure > should the output should say `description:` or just follow the pattern > of other wireguard keywords and just say `wgdesc` (same keyword like > for ifconfig command and no colon). I think I would prefer that. >
I mean like this: --- ifconfig.c Wed Jul 13 15:19:24 2022 +++ ifconfig.c Wed Jul 13 15:39:04 2022 @@ -5972,7 +5972,7 @@ printf("\twgpeer %s\n", key); if (strlen(wg_peer->p_description)) - printf("\t\tdescription: %s\n", wg_peer->p_description); + printf("\t\twgdesc %s\n", wg_peer->p_description); if (wg_peer->p_flags & WG_PEER_HAS_PSK) printf("\t\twgpsk (present)\n"); pce-0067# ifconfig.new wg wg0: flags=80c3<UP,BROADCAST,RUNNING,NOARP,MULTICAST> mtu 1420 index 8 priority 0 llprio 3 wgport 51820 wgpubkey qcb... wgpeer klM... wgdesc ks2 wgpsk (present) wgpka 25 (sec) wgendpoint xxx.xxx.xxx.xxx 51820 tx: 3260, rx: 1116 last handshake: 69 seconds ago wgaip fde4:f456:48c2:13c0::/64 groups: wg inet6 fde4:f456:48c2:13c0::cc67 prefixlen 64 -- Regards, Mikolaj