diff options
author | 1999-06-06 23:19:08 +0000 | |
---|---|---|
committer | 1999-06-06 23:19:08 +0000 | |
commit | bdd6d197ca8d207e84ada76612755e08d434f767 (patch) | |
tree | f7fa5c6ea2cd505cdaef4350d026a4b651f8440a | |
parent | complete blind luck made this work without a volatile (diff) | |
download | wireguard-openbsd-bdd6d197ca8d207e84ada76612755e08d434f767.tar.xz wireguard-openbsd-bdd6d197ca8d207e84ada76612755e08d434f767.zip |
sockaddr_storage; per rfc2553
-rw-r--r-- | sys/sys/socket.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h index f11ceb712ba..8c71d6fb068 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: socket.h,v 1.28 1999/02/25 03:31:34 deraadt Exp $ */ +/* $OpenBSD: socket.h,v 1.29 1999/06/06 23:19:08 deraadt Exp $ */ /* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */ /* @@ -142,6 +142,18 @@ struct sockaddr { }; /* + * Sockaddr type which can hold any sockaddr type available + * in the system. + */ +struct sockaddr_storage { + u_int8_t ss_len; /* total length */ + sa_family_t ss_family; /* address family */ + u_char __ss_pad1[6]; /* align to quad */ + u_int64_t __ss_pad2; /* force alignment for stupid compilers */ + u_char __ss_pad3[240]; /* pad to a total of 256 bytes */ +}; + +/* * Structure used by kernel to pass protocol * information in raw sockets. */ |