diff options
author | Martin Schwenke <martin@meltin.net> | 2013-08-19 15:43:30 +1000 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2013-08-19 08:57:24 -0700 |
commit | 488c41d21678744ea56332333853ca4ab0827ac9 (patch) | |
tree | 2862efbe5b871c818f99f1608602423fbd4f675b /doc | |
parent | b8a45897b9029ac38ee829b3a7eb8551fddebd51 (diff) | |
download | iproute2-488c41d21678744ea56332333853ca4ab0827ac9.tar.gz |
ip: Add label option to ip monitor
Prefix labelling is currently only activated when monitoring "all"
objects. However, the output can still be confusing when monitoring
more than 1 object, so add an option to always print prefix labels.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ip-cref.tex | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/doc/ip-cref.tex b/doc/ip-cref.tex index d8fed66e..f062b3af 100644 --- a/doc/ip-cref.tex +++ b/doc/ip-cref.tex @@ -2542,13 +2542,15 @@ Namely, the \verb|monitor| command is the first in the command line and then the object list follows: \begin{verbatim} - ip monitor [ file FILE ] [ all | OBJECT-LIST ] -\end{verbatim} -\verb|OBJECT-LIST| is the list of object types that we want to monitor. -It may contain \verb|link|, \verb|address| and \verb|route|. -If no \verb|file| argument is given, \verb|ip| opens RTNETLINK, -listens on it and dumps state changes in the format described -in previous sections. + ip monitor [ file FILE ] [ all | OBJECT-LIST ] [ label ] +\end{verbatim} +\verb|OBJECT-LIST| is the list of object types that we want to +monitor. It may contain \verb|link|, \verb|address| and \verb|route|. +Specifying \verb|label| indicates that output lines should be labelled +with the type of object being printed --- this happens by default if +\verb|all| is specified. If no \verb|file| argument is given, +\verb|ip| opens RTNETLINK, listens on it and dumps state changes in +the format described in previous sections. If a file name is given, it does not listen on RTNETLINK, but opens the file containing RTNETLINK messages saved in binary format |