mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 15:32:35 +00:00
test.sh checks for SCTP in kernel
This commit is contained in:
parent
cf81901fe5
commit
56a56e127c
2 changed files with 6 additions and 0 deletions
4
CHANGES
4
CHANGES
|
@ -65,6 +65,10 @@ Testing:
|
|||
UNIX_TO_FILE UNIX_TO_ORPHANED GOPEN_TO_DENIED GOPEN_TO_DIRECTORY
|
||||
GOPEN_TO_ORPHANED
|
||||
|
||||
On RHEL-9 and Ubuntu-22.04 there is SCTP support for development but
|
||||
not in kernel. test.sh now detects this situation and reacts with
|
||||
warnings.
|
||||
|
||||
####################### V 1.7.4.3:
|
||||
|
||||
Corrections:
|
||||
|
|
2
test.sh
2
test.sh
|
@ -2070,6 +2070,7 @@ runsudp6 () {
|
|||
runssctp4 () {
|
||||
runsip4 >/dev/null || { echo SCTP4; return 1; }
|
||||
$SOCAT -h |grep ' sctp4-' >/dev/null || return 1
|
||||
$SOCAT /dev/null SCTP4-L:0,accept-timeout=0.001 2>/dev/null || return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -2077,6 +2078,7 @@ runssctp4 () {
|
|||
runssctp6 () {
|
||||
runsip6 >/dev/null || { echo SCTP6; return 1; }
|
||||
$SOCAT -h |grep ' sctp6-' >/dev/null || return 1
|
||||
$SOCAT /dev/null SCTP6-L:0,accept-timeout=0.001 2>/dev/null || return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue