diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -17,7 +17,7 @@ */ #include "includes.h" -RCSID("$Id: packet.c,v 1.22 2000/05/07 02:03:17 damien Exp $"); +RCSID("$Id: packet.c,v 1.23 2000/05/17 12:53:35 damien Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -1237,10 +1237,12 @@ packet_set_interactive(int interactive, int keepalives) * Set IP options for an interactive connection. Use * IPTOS_LOWDELAY and TCP_NODELAY. */ +#ifdef IP_TOS int lowdelay = IPTOS_LOWDELAY; if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &lowdelay, sizeof(lowdelay)) < 0) error("setsockopt IPTOS_LOWDELAY: %.100s", strerror(errno)); +#endif if (setsockopt(connection_in, IPPROTO_TCP, TCP_NODELAY, (void *) &on, sizeof(on)) < 0) error("setsockopt TCP_NODELAY: %.100s", strerror(errno)); @@ -1249,10 +1251,12 @@ packet_set_interactive(int interactive, int keepalives) * Set IP options for a non-interactive connection. Use * IPTOS_THROUGHPUT. */ +#ifdef IP_TOS int throughput = IPTOS_THROUGHPUT; if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &throughput, sizeof(throughput)) < 0) error("setsockopt IPTOS_THROUGHPUT: %.100s", strerror(errno)); +#endif } } |