Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5139f994c4 |
No files matched your search
@@ -688,10 +688,12 @@ arp_api:
|
||||
; ecx = # entry
|
||||
cmp ecx, [ARP_entries + eax]
|
||||
jae .error
|
||||
imul ecx, sizeof.ARP_entry
|
||||
lea esi, [ARP_table + ecx]
|
||||
mov edi, eax
|
||||
shr edi, 2
|
||||
mov esi, edi
|
||||
imul esi, sizeof.ARP_entry*ARP_TABLE_SIZE
|
||||
imul ecx, sizeof.ARP_entry
|
||||
lea esi, [ARP_table + esi + ecx]
|
||||
call arp_del_entry
|
||||
ret
|
||||
|
||||
|
||||
@@ -226,7 +226,6 @@ macro socket_init {
|
||||
mov ecx, 5
|
||||
rep stosd
|
||||
|
||||
rdtsc ; seed, differs from boot to boot
|
||||
@@:
|
||||
pseudo_random eax
|
||||
cmp ax, EPHEMERAL_PORT_MIN
|
||||
|
||||
@@ -208,7 +208,6 @@ macro tcp_init {
|
||||
mov ecx, (6*NET_DEVICES_MAX)
|
||||
rep stosd
|
||||
|
||||
rdtsc ; seed, differs from boot to boot
|
||||
pseudo_random eax
|
||||
mov [TCP_sequence_num], eax
|
||||
|
||||
|
||||
Reference in new issue
Block a user