Sonic <sonicsm...@gmail.com> wrote:
> Would love to see the wgdescr field for the peers show up in the
> output of wg if that's possible. Currently the descriptions are only
> visible in the detail output of ifconfig (ifconfig -A or ifconfig
> wgx).

wg(8) is in the net/wireguard-tools port maintained by Jason Donenfeld
and supports various Wireguard™ implementations. From what I can tell,
the peer description only exists in OpenBSD's wg(4), where it was added
in 2023. [1] The structs in wireguard-tools into which data is parsed
from the various implementations (see ipc-*.h and containers.h at [2])
don't have a slot for a peer description.

The patch to wireguard-tools is an exercise for the reader.

[1] 
https://codeberg.org/OpenBSD/src/commit/11d9cfa5c6cb78055746f7f5be51c8be2a9af192
[2] https://git.zx2c4.com/wireguard-tools/tree/src

Reply via email to