mirror of git://anongit.mindrot.org/openssh.git
- (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:
parent
aeaa1264b5
commit
52cbcbf0bb
|
@ -1,4 +1,6 @@
|
||||||
20000916
|
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
|
- (djm) Add Steve VanDevender's <stevev@darkwing.uoregon.edu> PAM
|
||||||
password change patch.
|
password change patch.
|
||||||
- (djm) Bring licenses on my stuff in line with OpenBSD's
|
- (djm) Bring licenses on my stuff in line with OpenBSD's
|
||||||
|
|
|
@ -6,17 +6,13 @@
|
||||||
|
|
||||||
#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
|
#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
|
||||||
# define _SS_MAXSIZE 128 /* Implementation specific max size */
|
# define _SS_MAXSIZE 128 /* Implementation specific max size */
|
||||||
# define _SS_ALIGNSIZE (sizeof(int))
|
# define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr))
|
||||||
# define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_short))
|
|
||||||
# define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof(u_short) + \
|
|
||||||
_SS_PAD1SIZE + _SS_ALIGNSIZE))
|
|
||||||
|
|
||||||
struct sockaddr_storage {
|
struct sockaddr_storage {
|
||||||
u_short ss_family;
|
struct sockaddr ss_sa;
|
||||||
char __ss_pad1[_SS_PAD1SIZE];
|
char __ss_pad2[_SS_PADSIZE];
|
||||||
int __ss_align;
|
|
||||||
char __ss_pad2[_SS_PAD2SIZE];
|
|
||||||
};
|
};
|
||||||
|
# define ss_family ss_sa.sa_family
|
||||||
#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
|
#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
|
||||||
|
|
||||||
#ifndef IN6_IS_ADDR_LOOPBACK
|
#ifndef IN6_IS_ADDR_LOOPBACK
|
||||||
|
|
Loading…
Reference in New Issue