naccyde / rpms / iproute

Forked from rpms/iproute 9 months ago
Clone

Blame SOURCES/0044-tc-m_tunnel_key-reformat-the-usage-text.patch

36cfb7
From 04ecd76fa66c7745529b3b007ad04a307d2b7518 Mon Sep 17 00:00:00 2001
36cfb7
From: Phil Sutter <psutter@redhat.com>
36cfb7
Date: Wed, 6 Feb 2019 14:31:10 +0100
36cfb7
Subject: [PATCH] tc: m_tunnel_key: reformat the usage text
36cfb7
36cfb7
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1658506
36cfb7
Upstream Status: iproute2.git commit 50907a8245ea3
36cfb7
36cfb7
commit 50907a8245ea37875fb877d6f21f51a1f247b167
36cfb7
Author: Jiri Benc <jbenc@redhat.com>
36cfb7
Date:   Wed Jun 14 21:29:49 2017 +0200
36cfb7
36cfb7
    tc: m_tunnel_key: reformat the usage text
36cfb7
36cfb7
    Adding new tunnel key fields would cause the usage line overflow 80 chars.
36cfb7
    Make the usage text similar to other commands.
36cfb7
36cfb7
    Signed-off-by: Jiri Benc <jbenc@redhat.com>
36cfb7
---
36cfb7
 tc/m_tunnel_key.c | 8 +++++++-
36cfb7
 1 file changed, 7 insertions(+), 1 deletion(-)
36cfb7
36cfb7
diff --git a/tc/m_tunnel_key.c b/tc/m_tunnel_key.c
e138d9
index 3ceec1cba616b..5222c25977e26 100644
36cfb7
--- a/tc/m_tunnel_key.c
36cfb7
+++ b/tc/m_tunnel_key.c
36cfb7
@@ -22,7 +22,13 @@
36cfb7
 static void explain(void)
36cfb7
 {
36cfb7
 	fprintf(stderr, "Usage: tunnel_key unset\n");
36cfb7
-	fprintf(stderr, "       tunnel_key set id TUNNELID src_ip IP dst_ip IP dst_port UDP_PORT\n");
36cfb7
+	fprintf(stderr, "       tunnel_key set <TUNNEL_KEY>\n");
36cfb7
+	fprintf(stderr,
36cfb7
+		"Where TUNNEL_KEY is a combination of:\n"
36cfb7
+		"id <TUNNELID> (mandatory)\n"
36cfb7
+		"src_ip <IP> (mandatory)\n"
36cfb7
+		"dst_ip <IP> (mandatory)\n"
36cfb7
+		"dst_port <UDP_PORT>\n");
36cfb7
 }
36cfb7
 
36cfb7
 static void usage(void)
36cfb7
-- 
e138d9
2.21.0
36cfb7