change to add explicit length field and make compatible with
authorKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Tue, 5 Sep 1989 09:14:44 +0000 (01:14 -0800)
committerKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Tue, 5 Sep 1989 09:14:44 +0000 (01:14 -0800)
other sockaddr types.

SCCS-vsn: sys/sys/un.h 7.4

usr/src/sys/sys/un.h

index 28baed5..a363bfa 100644 (file)
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- *     @(#)un.h        7.3 (Berkeley) %G%
+ *     @(#)un.h        7.4 (Berkeley) %G%
  */
 
 /*
  * Definitions for UNIX IPC domain.
  */
 struct sockaddr_un {
  */
 
 /*
  * Definitions for UNIX IPC domain.
  */
 struct sockaddr_un {
-       short   sun_family;             /* AF_UNIX */
+       u_char  sun_len;                /* sockaddr len including null */
+       u_char  sun_family;             /* AF_UNIX */
        char    sun_path[108];          /* path name (gag) */
 };
 
        char    sun_path[108];          /* path name (gag) */
 };