On Wed, Jul 13, 2022 at 05:13:49PM +0000, Mikolaj Kucharski wrote: > On Wed, Jul 13, 2022 at 05:43:59PM +0100, Stuart Henderson wrote: > > > > > > Not sure how to handle long output in different way. If you don't > > > specify wgdesc to the ifconfig, the diff doesn't change anything and > > > ifconfig(8) output is exactly the same. If you don't find this feature > > > useful, by not using it, nothing changes for you. Isn't that fair? > > > > It might be better if wgpeer details would be skipped from plain > > "ifconfig" and only listed if "ifconfig wg0" is used, much like > > IPv4 aliases are skipped from "ifconfig" and only listed when > > you use either "ifconfig -A" or "ifconfig em0" etc. > > > > Ah, that helps. Thank you! Will look into it. Indeed this makes more > sense. I was aware of -A, but was not aware of ifconfig <if> behaviour.
Perhaps also consider moving counters to netstat -s instead of ifconfig.
