[PATCH V2 2/6] NaCl: Disable IPV6_PATHMTU getsockopt() call

Kevin Cernekee cernekee at gmail.com
Sun Apr 17 23:04:58 PDT 2016


Unfortunately this feature is not yet supported under NaCl, and it
results in a compile error.

Signed-off-by: Kevin Cernekee <cernekee at gmail.com>
---
 dtls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dtls.c b/dtls.c
index 3b9cbbe7a5bb..a8752552039c 100644
--- a/dtls.c
+++ b/dtls.c
@@ -1265,7 +1265,7 @@ static int detect_mtu_ipv6(struct openconnect_info *vpninfo, unsigned char *buf)
 		break;
 	} while(max_resends-- > 0);
 
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__native_client__)
 	/* If we received back our DPD packet, do nothing; otherwise,
 	 * attempt to get MTU from the ICMP6 packet we received */
 	if (ret <= 0) {
-- 
2.8.1




More information about the openconnect-devel mailing list