Rev 1761 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1761 | Rev 1762 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | ; check for window shrink (107) |
86 | ; check for window shrink (107) |
Line 87... | Line 87... | ||
87 | 87 | ||
88 | ; If FIN has been set, but not ACKed, but we havent been called to retransmit, esi will be -1 |
88 | ; If FIN has been set, but not ACKed, but we havent been called to retransmit, esi will be -1 |
Line 89... | Line 89... | ||
89 | ; Otherwise, window shrank after we sent into it. |
89 | ; Otherwise, window shrank after we sent into it. |
Line 90... | Line 90... | ||
90 | 90 | ||
91 | jnc .bigger_than_zero |
91 | jns .not_negative |
Line 92... | Line 92... | ||
92 | 92 | ||
Line 106... | Line 106... | ||
106 | 106 | ||
Line 107... | Line 107... | ||
107 | @@: |
107 | @@: |
Line 108... | Line 108... | ||
108 | 108 | ||
Line 109... | Line 109... | ||
109 | ; If window didn't close completely, just wait for an ACK |
109 | ; If window didn't close completely, just wait for an ACK |
110 | 110 | ||
Line 111... | Line 111... | ||
111 | .bigger_than_zero: |
111 | .not_negative: |
Line 127... | Line 127... | ||
127 | 127 | ||
128 | mov edi, [eax + TCP_SOCKET.SND_NXT] |
128 | mov edi, [eax + TCP_SOCKET.SND_NXT] |
129 | add edi, esi |
129 | add edi, esi |
130 | sub edi, [eax + TCP_SOCKET.SND_UNA] |
130 | sub edi, [eax + TCP_SOCKET.SND_UNA] |
131 | sub edi, [eax + STREAM_SOCKET.snd + RING_BUFFER.size] |
- | |
132 | - | ||
133 | cmp edi, 0 |
131 | sub edi, [eax + STREAM_SOCKET.snd + RING_BUFFER.size] |
Line 134... | Line 132... | ||
134 | jge @f |
132 | jns @f |
Line 135... | Line 133... | ||
135 | 133 |