That's returned on systems without IPv6 support (e.g. boot with ipv6.disable=1). Signed-off-by: Petr Vorel <pvorel@xxxxxxx> --- utils/sctp/testlib/sctputil.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/sctp/testlib/sctputil.h b/utils/sctp/testlib/sctputil.h index 1e21760bec..c4bedb47cf 100644 --- a/utils/sctp/testlib/sctputil.h +++ b/utils/sctp/testlib/sctputil.h @@ -133,9 +133,14 @@ extern int TST_CNT; static inline int test_socket(int domain, int type, int protocol) { int sk = socket(domain, type, protocol); + int res = TBROK; - if (sk == -1) - tst_brkm(TBROK, tst_exit, "socket: %s", strerror(errno)); + if (sk == -1) { + if (errno == EAFNOSUPPORT) + res = TCONF; + + tst_brkm(res, tst_exit, "socket: %s", strerror(errno)); + } return sk; } -- 2.35.1