add version field
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Fri, 6 May 1983 02:13:30 +0000 (18:13 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Fri, 6 May 1983 02:13:30 +0000 (18:13 -0800)
SCCS-vsn: include/protocols/rwhod.h 4.5

usr/src/include/protocols/rwhod.h

index fc3859e..2b697a7 100644 (file)
@@ -1,11 +1,12 @@
-/*     rwhod.h 4.4     83/05/04        */
+/*     rwhod.h 4.5     83/05/05        */
 
 /*
  * rwho protocol packet format.
  */
 struct whod {
 
 /*
  * rwho protocol packet format.
  */
 struct whod {
+       char    wd_vers;                /* protocol version # */
        char    wd_type;                /* packet type, see below */
        char    wd_type;                /* packet type, see below */
-       char    wd_pad[3];
+       char    wd_pad[2];
        int     wd_sendtime;            /* time stamp by sender */
        int     wd_recvtime;            /* time stamp applied by receiver */
        char    wd_hostname[32];        /* hosts's name */
        int     wd_sendtime;            /* time stamp by sender */
        int     wd_recvtime;            /* time stamp applied by receiver */
        char    wd_hostname[32];        /* hosts's name */
@@ -17,4 +18,5 @@ struct        whod {
        } wd_we[1024 / sizeof (struct whoent)];
 };
 
        } wd_we[1024 / sizeof (struct whoent)];
 };
 
+#define        WHODVERSION     1
 #define        WHODTYPE_STATUS 1               /* host status */
 #define        WHODTYPE_STATUS 1               /* host status */