/*	rwhod.h	4.8 bellcore	83/06/01	*/

/*
 * based on 4.2bsd, modified by martin levy, bellcore 85.
 */

/*
 * rwho protocol packet format.
 */
#ifdef notdef
struct	outmp {
	char	out_line[8];		/* tty name */
	char	out_name[8];		/* user id */
	long	out_time;		/* time on */
};
#endif

struct	whod {
	char	wd_vers;		/* protocol version # */
	char	wd_type;		/* packet type, see below */
	char	wd_pad[2];
/*int*/	long	wd_sendtime;		/* time stamp by sender */
/*int*/	long	wd_recvtime;		/* time stamp applied by receiver */
	char	wd_hostname[32];	/* hosts's name */
/*int*/	long	wd_loadav[3];		/* load average as in uptime */
/*int*/	long	wd_boottime;		/* time system booted */
#ifdef notdef
	struct	whoent {
		struct	outmp we_utmp;	/* active tty info */
/*int*/		long	we_idle;	/* tty idle time */
	} wd_we[1024 / sizeof (struct whoent)];
#endif
};

#define	WHODVERSION	1
#define	WHODTYPE_STATUS	1		/* host status */

#define	TIMER_RATE	60		/* alarm clocks every 60 seconds */
