diff --git a/src/test/netfilter_ipv6.c b/src/test/netfilter_ipv6.c index cae6cc52566..c35384b62c3 100644 --- a/src/test/netfilter_ipv6.c +++ b/src/test/netfilter_ipv6.c @@ -12,6 +12,11 @@ int main(void) { } int sock_fd = socket(AF_INET6, SOCK_RAW, IPPROTO_RAW); + if (sock_fd < 0 && errno == EAFNOSUPPORT) { + atomic_puts("IPV6 not supported, skipping test"); + atomic_puts("EXIT-SUCCESS"); + return 0; + } test_assert(sock_fd >= 0); struct ip6t_getinfo* info;