mirror of
https://repo.or.cz/socat.git
synced 2025-01-08 22:12:33 +00:00
UDP-LISTEN failed with "...is not available"
This commit is contained in:
parent
a105208cd9
commit
ce3714c553
2 changed files with 7 additions and 4 deletions
3
CHANGES
3
CHANGES
|
@ -236,6 +236,9 @@ corrections:
|
|||
OPENSSL-LISTEN failed with "Bad file descriptor" when used in
|
||||
write-only context
|
||||
|
||||
UDP-LISTEN failed with "...is not available". Thanks to Fred for
|
||||
reporting this problem
|
||||
|
||||
porting:
|
||||
Red Hat issue 1020203: configure checks fail with some compilers.
|
||||
Use case: clang
|
||||
|
|
|
@ -115,8 +115,8 @@ int _xioopen_listen(struct single *xfd, int xioflags, struct sockaddr *us, sockl
|
|||
char lisname[256];
|
||||
union sockaddr_union _peername;
|
||||
union sockaddr_union _sockname;
|
||||
union sockaddr_union *pa = &_peername; /* peer address */
|
||||
union sockaddr_union *la = &_sockname; /* local address */
|
||||
union sockaddr_union *pa; /* peer address */
|
||||
union sockaddr_union *la; /* local address */
|
||||
socklen_t pas = sizeof(_peername); /* peer address size */
|
||||
socklen_t las = sizeof(_sockname); /* local address size */
|
||||
int result;
|
||||
|
@ -229,8 +229,8 @@ int _xioopen_listen(struct single *xfd, int xioflags, struct sockaddr *us, sockl
|
|||
char sockname[256];
|
||||
int ps; /* peer socket */
|
||||
|
||||
pa = &_peername;
|
||||
la = &_sockname;
|
||||
pa = &_peername; /* peer address */
|
||||
la = &_sockname; /* local address */
|
||||
salen = sizeof(struct sockaddr);
|
||||
do {
|
||||
/*? int level = E_ERROR;*/
|
||||
|
|
Loading…
Reference in a new issue