Fixed bug in TCP.

Error occured when receiving a TCP segment wich has no local socket. (netbranch)

git-svn-id: svn://kolibrios.org@2600 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr
2012-04-11 13:07:45 +00:00
parent e047996abc
commit cb6e8e3fb9
2 changed files with 48 additions and 17 deletions

View File

@@ -313,8 +313,7 @@ TCP_respond_socket:
;-------------------------
; TCP_respond.segment:
;
; IN: ebx = ptr to driver
; edx = segment ptr (a previously received segment)
; IN: edx = segment ptr (a previously received segment)
; edi = ptr to dest and src IPv4 addresses
; cl = flags
@@ -326,14 +325,14 @@ TCP_respond_segment:
;---------------------
; Create the IP packet
push cx edx ebx
push cx edx
mov ebx, [edi + 4]
mov eax, [edi]
mov ecx, sizeof.TCP_header
mov di , IP_PROTO_TCP shl 8 + 128
call IPv4_output
jz .error
pop ebx esi cx
pop esi cx
push edx eax