From 790b435709222a288cde1f1b03901b1d2c550379 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 28 Aug 2012 19:30:47 +0000 Subject: [PATCH] Fixed scaling option in TCP_output git-svn-id: svn://kolibrios.org@2952 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/network/tcp_output.inc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/kernel/branches/net/network/tcp_output.inc b/kernel/branches/net/network/tcp_output.inc index 814d959cf2..f01e330595 100644 --- a/kernel/branches/net/network/tcp_output.inc +++ b/kernel/branches/net/network/tcp_output.inc @@ -340,23 +340,24 @@ TCP_send: DEBUGF 1,"TCP_send: added maxseg option\n" test [eax + TCP_SOCKET.t_flags], TF_REQ_SCALE - jz .no_syn + jz .no_scale test dl, TH_ACK - jnz .scale_opt + jz .scale_opt test [eax + TCP_SOCKET.t_flags], TF_RCVD_SCALE - jz .no_syn + jz .no_scale .scale_opt: - movzx ecx, byte [eax + TCP_SOCKET.request_r_scale] - or ecx, TCP_OPT_WINDOW shl 24 + 4 shl 16 + TCP_OPT_NOP shl 8 - bswap ecx - pushd ecx + mov cl, [eax + TCP_SOCKET.request_r_scale] + mov ch, TCP_OPT_NOP + pushw cx + pushw TCP_OPT_WINDOW + 3 shl 8 add di, 4 DEBUGF 1,"TCP_send: added scale option\n" + .no_scale: .no_syn: ;------------------------------------