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