Open WOnder93 opened 5 years ago
If I boot with ipv6.disable=1 and run with this patch applied, I get the following:
`inet_socket/test ............ 34/38 ip6tables v1.8.2 (legacy): can't initialize ip6tables table
security': Address family not supported by protocol
Perhaps ip6tables or your kernel needs to be upgraded.
ip6tables v1.8.2 (legacy): can't initialize ip6tables table security': Address family not supported by protocol Perhaps ip6tables or your kernel needs to be upgraded. Could not open socket to kernel: Address family not supported by protocol Could not open socket to kernel: Address family not supported by protocol Could not open socket to kernel: Address family not supported by protocol ip6tables v1.8.2 (legacy): can't initialize ip6tables table
security': Address family not supported by protocol
Perhaps ip6tables or your kernel needs to be upgraded.
Could not open socket to kernel: Address family not supported by protocol
Could not open socket to kernel: Address family not supported by protocol
Could not open socket to kernel: Address family not supported by protocol
Could not open socket to kernel: Address family not supported by protocol
inet_socket/test ............ 38/38 ip6tables v1.8.2 (legacy): can't initialize ip6tables table security': Address family not supported by protocol Perhaps ip6tables or your kernel needs to be upgraded. ip6tables v1.8.2 (legacy): can't initialize ip6tables table
security': Address family not supported by protocol
Perhaps ip6tables or your kernel needs to be upgraded.
sctp/test ................... Server socket: Address family not supported by protocol
Client connect: Connection refused
sctp/test ................... 1/86
Client connect: Connection refused
Client sctp_recvmsg: Transport endpoint is not connected
Client socket: Address family not supported by protocol
socket - server: Address family not supported by protocol
socket - server: Address family not supported by protocol
socket: Address family not supported by protocol
socket: Address family not supported by protocol
sctp/test ................... 12/86 Server socket: Address family not supported by protocol Client connect: Operation now in progress sctp/test ................... 13/86
Client connect: Operation now in progress sctp/test ................... 14/86
sctp/test ................... 15/86 Server socket: Address family not supported by protocol Client socket: Address family not supported by protocol sctp/test ................... 16/86
Client socket: Address family not supported by protocol
Server socket: Address family not supported by protocol Client connect: Operation now in progress sctp/test ................... 21/86
sctp/test ................... 65/86 netlabelctl: error, no message was received netlabelctl: error, invalid argument or parameter Server socket: Address family not supported by protocol Client socket: Address family not supported by protocol sctp/test ................... 66/86
Client socket: Address family not supported by protocol
Client socket: Address family not supported by protocol
Client socket: Address family not supported by protocol
Server socket: Address family not supported by protocol Client socket: Address family not supported by protocol sctp/test ................... 71/86
Client socket: Address family not supported by protocol
Client socket: Address family not supported by protocol
Server socket: Address family not supported by protocol Client socket: Address family not supported by protocol sctp/test ................... 76/86
Client socket: Address family not supported by protocol
netlabelctl: error, no message was received ip6tables v1.8.2 (legacy): can't initialize ip6tables table `security': Address family not supported by protocol Perhaps ip6tables or your kernel needs to be upgraded. Could not open socket to kernel: Address family not supported by protocol Could not open socket to kernel: Address family not supported by protocol Could not open socket to kernel: Address family not supported by protocol Could not open socket to kernel: Address family not supported by protocol Server socket: Address family not supported by protocol Client connect: Operation now in progress sctp/test ................... 79/86
sctp/test ................... 80/86 Client socket: Address family not supported by protocol
Server socket: Address family not supported by protocol Client connect: Operation now in progress sctp/test ................... 83/86
sctp/test ................... 84/86 Client socket: Address family not supported by protocol
ip6tables v1.8.2 (legacy): can't initialize ip6tables table `security': Address family not supported by protocol Perhaps ip6tables or your kernel needs to be upgraded.
sctp/test ................... Dubious, test returned 37 (wstat 9472, 0x2500) Failed 37/86 subtests
Hm, I don't remember how I tested this patch back then... I'll need to have a fresh look at it.
Detect if IPv6 is disabled and only test IPv6 stuff if it is enabled.
This allows to run the testsuite also on machines where IPv6 is disabled via kernel command line (ipv6.disable=1).