Commit | Line | Data |
---|---|---|
8c5eec2f DF |
1 | /* |
2 | * Copyright (c) 1983 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
6 | * @(#)rwhod.h 5.1 (Berkeley) %G% | |
7 | */ | |
5de4d48e | 8 | |
a87e0408 SL |
9 | /* |
10 | * rwho protocol packet format. | |
11 | */ | |
c6dfc0d1 BJ |
12 | struct outmp { |
13 | char out_line[8]; /* tty name */ | |
14 | char out_name[8]; /* user id */ | |
15 | long out_time; /* time on */ | |
16 | }; | |
17 | ||
5de4d48e | 18 | struct whod { |
409263f6 | 19 | char wd_vers; /* protocol version # */ |
a87e0408 | 20 | char wd_type; /* packet type, see below */ |
409263f6 | 21 | char wd_pad[2]; |
a87e0408 SL |
22 | int wd_sendtime; /* time stamp by sender */ |
23 | int wd_recvtime; /* time stamp applied by receiver */ | |
24 | char wd_hostname[32]; /* hosts's name */ | |
25 | int wd_loadav[3]; /* load average as in uptime */ | |
26 | int wd_boottime; /* time system booted */ | |
5de4d48e | 27 | struct whoent { |
c6dfc0d1 | 28 | struct outmp we_utmp; /* active tty info */ |
a87e0408 | 29 | int we_idle; /* tty idle time */ |
5de4d48e BJ |
30 | } wd_we[1024 / sizeof (struct whoent)]; |
31 | }; | |
a82aa56a | 32 | |
409263f6 | 33 | #define WHODVERSION 1 |
a87e0408 | 34 | #define WHODTYPE_STATUS 1 /* host status */ |