naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0008-rtmon-List-options-in-help-text.patch

7e752c
From b5ebd3fee37bc9d1832c545f605c639140b8d6f1 Mon Sep 17 00:00:00 2001
7e752c
From: Phil Sutter <psutter@redhat.com>
7e752c
Date: Thu, 13 Sep 2018 20:38:04 +0200
7e752c
Subject: [PATCH] rtmon: List options in help text
7e752c
7e752c
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1612704
7e752c
Upstream Status: iproute2.git commit 6417c06b59b07
7e752c
7e752c
commit 6417c06b59b0731bcff4c0999661b256be6f52cb
7e752c
Author: Phil Sutter <phil@nwl.cc>
7e752c
Date:   Thu Aug 16 12:28:01 2018 +0200
7e752c
7e752c
    rtmon: List options in help text
7e752c
7e752c
    Signed-off-by: Phil Sutter <phil@nwl.cc>
7e752c
    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
7e752c
---
7e752c
 ip/rtmon.c | 4 +++-
7e752c
 1 file changed, 3 insertions(+), 1 deletion(-)
7e752c
7e752c
diff --git a/ip/rtmon.c b/ip/rtmon.c
7e752c
index acc11df..0e795f7 100644
7e752c
--- a/ip/rtmon.c
7e752c
+++ b/ip/rtmon.c
7e752c
@@ -63,7 +63,9 @@ static int dump_msg2(const struct sockaddr_nl *who,
7e752c
 
7e752c
 static void usage(void)
7e752c
 {
7e752c
-	fprintf(stderr, "Usage: rtmon file FILE [ all | LISTofOBJECTS]\n");
7e752c
+	fprintf(stderr, "Usage: rtmon [ OPTIONS ] file FILE [ all | LISTofOBJECTS ]\n");
7e752c
+	fprintf(stderr, "OPTIONS := { -f[amily] { inet | inet6 | link | help } |\n"
7e752c
+			"             -4 | -6 | -0 | -V[ersion] }\n");
7e752c
 	fprintf(stderr, "LISTofOBJECTS := [ link ] [ address ] [ route ]\n");
7e752c
 	exit(-1);
7e752c
 }
7e752c
-- 
7e752c
1.8.3.1
7e752c