Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1529 → Rev 1530

/kernel/branches/net/network/ARP.inc
499,10 → 499,25
cmp eax, -1
je .full
 
mov ecx, eax
pop eax
 
push ecx
call ARP_output_request
 
;; TODO: check if driver could transmit packet
 
pop eax
imul eax, ARP_ENTRY.size
add eax, ARP_table
 
mov ecx, 25
.wait_loop:
cmp [eax + ARP_ENTRY.Status], 1
je .got_it
mov esi, 10
call delay_ms
loop .wait_loop
 
mov eax, -2 ; request send
ret
 
511,6 → 526,7
cmp [esi + ARP_ENTRY.Status], 1
jne .invalid
 
.got_it:
movzx eax, word [esi+ARP_ENTRY.MAC]
mov ebx, dword[esi+ARP_ENTRY.MAC+2]
ret
531,7 → 547,6
ret
 
 
 
;-----------------------------------------------------------------
;
; ARP_API