Matt Dunwoodie <[email protected]> wrote:
> +.Ek
> +.nr nS 0
> +.Pp
Ask schwarze@ about that.
> +Unlike the other commands, the following command receives input from
> +stdin. This allows very fast configuration with a large number of
> +peers.
> +
> +.Bl -tag -width Ds
New sentence, new line.
And no blank lines.
> +#define WG_BASE64_KEY_LEN (4 * ((WG_KEY_LEN + 2) / 3))
> +#define WG_TMP_KEY_LEN (WG_BASE64_KEY_LEN / 4 * 3)
> +#define WG_LOAD_KEY(dst, src, fn_name) do { \
> + uint8_t _tmpkey[WG_TMP_KEY_LEN];\
> + if(strlen(src) != WG_BASE64_KEY_LEN)\
> + errx(1, fn_name " (key): invalid length");\
if (strlen
> +
> + if (!strchr(aip, ':')) {
> + wg_aip->a_af = AF_INET;
I prefer if you do proper address identification, rather than that,
which is not future proof. It is voodoo.
More later.