mirror of
https://repo.or.cz/socat.git
synced 2025-01-09 06:22: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
|
OPENSSL-LISTEN failed with "Bad file descriptor" when used in
|
||||||
write-only context
|
write-only context
|
||||||
|
|
||||||
|
UDP-LISTEN failed with "...is not available". Thanks to Fred for
|
||||||
|
reporting this problem
|
||||||
|
|
||||||
porting:
|
porting:
|
||||||
Red Hat issue 1020203: configure checks fail with some compilers.
|
Red Hat issue 1020203: configure checks fail with some compilers.
|
||||||
Use case: clang
|
Use case: clang
|
||||||
|
|
|
@ -115,8 +115,8 @@ int _xioopen_listen(struct single *xfd, int xioflags, struct sockaddr *us, sockl
|
||||||
char lisname[256];
|
char lisname[256];
|
||||||
union sockaddr_union _peername;
|
union sockaddr_union _peername;
|
||||||
union sockaddr_union _sockname;
|
union sockaddr_union _sockname;
|
||||||
union sockaddr_union *pa = &_peername; /* peer address */
|
union sockaddr_union *pa; /* peer address */
|
||||||
union sockaddr_union *la = &_sockname; /* local address */
|
union sockaddr_union *la; /* local address */
|
||||||
socklen_t pas = sizeof(_peername); /* peer address size */
|
socklen_t pas = sizeof(_peername); /* peer address size */
|
||||||
socklen_t las = sizeof(_sockname); /* local address size */
|
socklen_t las = sizeof(_sockname); /* local address size */
|
||||||
int result;
|
int result;
|
||||||
|
@ -229,8 +229,8 @@ int _xioopen_listen(struct single *xfd, int xioflags, struct sockaddr *us, sockl
|
||||||
char sockname[256];
|
char sockname[256];
|
||||||
int ps; /* peer socket */
|
int ps; /* peer socket */
|
||||||
|
|
||||||
pa = &_peername;
|
pa = &_peername; /* peer address */
|
||||||
la = &_sockname;
|
la = &_sockname; /* local address */
|
||||||
salen = sizeof(struct sockaddr);
|
salen = sizeof(struct sockaddr);
|
||||||
do {
|
do {
|
||||||
/*? int level = E_ERROR;*/
|
/*? int level = E_ERROR;*/
|
||||||
|
|
Loading…
Reference in a new issue