Rev 6476 | Rev 6907 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6476 | Rev 6710 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | ;; GNU GENERAL PUBLIC LICENSE ;; |
12 | ;; GNU GENERAL PUBLIC LICENSE ;; |
13 | ;; Version 2, June 1991 ;; |
13 | ;; Version 2, June 1991 ;; |
14 | ;; ;; |
14 | ;; ;; |
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 16... | Line 16... | ||
16 | 16 | ||
Line 17... | Line 17... | ||
17 | $Revision: 6476 $ |
17 | $Revision: 6710 $ |
18 | 18 | ||
19 | TCP_BIT_NEEDOUTPUT = 1 shl 0 |
19 | TCP_BIT_NEEDOUTPUT = 1 shl 0 |
20 | TCP_BIT_TIMESTAMP = 1 shl 1 |
20 | TCP_BIT_TIMESTAMP = 1 shl 1 |
Line 857... | Line 857... | ||
857 | DEBUGF DEBUG_NETWORK_VERBOSE, "TCP_input: Closing connection\n" |
857 | DEBUGF DEBUG_NETWORK_VERBOSE, "TCP_input: Closing connection\n" |
858 | mov [ebx + TCP_SOCKET.t_state], TCPS_CLOSED |
858 | mov [ebx + TCP_SOCKET.t_state], TCPS_CLOSED |
859 | inc [TCPS_drops] |
859 | inc [TCPS_drops] |
Line 860... | Line -... | ||
860 | - | ||
861 | - | ||
862 | mov eax, ebx |
860 | |
Line 863... | Line 861... | ||
863 | call tcp_close |
861 | |
864 | jmp .drop_no_socket |
862 | jmp .drop |
865 | 863 | ||
866 | ;----------------------------------------------------------------------------------- |
- | |
867 | .rst_close: |
- | |
868 | DEBUGF DEBUG_NETWORK_VERBOSE, "TCP_input: Closing with reset\n" |
- | |
869 | 864 | ;----------------------------------------------------------------------------------- |
|
Line 870... | Line 865... | ||
870 | mov eax, ebx |
865 | .rst_close: |
871 | call tcp_close |
866 | DEBUGF DEBUG_NETWORK_VERBOSE, "TCP_input: Closing with reset\n" |
Line 872... | Line 867... | ||
872 | jmp .drop_no_socket |
867 | jmp .unlock_and_close |
Line 1309... | Line 1304... | ||
1309 | ; If our FIN is acked however, enter CLOSED state and return. |
1304 | ; If our FIN is acked however, enter CLOSED state and return. |
Line 1310... | Line 1305... | ||
1310 | 1305 | ||
1311 | test [temp_bits], TCP_BIT_FIN_IS_ACKED |
1306 | test [temp_bits], TCP_BIT_FIN_IS_ACKED |
Line -... | Line 1307... | ||
- | 1307 | jz .ack_processed |
|
1312 | jz .ack_processed |
1308 | |
1313 | 1309 | .unlock_and_close: |
|
1314 | push ebx |
1310 | push ebx |
1315 | lea ecx, [ebx + SOCKET.mutex] |
1311 | lea ecx, [ebx + SOCKET.mutex] |