netstat: show all ARP entries

git-svn-id: svn://kolibrios.org@3641 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-06-10 22:46:31 +00:00
parent 663c6adac5
commit c18b90b578

View File

@ -283,19 +283,19 @@ not_102:
mov ebx, API_ARP mov ebx, API_ARP
mov bh, [device] mov bh, [device]
push ebx push ebx
mcall 76 mcall 76 ; tx
pop ebx pop ebx
push eax push eax
inc bl inc bl
push ebx push ebx
mcall 76 mcall 76 ; rx
pop ebx pop ebx
push eax push eax
inc bl inc bl
push ebx push ebx
mcall 76 mcall 76 ; entries
pop ebx pop ebx
push eax push eax
@ -328,13 +328,16 @@ not_102:
mov [last], 0 mov [last], 0
.arp_loop: .arp_loop:
mov ebx, API_ARP + 3 mov ebx, API_ARP + 3 ; read ARP entry
mov bh, [device] mov bh, [device]
mcall 76, , [last], , , arp_buf mcall 76, ,[last], , , arp_buf
cmp eax, -1 cmp eax, -1
je mainloop je mainloop
mcall 4, 20 shl 16 + 140, 0x80000000, str_ARP_entry mov ebx, [last]
imul ebx, 16
add ebx, 8 shl 16 + 140
mcall 4, , 0x80000000, str_ARP_entry
mov edx, ebx mov edx, ebx
mov eax, 47 mov eax, 47