Rev 3638 | Rev 3643 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3638 | Rev 3640 | ||
---|---|---|---|
Line 494... | Line 494... | ||
494 | je .broadcast |
494 | je .broadcast |
Line 495... | Line 495... | ||
495 | 495 | ||
496 | ;-------------------------------- |
496 | ;-------------------------------- |
Line 497... | Line 497... | ||
497 | ; Try to find the IP in ARP_table |
497 | ; Try to find the IP in ARP_table |
498 | 498 | ||
499 | mov ecx, [ARP_entries_num] |
499 | mov ecx, [ARP_entries_num + edi] |
500 | test ecx, ecx |
500 | test ecx, ecx |
501 | jz .not_in_list |
501 | jz .not_in_list |
502 | mov esi, edi |
502 | mov esi, edi |
503 | imul esi, sizeof.ARP_entry * ARP_TABLE_SIZE |
503 | imul esi, (sizeof.ARP_entry * ARP_TABLE_SIZE)/4 |
504 | add esi, ARP_table + ARP_entry.IP |
504 | add esi, ARP_table + ARP_entry.IP |
505 | .scan_loop: |
505 | .scan_loop: |
506 | cmp [esi], eax |
506 | cmp [esi], eax |