From 913fdf24972dca40feb3201fe4e32c1ab7b7c2c3 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 15 Aug 2021 09:54:09 +0000 Subject: [PATCH] tinc: fix spelling and update manpage (thanks unobe) Update tinc(8) man page to: 1. state the implementation aligns with 1.0.36 of tinc.org; 2. use same hostname as mentioned in usage line. Fix typos in tinc.c. --- sys/man/8/tinc | 4 ++-- sys/src/cmd/ip/tinc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/man/8/tinc b/sys/man/8/tinc index 0cd7b32e4..cd4fba46f 100644 --- a/sys/man/8/tinc +++ b/sys/man/8/tinc @@ -29,7 +29,7 @@ tinc - mesh peer to peer VPN .SH DESCRIPTION Tinc implements the mesh peer to peer VPN protocol from .I https://www.tinc-vpn.org/ -as of version 1.0.32. Within a tinc VPN one can reach all +as of version 1.0.36. Within a tinc VPN one can reach all the subnets of all hosts within the network even when not directly connected to the owning host of the subnet. .PP @@ -110,7 +110,7 @@ for the VPN. .TP .B -n Sets our hostname to -.IR myhost . +.IR myname . .SH "SEE ALSO" .IR rsa (8), .IR ip (3) diff --git a/sys/src/cmd/ip/tinc.c b/sys/src/cmd/ip/tinc.c index 94a5e0ec6..3e34c90b1 100644 --- a/sys/src/cmd/ip/tinc.c +++ b/sys/src/cmd/ip/tinc.c @@ -76,7 +76,7 @@ struct Edge Host *src; Host *dst; Edge *next; /* next edge on src */ - Edge *rev; /* reverse drection edge */ + Edge *rev; /* reverse direction edge */ uchar ip[IPaddrlen]; int port; @@ -1135,7 +1135,7 @@ metaauth(Conn *c) if(n != 6 || atoi(f[0]) != META_KEY || strlen(f[5]) != 2*n2) return -1; if(atoi(f[1]) != EVP_AES256CFB || atoi(f[2]) != EVP_SHA256){ - fprint(2, "%s uses unknown cipher/digest agorithms: %s %s\n", + fprint(2, "%s uses unknown cipher/digest algorithms: %s %s\n", c->host->name, f[1], f[2]); return -1; }