From 663c6adac53065414e484041ee5ea2bb13c3cac4 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Mon, 10 Jun 2013 22:26:26 +0000 Subject: [PATCH] More ARP bugfixes git-svn-id: svn://kolibrios.org@3640 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/ARP.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/network/ARP.inc b/kernel/trunk/network/ARP.inc index 8fd1cf9a09..56bf7d60fa 100644 --- a/kernel/trunk/network/ARP.inc +++ b/kernel/trunk/network/ARP.inc @@ -496,11 +496,11 @@ ARP_IP_to_MAC: ;-------------------------------- ; Try to find the IP in ARP_table - mov ecx, [ARP_entries_num] + mov ecx, [ARP_entries_num + edi] test ecx, ecx jz .not_in_list 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 .scan_loop: cmp [esi], eax