OpenConnect 7.08 fails to compile on GNU/Hurd
Mike Miller
mtmiller at debian.org
Wed Jun 21 12:16:42 PDT 2017
On Sat, Dec 24, 2016 at 18:31:33 -0800, Mike Miller wrote:
> OpenConnect 7.08 fails to build on GNU/Hurd, because the IPV6_TCLASS
> option is not declared by glibc on that platform. This was introduced in
> commit 37316927 (Add --passtos option to copy TOS/TCLASS from VPN
> packets).
>
> I can work around this by simply defining around this option. Would the
> following patch work to safely and silently disable this feature in this
> case?
Ping Ralph and David, does this patch seem ok to you?
> --- a/ssl.c
> +++ b/ssl.c
> @@ -914,7 +914,11 @@
> struct sockaddr_in6 *sin = (void *)vpninfo->dtls_addr;
> sin->sin6_port = htons(port);
> vpninfo->dtls_tos_proto = IPPROTO_IPV6;
> +#if defined(IPV6_TCLASS)
> vpninfo->dtls_tos_optname = IPV6_TCLASS;
> +#else
> + vpninfo->dtls_tos_optname = 0;
> +#endif
> } else {
> vpn_progress(vpninfo, PRG_ERR,
> _("Unknown protocol family %d. Cannot create UDP server address\n"),
Thanks,
--
mike
More information about the openconnect-devel
mailing list