! rwho packet format

%constinteger rwho slots = 24
%ownstring(31) rwho tables name = "INET_RWHO_TABLES"

%recordformat rwho user fm(%bytearray terminal(1 : 8),
                           %bytearray username(1 : 8),
                           %integer logon time,
                           %integer idle time)
%constinteger rwho user size = 24

%recordformat load average fm(%integer one, five, fifteen)

%constinteger max rwho users = 42

%recordformat rwho fm((%integer n users, {not transmitted}
                       %byte version, type, spare1, spare2,
                       %integer send time, receive time,
                       %bytearray hostname(1 : 32),
                       %record(load average fm) load average,
                       %integer boot time,
                       %record(rwho user fm)%array u(1 : max rwho users)) %c
                      %or %bytearray x(1 : 1024 + 512))

%constinteger rwho non user size = 4 + 8 + 32 + 12 + 4  {not including n users}

%constinteger rwho version = 1
%constinteger rwho type = 1

%recordformat rwho tables fm(%record(rwho fm)%array r(1 : rwho slots))

%constinteger rwho tables size = rwho slots * (1024 + 512)

%end %of %file
