* Copyright (c) 1983 The Regents of the University of California.
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Berkeley. The name of the
* University may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
* @(#)rwhod.h 5.4 (Berkeley) %G%
* rwho protocol packet format.
char out_line
[8]; /* tty name */
char out_name
[8]; /* user id */
long out_time
; /* time on */
char wd_vers
; /* protocol version # */
char wd_type
; /* packet type, see below */
int wd_sendtime
; /* time stamp by sender */
int wd_recvtime
; /* time stamp applied by receiver */
char wd_hostname
[32]; /* hosts's name */
int wd_loadav
[3]; /* load average as in uptime */
int wd_boottime
; /* time system booted */
struct outmp we_utmp
; /* active tty info */
int we_idle
; /* tty idle time */
} wd_we
[1024 / sizeof (struct whoent
)];
#define WHODTYPE_STATUS 1 /* host status */
#define _PATH_RWHODIR "/var/rwho"