naccyde / rpms / iproute

Forked from rpms/iproute 9 months ago
Clone

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

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