summaryrefslogtreecommitdiff
path: root/usr.sbin/mopd/mopprobe
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2009-07-11 13:42:33 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2009-07-11 13:42:33 +0000
commit8a9f97a43f68c3455fe3e00ec5c2b5685a978ef0 (patch)
tree343e95804d8d73189e6c93ed9f249659f041bb2e /usr.sbin/mopd/mopprobe
parenta46f91e862b54513b9d0f075a146b38d47b5abc9 (diff)
synchronize the synopsis and usage of mopa.out(1); mopchk(1) can handle
more than one filename at a time; add a description for -3 and -4 in mopd(8), and document -v; remove a duplicate flag in mopprobe(1); use a better style for synopses; sort flags and arguments. written with help by jmc@ ok jmc@
Diffstat (limited to 'usr.sbin/mopd/mopprobe')
-rw-r--r--usr.sbin/mopd/mopprobe/mopprobe.129
-rw-r--r--usr.sbin/mopd/mopprobe/mopprobe.c11
2 files changed, 14 insertions, 26 deletions
diff --git a/usr.sbin/mopd/mopprobe/mopprobe.1 b/usr.sbin/mopd/mopprobe/mopprobe.1
index 64fd3ecade0..1c5cb398dd7 100644
--- a/usr.sbin/mopd/mopprobe/mopprobe.1
+++ b/usr.sbin/mopd/mopprobe/mopprobe.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mopprobe.1,v 1.13 2007/05/31 19:20:25 jmc Exp $
+.\" $OpenBSD: mopprobe.1,v 1.14 2009/07/11 13:42:32 sobrado Exp $
.\"
.\" Copyright (c) 1996 Mats O Jansson. All rights reserved.
.\"
@@ -22,9 +22,9 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" @(#) $OpenBSD: mopprobe.1,v 1.13 2007/05/31 19:20:25 jmc Exp $
+.\" @(#) $OpenBSD: mopprobe.1,v 1.14 2009/07/11 13:42:32 sobrado Exp $
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: July 11 2009 $
.Dt MOPPROBE 1
.Os
.Sh NAME
@@ -32,15 +32,8 @@
.Nd MOP Probe Utility
.Sh SYNOPSIS
.Nm mopprobe
-.Fl a
-.Op Fl 3 | 4
-.Op Fl o
-.Op Fl v
-.Pp
-.Nm mopprobe
.Op Fl 3 | 4
-.Op Fl o
-.Op Fl v
+.Op Fl aov
.Ar interface
.Sh DESCRIPTION
.Nm
@@ -50,26 +43,24 @@ Ethernet connected to
or all known interfaces if
.Fl a
is given.
-.Sq Fl a
-is given.
If
-.Sq Fl o
+.Fl o
inhibits all messages but the first from a node.
With
-.Sq Fl v
+.Fl v
all MOP/RC SID messages will be shown (e.g., machines running DECnet).
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl 3
+Ignore MOP V3 messages (Ethernet II).
+.It Fl 4
+Ignore MOP V4 messages (Ethernet 802.3).
.It Fl a
Listen on all the Ethernets attached to the system.
If
.Fl a
is omitted, an interface must be specified.
-.It Fl 3
-Ignore MOP V3 messages (Ethernet II).
-.It Fl 4
-Ignore MOP V4 messages (Ethernet 802.3).
.It Fl o
Print a node just once.
.It Fl v
diff --git a/usr.sbin/mopd/mopprobe/mopprobe.c b/usr.sbin/mopd/mopprobe/mopprobe.c
index 36adca5ec43..6987c40346d 100644
--- a/usr.sbin/mopd/mopprobe/mopprobe.c
+++ b/usr.sbin/mopd/mopprobe/mopprobe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mopprobe.c,v 1.10 2006/04/16 20:18:27 maja Exp $ */
+/* $OpenBSD: mopprobe.c,v 1.11 2009/07/11 13:42:32 sobrado Exp $ */
/*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
@@ -25,14 +25,13 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: mopprobe.c,v 1.10 2006/04/16 20:18:27 maja Exp $";
+static const char rcsid[] = "$OpenBSD: mopprobe.c,v 1.11 2009/07/11 13:42:32 sobrado Exp $";
#endif
/*
* mopprobe - MOP Probe Utility
*
- * Usage: mopprobe -a [ -3 | -4 ] [-v] [-o]
- * mopprobe [ -3 | -4 ] [-v] [-o] interface
+ * Usage: mopprobe [-3 | -4] [-aov] interface
*/
#include "os.h"
@@ -119,9 +118,7 @@ main(int argc, char *argv[])
void
Usage()
{
- fprintf(stderr, "usage: %s -a [ -3 | -4 ] [-v] [-o]\n", __progname);
- fprintf(stderr, " %s [ -3 | -4 ] [-v] [-o] interface\n",
- __progname);
+ fprintf(stderr, "usage: %s [-3 | -4] [-aov] interface\n", __progname);
exit(1);
}