Subversion Repositories Kolibri OS

Rev

Rev 3600 | Rev 3647 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3600 Rev 3644
Line 48... Line 48...
48
        add_to_queue TCP_queue, TCP_QUEUE_SIZE, sizeof.TCP_queue_entry, .fail
48
        add_to_queue TCP_queue, TCP_QUEUE_SIZE, sizeof.TCP_queue_entry, .fail
49
        popf
49
        popf
Line 50... Line 50...
50
 
50
 
Line -... Line 51...
-
 
51
        add     esp, sizeof.TCP_queue_entry
-
 
52
 
-
 
53
        call    NET_ptr_to_num4
51
        add     esp, sizeof.TCP_queue_entry
54
        inc     [TCP_segments_rx + edi]
52
 
55
 
53
        xor     edx, edx
56
        xor     edx, edx
54
        mov     eax, [TCP_input_event]
57
        mov     eax, [TCP_input_event]
55
        mov     ebx, [eax + EVENT.id]
58
        mov     ebx, [eax + EVENT.id]
Line 60... Line 63...
60
 
63
 
61
  .fail:
64
  .fail:
62
        popf
65
        popf
Line -... Line 66...
-
 
66
        DEBUGF  DEBUG_NETWORK_VERBOSE, "TCP incoming queue is full, discarding packet!\n"
63
        DEBUGF  DEBUG_NETWORK_VERBOSE, "TCP incoming queue is full, discarding packet!\n"
67
 
Line 64... Line 68...
64
 
68
        call    NET_ptr_to_num4
65
        inc     [TCP_segments_missed]   ; FIXME: use correct interface
69
        inc     [TCP_segments_missed + edi]
66
 
70
 
Line 176... Line 180...
176
        test    ax, ax
180
        test    ax, ax
177
        jnz     .socket_loop
181
        jnz     .socket_loop
178
  .found_socket:                                        ; ebx now contains the socketpointer
182
  .found_socket:                                        ; ebx now contains the socketpointer
179
        DEBUGF  DEBUG_NETWORK_VERBOSE, "TCP_input: socket ptr=%x state=%u flags=%x\n", ebx, [ebx + TCP_SOCKET.t_state], [edx + TCP_header.Flags]:2
183
        DEBUGF  DEBUG_NETWORK_VERBOSE, "TCP_input: socket ptr=%x state=%u flags=%x\n", ebx, [ebx + TCP_SOCKET.t_state], [edx + TCP_header.Flags]:2
Line 180... Line -...
180
 
-
 
181
;-------------
-
 
182
; update stats
-
 
183
 
-
 
184
        inc     [TCP_segments_rx]                       ; FIXME: correct interface?
-
 
185
 
184
 
186
;----------------------------
185
;----------------------------
Line 187... Line 186...
187
; Check if socket isnt closed
186
; Check if socket isnt closed
188
 
187