Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41a6307146 | ||
|
|
33f6568fa0 | ||
|
|
f28e09d297 | ||
|
|
0a72224228 |
No files matched your search
@@ -72,7 +72,7 @@ TCP_time_rtt_default = 5 ; default Round Trip Time (3,2s)
|
||||
TCP_time_srtt_default = 0 ;
|
||||
TCP_time_max_idle = 8*TCP_time_keep_interval ; FIXME
|
||||
|
||||
TCP_time_connect = 300 ; in 1/100s (default=3s)
|
||||
TCP_time_connect = 1000 ; in 1/100s (default=10s)
|
||||
|
||||
; timer constants
|
||||
TCP_max_rxtshift = 12 ; max retransmissions waiting for ACK
|
||||
|
||||
@@ -399,6 +399,7 @@ endl
|
||||
bswap eax
|
||||
mov [ebx + TCP_SOCKET.ts_val], eax
|
||||
lodsd ; timestamp echo reply
|
||||
bswap eax
|
||||
mov [ebx + TCP_SOCKET.ts_ecr], eax
|
||||
or [temp_bits], TCP_BIT_TIMESTAMP
|
||||
|
||||
@@ -978,7 +979,7 @@ endl
|
||||
|
||||
inc [ebx + TCP_SOCKET.t_dupacks]
|
||||
cmp [ebx + TCP_SOCKET.t_dupacks], TCP_re_xmit_thresh
|
||||
jb .dup_ack_complete
|
||||
jb .ack_processed
|
||||
ja .another_lost
|
||||
|
||||
DEBUGF DEBUG_NETWORK_VERBOSE, "TCP_input: Re-transmitting lost segment\n"
|
||||
|
||||
@@ -391,8 +391,14 @@ endl
|
||||
jz .no_timestamp
|
||||
|
||||
.timestamp:
|
||||
pushd 0
|
||||
pushd [timer_ticks]
|
||||
push ebx
|
||||
mov ebx, [eax + TCP_SOCKET.ts_recent]
|
||||
bswap ebx
|
||||
xchg ebx, [esp] ; TSecr
|
||||
push ebx
|
||||
mov ebx, [timer_ticks]
|
||||
bswap ebx
|
||||
xchg ebx, [esp] ; TSval
|
||||
pushd TCP_OPT_NOP + TCP_OPT_NOP shl 8 + TCP_OPT_TIMESTAMP shl 16 + 10 shl 24
|
||||
add di, 12
|
||||
|
||||
@@ -413,10 +419,12 @@ endl
|
||||
; check if we don't exceed the max segment size
|
||||
|
||||
add esi, edi ; total TCP segment size
|
||||
cmp esi, [eax + TCP_SOCKET.t_maxseg]
|
||||
mov ebx, [eax + TCP_SOCKET.t_maxseg]
|
||||
add ebx, sizeof.TCP_header ; MSS does not count the header
|
||||
cmp esi, ebx
|
||||
jbe .no_overflow
|
||||
|
||||
mov esi, [eax + TCP_SOCKET.t_maxseg]
|
||||
mov esi, ebx
|
||||
or [temp_bits], TCP_BIT_SENDALOT
|
||||
.no_overflow:
|
||||
|
||||
|
||||
Reference in new issue
Block a user