summaryrefslogtreecommitdiffstats
path: root/packet.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-07-11 01:29:50 +0200
committerDamien Miller <djm@mindrot.org>2000-07-11 01:29:50 +0200
commit2ae714f44a0757b8c9771aa686ead98738a3f960 (patch)
treec324db7a3c751c29c7da83204127be3fdccb82b7 /packet.c
parent - (djm) Fixup for AIX getuserattr() support from Tom Bertelson (diff)
downloadopenssh-2ae714f44a0757b8c9771aa686ead98738a3f960.tar.xz
openssh-2ae714f44a0757b8c9771aa686ead98738a3f960.zip
- (djm) ReliantUNIX support from Udo Schweigert <ust@cert.siemens.de>
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet.c b/packet.c
index 137d0181a..56080cbb1 100644
--- a/packet.c
+++ b/packet.c
@@ -1237,7 +1237,7 @@ packet_set_interactive(int interactive, int keepalives)
* Set IP options for an interactive connection. Use
* IPTOS_LOWDELAY and TCP_NODELAY.
*/
-#ifdef IP_TOS
+#if defined(IP_TOS) && !defined(IP_TOS_IS_BROKEN)
int lowdelay = IPTOS_LOWDELAY;
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &lowdelay,
sizeof(lowdelay)) < 0)
@@ -1251,7 +1251,7 @@ packet_set_interactive(int interactive, int keepalives)
* Set IP options for a non-interactive connection. Use
* IPTOS_THROUGHPUT.
*/
-#ifdef IP_TOS
+#if defined(IP_TOS) && !defined(IP_TOS_IS_BROKEN)
int throughput = IPTOS_THROUGHPUT;
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &throughput,
sizeof(throughput)) < 0)