Subversion Repositories Kolibri OS

Rev

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

Rev 2362 Rev 2402
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: 2362 $
17
$Revision: 2402 $
18
 
18
 
19
;-----------------------------------------------------------------
19
;-----------------------------------------------------------------
20
;
20
;
Line 262... Line 262...
262
;----------------------------
262
;----------------------------
263
; No reason to send a segment (219)
263
; No reason to send a segment (219)
Line 264... Line 264...
264
 
264
 
Line -... Line 265...
-
 
265
        DEBUGF  1,"No reason to send a segment\n"
265
	DEBUGF	1,"No reason to send a segment\n"
266
 
-
 
267
        pusha
-
 
268
        lea     ecx, [eax + SOCKET.mutex]
Line 266... Line 269...
266
 
269
        call    mutex_unlock
Line 509... Line 512...
509
	TCP_checksum (eax + IP_SOCKET.LocalIP), (eax + IP_SOCKET.RemoteIP)
512
        TCP_checksum (eax + IP_SOCKET.LocalIP), (eax + IP_SOCKET.RemoteIP)
510
	mov	[esi + TCP_header.Checksum], dx
513
        mov     [esi + TCP_header.Checksum], dx
Line 511... Line 514...
511
 
514
 
Line -... Line 515...
-
 
515
; unlock socket
512
; unlock socket
516
 
-
 
517
        pusha
-
 
518
        lea     ecx, [eax + SOCKET.mutex]
Line 513... Line 519...
513
 
519
        call    mutex_unlock
514
	mov	[eax + SOCKET.lock], 0
520
        popa
Line 515... Line 521...
515
 
521
 
Line 524... Line 530...
524
  .fail:
530
  .fail:
525
	pop	ecx
531
        pop     ecx
526
	add	esp, ecx
532
        add     esp, ecx
527
	pop	eax
533
        pop     eax
528
	add	esp, 8
534
        add     esp, 8
-
 
535
 
-
 
536
        pusha
529
	mov	[eax + SOCKET.lock], 0
537
        lea     ecx, [eax + SOCKET.mutex]
-
 
538
        call    mutex_unlock
-
 
539
        popa
-
 
540
 
530
	DEBUGF 1,"TCP_output: failed\n"
541
        DEBUGF 1,"TCP_output: failed\n"
531
	ret
542
        ret