Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2307 → Rev 2308

/kernel/branches/net/network/udp.inc
108,10 → 108,8
; ebx = ptr to device struct
; ecx = UDP Packet size
; edx = ptr to UDP header
; edi = ptr to ipv4 source and dest address
;
; esi = ipv4 source address
; edi = ipv4 dest address
;
; OUT: /
;
;-----------------------------------------------------------------
129,7 → 127,7
push edi
push esi
mov esi, edx
UDP_checksum (esp), (esp+4)
UDP_checksum (edi), (edi+4)
pop edi
pop esi ; we dont need it, but it is smaller then add esp, 4
pop edx
163,7 → 161,8
 
cmp [eax + IP_SOCKET.RemoteIP], 0xffffffff
je @f
cmp [eax + IP_SOCKET.RemoteIP], edi ; edi is the packets source address
mov edi, [edi + 4] ; ipv4 source address
cmp [eax + IP_SOCKET.RemoteIP], edi
jne .try_more
@@: