test.sh checks for SCTP in kernel

This commit is contained in:
Gerhard Rieger 2022-10-29 20:24:09 +02:00
parent cf81901fe5
commit 56a56e127c
2 changed files with 6 additions and 0 deletions

View file

@ -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:

View file

@ -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;
}