]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: m_tunnel_key: reformat the usage text
authorJiri Benc <jbenc@redhat.com>
Wed, 14 Jun 2017 19:29:49 +0000 (21:29 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 16 Jun 2017 16:11:42 +0000 (09:11 -0700)
Adding new tunnel key fields would cause the usage line overflow 80 chars.
Make the usage text similar to other commands.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
tc/m_tunnel_key.c

index fb418a76bd79aeafe2115f2268cb50a5f64d6a78..6faf9632058ade83e3bbc3450acf15f9660f998e 100644 (file)
 static void explain(void)
 {
        fprintf(stderr, "Usage: tunnel_key unset\n");
-       fprintf(stderr, "       tunnel_key set id TUNNELID src_ip IP dst_ip IP dst_port UDP_PORT\n");
+       fprintf(stderr, "       tunnel_key set <TUNNEL_KEY>\n");
+       fprintf(stderr,
+               "Where TUNNEL_KEY is a combination of:\n"
+               "id <TUNNELID> (mandatory)\n"
+               "src_ip <IP> (mandatory)\n"
+               "dst_ip <IP> (mandatory)\n"
+               "dst_port <UDP_PORT>\n");
 }
 
 static void usage(void)