Subversion Repositories Kolibri OS

Rev

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

Rev 2402 Rev 2555
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: 2402 $
17
$Revision: 2555 $
18
 
18
 
19
;-----------------------------------------------------------------
19
;-----------------------------------------------------------------
20
;
20
;
Line 422... Line 422...
422
 
422
 
423
        mov     ebx, [eax + IP_SOCKET.LocalIP]  ; source ip
423
        mov     ebx, [eax + IP_SOCKET.LocalIP]  ; source ip
424
        mov     eax, [eax + IP_SOCKET.RemoteIP] ; dest ip
424
        mov     eax, [eax + IP_SOCKET.RemoteIP] ; dest ip
425
        mov     di, IP_PROTO_TCP shl 8 + 128
425
        mov     di, IP_PROTO_TCP shl 8 + 128
426
        call    IPv4_output
426
        call    IPv4_output
Line 427... Line 427...
427
        jz      .fail
427
        jz      .ip_error
428
 
428
 
Line 429... Line 429...
429
;-----------------------------------------
429
;-----------------------------------------
Line 525... Line 525...
525
        DEBUGF  1,"Sending TCP Packet to device %x\n", ebx
525
        DEBUGF  1,"Sending TCP Packet to device %x\n", ebx
526
        call    [ebx + NET_DEVICE.transmit]
526
        call    [ebx + NET_DEVICE.transmit]
527
        ret
527
        ret
Line 528... Line 528...
528
 
528
 
529
 
529
 
530
  .fail:
530
  .ip_error:
531
        pop     ecx
531
        pop     ecx
532
        add     esp, ecx
532
        add     esp, ecx
Line 533... Line 533...
533
        pop     eax
533
        pop     eax
534
        add     esp, 8
534
        add     esp, 8
535
 
535
 
536
        pusha
536
        pusha
Line 537... Line 537...
537
        lea     ecx, [eax + SOCKET.mutex]
537
        lea     ecx, [eax + SOCKET.mutex]
538
        call    mutex_unlock
538
        call    mutex_unlock