Subversion Repositories Kolibri OS

Rev

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

Rev 2208 Rev 2288
Line 25... Line 25...
25
;;   22.09.2003 - [Mike Hibbett] : mikeh@oceanfree.net          ;;
25
;;   22.09.2003 - [Mike Hibbett] : mikeh@oceanfree.net          ;;
26
;;   11.11.2006 - [Johnny_B] and [smb]                          ;;
26
;;   11.11.2006 - [Johnny_B] and [smb]                          ;;
27
;;                                                              ;;
27
;;                                                              ;;
28
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
28
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 29... Line 29...
29
 
29
 
Line 30... Line 30...
30
$Revision: 2208 $
30
$Revision: 2288 $
31
 
31
 
32
; socket data structure
32
; socket data structure
33
struct SOCKET
33
struct SOCKET
Line 471... Line 471...
471
 
471
 
472
	mov	ebx, TCB_LISTEN
472
        mov     ebx, TCB_LISTEN
473
	cmp	esi, SOCKET_PASSIVE
473
        cmp     esi, SOCKET_PASSIVE
474
	je	@f
474
        je      @f
-
 
475
        mov     ebx, TCB_SYN_SENT
475
	mov	ebx, TCB_SYN_SENT
476
    @@:
Line 476... Line 477...
476
    @@: mov	[eax + SOCKET.TCBState], ebx		; Indicate the state of the TCB
477
        mov     [eax + SOCKET.TCBState], ebx            ; Indicate the state of the TCB
477
 
478
 
Line 478... Line 479...
478
	cmp	ebx, TCB_LISTEN
479
        cmp     ebx, TCB_LISTEN
Line 568... Line 569...
568
	je	@f		    ; found one
569
        je      @f                  ; found one
569
	inc	ecx
570
        inc     ecx
570
	add	esi, 8
571
        add     esi, 8
571
	jmp	.next_resendq
572
        jmp     .next_resendq
Line -... Line 573...
-
 
573
 
572
 
574
    @@:
573
    @@: mov	dword[esi + 4], 0
575
        mov     dword[esi + 4], 0
574
	inc	ecx
576
        inc     ecx
575
	add	esi, 8
577
        add     esi, 8
Line 576... Line 578...
576
	jmp	.next_resendq
578
        jmp     .next_resendq
Line 959... Line 961...
959
	; (0 is reserved for 'not used')
961
        ; (0 is reserved for 'not used')
960
	test	ax, ax
962
        test    ax, ax
961
	jnz	@f
963
        jnz     @f
962
	mov	ax, 0xffff
964
        mov     ax, 0xffff
Line -... Line 965...
-
 
965
 
963
 
966
    @@:
964
    @@: xchg	al, ah
967
        xchg    al, ah
Line 965... Line 968...
965
	mov	[edx + 20 + UDP_PACKET.Checksum], ax
968
        mov     [edx + 20 + UDP_PACKET.Checksum], ax
966
 
969
 
967
	; Fill in the IP header checksum
970
        ; Fill in the IP header checksum
Line 1077... Line 1080...
1077
	je	@f		   ; found one
1080
        je      @f                 ; found one
1078
	inc	ecx
1081
        inc     ecx
1079
	add	esi, 8
1082
        add     esi, 8
1080
	jmp	.next_resendq
1083
        jmp     .next_resendq
Line -... Line 1084...
-
 
1084
 
1081
 
1085
    @@:
Line 1082... Line 1086...
1082
    @@: push	ebx
1086
        push    ebx
1083
 
1087
 
1084
	; OK, we have a buffer descriptor ptr in esi.
1088
        ; OK, we have a buffer descriptor ptr in esi.
1085
	; resend entry # in ecx
1089
        ; resend entry # in ecx
Line 1096... Line 1100...
1096
 
1100
 
1097
	inc	ecx
1101
        inc     ecx
1098
	; Now get buffer location, and copy buffer across. argh! more copying,,
1102
        ; Now get buffer location, and copy buffer across. argh! more copying,,
Line -... Line 1103...
-
 
1103
        mov     edi, resendBuffer - IPBUFFSIZE
1099
	mov	edi, resendBuffer - IPBUFFSIZE
1104
 
1100
 
1105
    @@:
Line 1101... Line 1106...
1101
    @@: add	edi, IPBUFFSIZE
1106
        add     edi, IPBUFFSIZE
1102
	loop	@b
1107
        loop    @b
1103
 
1108