summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rwhod/rwhod.8
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-10-13 11:27:55 +0000
committercharnier <charnier@FreeBSD.org>1997-10-13 11:27:55 +0000
commit1f77e4ee4c2e1406262befc0d7a3a72605373656 (patch)
tree12fc00d807674742e03b5430fd58e6969ad34171 /usr.sbin/rwhod/rwhod.8
parentff717fa4f43a204e67d5cd044379c8803e74cf10 (diff)
downloadFreeBSD-src-1f77e4ee4c2e1406262befc0d7a3a72605373656.zip
FreeBSD-src-1f77e4ee4c2e1406262befc0d7a3a72605373656.tar.gz
Use err(3). Add usage.
Use syslog instead of fprintf when being a daemon. Change sprintf to snprintf obtained from OpenBSD. Obtained from: OpenBSD
Diffstat (limited to 'usr.sbin/rwhod/rwhod.8')
-rw-r--r--usr.sbin/rwhod/rwhod.835
1 files changed, 25 insertions, 10 deletions
diff --git a/usr.sbin/rwhod/rwhod.8 b/usr.sbin/rwhod/rwhod.8
index 19ca9ae..2b03ca3 100644
--- a/usr.sbin/rwhod/rwhod.8
+++ b/usr.sbin/rwhod/rwhod.8
@@ -58,14 +58,16 @@ As a producer of information it periodically
queries the state of the system and constructs
status messages which are broadcasted or multicasted on a network.
As a consumer of information, it listens for other
-.Nm rwhod
+.Nm
servers' status messages, validating them, then recording
them in a collection of files located in the directory
.Pa /var/rwho .
.Pp
The
.Fl m
-option causes rwhod to use IP multicast (instead of
+option causes
+.Nm
+to use IP multicast (instead of
broadcast) on all interfaces that have
the IFF_MULTICAST flag set in their "ifnet" structs
(excluding the loopback interface). The multicast
@@ -76,9 +78,15 @@ If the optional
.Ar ttl
argument is supplied with the
.Fl m
-flag, rwhod will send IP multicast datagrams with a
-time-to-live of <ttl>, via a SINGLE interface rather
-than all interfaces. <ttl> must be between 0 and
+flag,
+.Nm
+will send IP multicast datagrams with a
+time-to-live of
+.Ar ttl ,
+via a SINGLE interface rather
+than all interfaces.
+.Ar ttl
+must be between 0 and
32 (or MAX_MULTICAST_SCOPE). Note that
.Fl m Ar 1
is different than
@@ -92,14 +100,21 @@ When
is used without a
.Ar ttl
argument, the program accepts multicast
-rwhod reports from all multicast-capable interfaces. If a
+.Nm
+reports from all multicast-capable interfaces. If a
.Ar ttl
argument is given, it accepts multicast reports from only one interface, the
one on which reports are sent (which may be controlled via the host's routing
-table). Regardless of the "-m" option, the program accepts broadcast or
+table). Regardless of the
+.Fl m
+option, the program accepts broadcast or
unicast reports from all interfaces. Thus, this program will hear the
-reports of old, non-multicasting rwhods, but, if multicasting is used,
-those old rwhods won't hear the reports generated by this program.
+reports of old, non-multicasting
+.Nm rwhod Ns s ,
+but, if multicasting is used,
+those old
+.Nm rwhod Ns s
+won't hear the reports generated by this program.
.Pp
The server transmits and receives messages at the port indicated
in the ``rwho'' service specification; see
@@ -153,7 +168,7 @@ in the message, contains any unprintable
.Tn ASCII
characters, the
message is discarded. Valid messages received by
-.Nm rwhod
+.Nm
are placed in files named
.Pa whod.hostname
in the directory
OpenPOWER on IntegriCloud