Subversion Repositories Kolibri OS

Rev

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

Rev 1773 Rev 1830
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: 1773 $
17
$Revision: 1830 $
18
 
18
 
19
;----------------------
19
;----------------------
20
; 160 ms timer
20
; 160 ms timer
Line 21... Line 21...
21
;----------------------
21
;----------------------
22
macro	TCP_timer_160ms {
22
macro	TCP_timer_160ms {
Line 23... Line 23...
23
 
23
 
24
local	.loop
24
local	.loop
25
local	.exit
25
local	.exit
26
 
26
 
27
	mov	eax, net_sockets
27
	mov	ebx, net_sockets
Line 28... Line 28...
28
  .loop:
28
  .loop:
29
	mov	eax, [eax + SOCKET.NextPtr]
29
	mov	ebx, [ebx + SOCKET.NextPtr]
Line 30... Line 30...
30
	or	eax, eax
30
	or	ebx, ebx
31
	jz	.exit
31
	jz	.exit
Line -... Line 32...
-
 
32
 
-
 
33
	cmp	[ebx + SOCKET.Domain], AF_INET4
32
 
34
	jne	.loop
Line 33... Line 35...
33
	cmp	[eax + SOCKET.Protocol], IP_PROTO_TCP		;;; We should also check if family is AF_INET
35
 
-
 
36
	cmp	[ebx + SOCKET.Protocol], IP_PROTO_TCP		;;; We should also check if family is AF_INET
34
	jne	.loop
37
	jne	.loop
35
 
38
 
Line 36... Line 39...
36
	dec	[eax + TCP_SOCKET.timer_ack]
39
	test	[ebx + TCP_SOCKET.t_flags], TF_DELACK
Line 37... Line 40...
37
	jnz	.loop
40
	jz	.loop