More ARP bugfixes
git-svn-id: svn://kolibrios.org@3640 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2e79963e19
commit
663c6adac5
|
@ -496,11 +496,11 @@ ARP_IP_to_MAC:
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
; Try to find the IP in ARP_table
|
; Try to find the IP in ARP_table
|
||||||
|
|
||||||
mov ecx, [ARP_entries_num]
|
mov ecx, [ARP_entries_num + edi]
|
||||||
test ecx, ecx
|
test ecx, ecx
|
||||||
jz .not_in_list
|
jz .not_in_list
|
||||||
mov esi, edi
|
mov esi, edi
|
||||||
imul esi, sizeof.ARP_entry * ARP_TABLE_SIZE
|
imul esi, (sizeof.ARP_entry * ARP_TABLE_SIZE)/4
|
||||||
add esi, ARP_table + ARP_entry.IP
|
add esi, ARP_table + ARP_entry.IP
|
||||||
.scan_loop:
|
.scan_loop:
|
||||||
cmp [esi], eax
|
cmp [esi], eax
|
||||||
|
|
Loading…
Reference in New Issue