summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-01-13 18:36:46 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-01-13 18:36:46 +0000
commit7b037328c6bb87e096c65d4f1dfddad90b62b4b8 (patch)
treefb54ae8ef55f61b292df96240828cee473d2e474 /usr.bin
parent8f74f1cc73c677ce0e76731eaa9f5d672016be7b (diff)
reorder, typo
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/packet.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c
index f457fc12aef..0db6797920d 100644
--- a/usr.bin/ssh/packet.c
+++ b/usr.bin/ssh/packet.c
@@ -37,7 +37,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: packet.c,v 1.43 2001/01/13 18:32:50 markus Exp $");
+RCSID("$OpenBSD: packet.c,v 1.44 2001/01/13 18:36:45 markus Exp $");
#include "xmalloc.h"
#include "buffer.h"
@@ -1233,6 +1233,10 @@ void
packet_set_interactive(int interactive)
{
static int called = 0;
+ int lowdelay = IPTOS_LOWDELAY;
+ int throughput = IPTOS_THROUGHPUT;
+ int on = 1;
+
if (called)
return;
called = 1;
@@ -1252,7 +1256,6 @@ packet_set_interactive(int interactive)
* IPTOS_LOWDELAY and TCP_NODELAY.
*/
if (packet_connection_is_ipv4()) {
- int lowdelay = IPTOS_LOWDELAY;
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS,
(void *) &lowdelay, sizeof(lowdelay)) < 0)
error("setsockopt IPTOS_LOWDELAY: %.100s",
@@ -1266,7 +1269,6 @@ packet_set_interactive(int interactive)
* Set IP options for a non-interactive connection. Use
* IPTOS_THROUGHPUT.
*/
- int throughput = IPTOS_THROUGHPUT;
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &throughput,
sizeof(throughput)) < 0)
error("setsockopt IPTOS_THROUGHPUT: %.100s", strerror(errno));