[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bindv6only again



* Julien Cristau:

> +#if defined(ENABLE_IPV6) && defined(IPV6_V6ONLY)
> +	if (ai->ai_family == AF_INET6) {
> +		int zero = 0;
> +		if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &zero, sizeof(zero)) < 0)
> +			g_warning("setsockopt(IPV6_V6ONLY): %s", g_strerror(errno));
> +	}
> +#endif
> +

Isn't it a bug in getaddrinfo that it doesn't do that on its own?  Or
does it return multiple sockets in this case?


Reply to: