- (djm) Use a real struct sockaddr inside the fake struct sockaddr_storage.

Patch from Larry Jones <larry.jones@sdrc.com>
This commit is contained in:
Damien Miller 2000-09-16 16:21:28 +11:00
parent aeaa1264b5
commit 52cbcbf0bb
2 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,6 @@
20000916
- (djm) Use a real struct sockaddr inside the fake struct sockaddr_storage.
Patch from Larry Jones <larry.jones@sdrc.com>
- (djm) Add Steve VanDevender's <stevev@darkwing.uoregon.edu> PAM
password change patch.
- (djm) Bring licenses on my stuff in line with OpenBSD's

View File

@ -6,17 +6,13 @@
#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
# define _SS_MAXSIZE 128 /* Implementation specific max size */
# define _SS_ALIGNSIZE (sizeof(int))
# define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_short))
# define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof(u_short) + \
_SS_PAD1SIZE + _SS_ALIGNSIZE))
# define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr))
struct sockaddr_storage {
u_short ss_family;
char __ss_pad1[_SS_PAD1SIZE];
int __ss_align;
char __ss_pad2[_SS_PAD2SIZE];
struct sockaddr ss_sa;
char __ss_pad2[_SS_PADSIZE];
};
# define ss_family ss_sa.sa_family
#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
#ifndef IN6_IS_ADDR_LOOPBACK