[<prev] [next>] [day] [month] [year] [list]
Message-ID: <15e782-673bc680-4ed-422b5480@29006332>
Date: Mon, 18 Nov 2024 23:58:18 +0100
From: "Ariel Otilibili-Anieli" <Ariel.Otilibili-Anieli@...ecom.fr>
To: wireguard@...ts.zx2c4.com, netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Jason A. Donenfeld <Jason@...c4.com>, "Andrew Lunn" <andrew+netdev@...n.ch>, David S. Miller <davem@...emloft.net>, "Eric Dumazet" <edumazet@...gle.com>, "Jakub Kicinski" <kuba@...nel.org>, "Paolo Abeni" <pabeni@...hat.com>
Subject: [PATCH] wireguard-tools: Extracted error message for the sake
of legibility
Hello,
This is a reminder about a patch sent to the WireGuard mailing list; CCing the maintainers of drivers/net/wireguard/; below a verbatim of my cover letter.
Thank you,
**
I have been using WireGuard for some time; it does ease the configuration of
VPNs. This is my first patch to the list, I asked to be subscribed; please
confirm me it is the case.
I would like to improve my C programming skills; your feedback will be much
appreciated.
Ariel
-------- Original Message --------
Subject: [PATCH] wireguard-tools: Extracted error message for the sake of legibility
Date: Thursday, August 01, 2024 11:43 CEST
From: Ariel Otilibili <Ariel.Otilibili-Anieli@...ecom.fr>
Reply-To: Ariel Otilibili <Ariel.Otilibili-Anieli@...ecom.fr>
To: wireguard@...ts.zx2c4.com
CC: "Jason A . Donenfeld" <Jason@...c4.com>, Ariel Otilibili <Ariel.Otilibili-Anieli@...ecom.fr>
References: <20240725204917.192647-2-otilibil@...ecom.fr> <20240801094932.4502-1-otilibil@...ecom.fr>
Signed-off-by: Ariel Otilibili <otilibil@...ecom.fr>
---
src/set.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/set.c b/src/set.c
index 75560fd..b2fbd54 100644
--- a/src/set.c
+++ b/src/set.c
@@ -16,9 +16,19 @@ int set_main(int argc, const char *argv[])
{
struct wgdevice *device = NULL;
int ret = 1;
+ const char *error_message = "Usage: %s %s <interface>"
+ " [listen-port <port>]"
+ " [fwmark <mark>]"
+ " [private-key <file path>]"
+ " [peer <base64 public key> [remove]"
+ " [preshared-key <file path>]"
+ " [endpoint <ip>:<port>]"
+ " [persistent-keepalive <interval seconds>]"
+ " [allowed-ips <ip1>/<cidr1>[,<ip2>/<cidr2>]...]"
+ " ]...\n";
if (argc < 3) {
- fprintf(stderr, "Usage: %s %s <interface> [listen-port <port>] [fwmark <mark>] [private-key <file path>] [peer <base64 public key> [remove] [preshared-key <file path>] [endpoint <ip>:<port>] [persistent-keepalive <interval seconds>] [allowed-ips <ip1>/<cidr1>[,<ip2>/<cidr2>]...] ]...\n", PROG_NAME, argv[0]);
+ fprintf(stderr, error_message, PROG_NAME, argv[0]);
return 1;
}
--
2.45.2
Powered by blists - more mailing lists