This is a quick hack based on the 4.3BSD rwhod to get a working
rwhod for Solaris 2.3. I've also compiled it on SunOS 4 and
Linux.

It has two added features and that is the capabilities to be able to
control where it is be a data consumer or producer. This can be
used to reduce the network and machine load the normal rwhod daemons
generate.

By default it behaves just like any other rwhod daemon.

If you specify the "-n" flag then prwhod will write out the
data it receives on the disk in network-byte order and not
using the order the host is using. (Great when you have a
network of mixed machines). You'll need rwho/ruptime programs
that handle network-byte-order data of course.

To run in producer mode only add the option "-c-".

For example, at IFM, Linkping University, Sweden all machines but
one start the daemon with:

	in.rwhod -prwhohost -c-

and the machine "rwhohost" (alias i /etc/hosts) starts it like this:

	in.rwhod -prwhohost

Without the "-p" option it will default to broadcast mode. The
"-prwhohost" option on the central machine is needed since it
otherwise won't see itself (kludge yes).

For Solaris 2:
  Remember to edit the rwhod.startstop script to contain the correct
  path's to the rwhod binary. It is setup for our local system
  (binaries in /usr/wheel/sbin).

A special note for Linux:
  By starting it with "-p+" the server will manually write a an
  entry for itself in the local /usr/spool/rwho directory since
  Linux doesn't seem to be able to see it's own broadcasts...

If you want to filter the machines that a consumer rwhod listens to,
modify the function 'ok_fromhost' in 'rwhod.c'. There is a sample
there on how it is used at IFM, Linkoping University, Sweden.
This should really be configurable from the command line or something...

/Peter Eriksson <pen@lysator.liu.se>, 7 Mar 1994
