mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 15:32:35 +00:00
Fixed ancillary messages on Solaris
This commit is contained in:
parent
6340127060
commit
e52675faed
3 changed files with 10 additions and 0 deletions
2
CHANGES
2
CHANGES
|
@ -67,6 +67,8 @@ Porting:
|
|||
Solaris requires that termios options are always applied to the slave
|
||||
side of PTY.
|
||||
|
||||
Fixed ancillary messages on Solaris.
|
||||
|
||||
Features:
|
||||
Filan prints target of symlink when appropriate
|
||||
Test: FILANSYMLINK
|
||||
|
|
4
compat.h
4
compat.h
|
@ -31,6 +31,10 @@ extern char **environ;
|
|||
# undef PIPE_STATES_SOCKET
|
||||
#endif
|
||||
|
||||
#if defined(__sun) || defined(__sun__) || defined(__SunOS)
|
||||
# define XIO_ANCILLARY_TYPE_SOLARIS 1
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/* substitute some features that might be missing on some platforms */
|
||||
|
|
4
xio-ip.c
4
xio-ip.c
|
@ -618,7 +618,11 @@ int xiolog_ancillary_ip(struct cmsghdr *cmsg, int *num,
|
|||
cmsgtype = "IP_OPTIONS"; cmsgname = "options"; cmsgctr = -1;
|
||||
/*!!!*/
|
||||
break;
|
||||
#if XIO_ANCILLARY_TYPE_SOLARIS
|
||||
case IP_RECVTOS:
|
||||
#else
|
||||
case IP_TOS:
|
||||
#endif
|
||||
cmsgtype = "IP_TOS"; cmsgname = "tos"; cmsgctr = msglen;
|
||||
break;
|
||||
case IP_TTL: /* Linux */
|
||||
|
|
Loading…
Reference in a new issue