Subversion Repositories Kolibri OS

Rev

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

Rev 1536 Rev 1542
Line 14... Line 14...
14
;;          GNU GENERAL PUBLIC LICENSE                             ;;
14
;;          GNU GENERAL PUBLIC LICENSE                             ;;
15
;;             Version 2, June 1991                                ;;
15
;;             Version 2, June 1991                                ;;
16
;;                                                                 ;;
16
;;                                                                 ;;
17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 18... Line 18...
18
 
18
 
Line 19... Line 19...
19
$Revision: 1536 $
19
$Revision: 1542 $
20
 
20
 
21
; Socket states
21
; Socket states
22
TCB_CLOSED		equ 0
22
TCB_CLOSED		equ 0
Line 133... Line 133...
133
  .loop:
133
  .loop:
134
	mov	eax, [eax + SOCKET.NextPtr]
134
	mov	eax, [eax + SOCKET.NextPtr]
135
	or	eax, eax
135
	or	eax, eax
136
	jz	.exit
136
	jz	.exit
Line 137... Line 137...
137
 
137
 
138
	cmp	[eax + SOCKET.Type], IP_PROTO_TCP
138
	cmp	[eax + SOCKET.Protocol], IP_PROTO_TCP		;;; We should also check if family is AF_INET
Line 139... Line 139...
139
	jne	.loop
139
	jne	.loop
140
 
140
 
Line 175... Line 175...
175
	mov	eax, [eax + SOCKET.NextPtr]
175
	mov	eax, [eax + SOCKET.NextPtr]
176
  .check_only:
176
  .check_only:
177
	or	eax, eax
177
	or	eax, eax
178
	jz	.exit
178
	jz	.exit
Line 179... Line 179...
179
 
179
 
180
	cmp	[eax + SOCKET.Type], IP_PROTO_TCP
180
	cmp	[eax + SOCKET.Protocol], IP_PROTO_TCP	  ;;; We should also check if family is AF_INET
Line 181... Line 181...
181
	jne	.loop
181
	jne	.loop
182
 
182
 
183
	inc	[eax + TCP_SOCKET.t_idle]
183
	inc	[eax + TCP_SOCKET.t_idle]
Line 376... Line 376...
376
  .socket_loop:
376
  .socket_loop:
377
	mov	ebx, [ebx + SOCKET.NextPtr]
377
	mov	ebx, [ebx + SOCKET.NextPtr]
378
	or	ebx, ebx
378
	or	ebx, ebx
379
	jz	.drop_with_reset
379
	jz	.drop_with_reset
Line 380... Line 380...
380
 
380
 
381
	cmp	[ebx + SOCKET.Type], IP_PROTO_TCP
381
	cmp	[ebx + SOCKET.Protocol], IP_PROTO_TCP	  ;;; We should also check if family is AF_INET
Line 382... Line 382...
382
	jne	.socket_loop
382
	jne	.socket_loop
383
 
383
 
384
	mov	ax, [edx + TCP_segment.DestinationPort]
384
	mov	ax, [edx + TCP_segment.DestinationPort]
Line 1104... Line 1104...
1104
	popa
1104
	popa
Line 1105... Line 1105...
1105
 
1105
 
Line -... Line 1106...
-
 
1106
 
-
 
1107
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  code missing (943?)
1106
 
1108
 
1107
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  code missing (943?)
1109
 
Line 1108... Line 1110...
1108
 
1110
 
1109
	mov	eax, [edx + TCP_segment.AckNumber]
1111
	mov	eax, [edx + TCP_segment.AckNumber]
1110
	mov	[ebx + TCP_SOCKET.SND_UNA], eax
1112
	mov	[ebx + TCP_SOCKET.SND_UNA], eax
1111
 
1113
 
Line 1112... Line -...
1112
	cmp	eax, [ebx + TCP_SOCKET.SND_NXT]
-
 
Line 1113... Line 1114...
1113
	jl	@f
1114
	cmp	eax, [ebx + TCP_SOCKET.SND_NXT]
1114
	mov	[ebx + TCP_SOCKET.SND_NXT], eax
1115
	jl	@f
Line 1115... Line 1116...
1115
       @@:
1116
	mov	[ebx + TCP_SOCKET.SND_NXT], eax