Add support for wireguard peer descriptions
authorkn <kn@openbsd.org>
Thu, 1 Jun 2023 18:57:53 +0000 (18:57 +0000)
committerkn <kn@openbsd.org>
Thu, 1 Jun 2023 18:57:53 +0000 (18:57 +0000)
commit11d9cfa5c6cb78055746f7f5be51c8be2a9af192
treee7a791a98cbe74b7599b94c7434437c4b17635b4
parent541bccc9d07e2e290d4359cf0fae6dc621cfbc0a
Add support for wireguard peer descriptions

"wgdescr[iption] foo" to label one peer (amongst many) on a wg(4) interface,
"-wgdescr[iption]" or "wgdescr ''" to remove the label, completely analogous
to existing interface discriptions.

Idea/initial diff from Mikolaj Kucharski (OK sthen)
Tests/prodded by Hrvoje Popovski
Tweaks/manual bits from me
Feedback deraadt sthen mvs claudio
OK claudio
sbin/ifconfig/ifconfig.8
sbin/ifconfig/ifconfig.c
sys/net/if_wg.c
sys/net/if_wg.h