[openssh-commits] [openssh] 01/01: Omit ToS setting if we don't have IPV6_TCLASS too.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri May 29 20:40:26 AEST 2020
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 837ffa9699a9cba47ae7921d2876afaccc027133
Author: Darren Tucker <dtucker at dtucker.net>
Date: Fri May 29 20:39:00 2020 +1000
Omit ToS setting if we don't have IPV6_TCLASS too.
Fixes tests on old BSDs.
---
regress/netcat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/regress/netcat.c b/regress/netcat.c
index 24395263..d583176f 100644
--- a/regress/netcat.c
+++ b/regress/netcat.c
@@ -1187,7 +1187,7 @@ set_common_sockopts(int s, int af)
&x, sizeof(x)) == -1)
err(1, "setsockopt");
}
-#ifdef IP_TOS
+#if defined(IP_TOS) && defined(IPV6_TCLASS)
if (Tflag != -1) {
int proto, option;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list