Net-branch:

Added statistics to 3c59x driver.
Fixed mixed up DNS and Gateway of static settings for zeroconf

git-svn-id: svn://kolibrios.org@1481 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2010-06-06 19:04:46 +00:00
parent f5372bd676
commit 049d796e81
3 changed files with 20 additions and 17 deletions

View File

@ -204,12 +204,12 @@ START: ; start of execution
invoke ini.get_str, path, str_ipconfig, str_dns, inibuf, 16, 0
mov edx, inibuf
call Ip2dword
mcall 75, 7, edx
mcall 75, 5, edx
invoke ini.get_str, path, str_ipconfig, str_subnet, inibuf, 16, 0
mov edx, inibuf
call Ip2dword
mcall 75, 5, edx
mcall 75, 7, edx
mcall -1

View File

@ -827,6 +827,11 @@ reset:
out dx, ax
xor eax, eax
; clear packet/byte counters
lea edi, [device.bytes_tx]
mov ecx, 6
rep stosd
ret
@ -2308,9 +2313,15 @@ boomerang_transmit:
DEBUGF 1,"Found place in TX buffer: %x\n", edi
push edi ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; update statistics
inc [device.packets_tx]
mov ecx, [esp+8+8]
add dword [device.bytes_tx], ecx
adc dword [device.bytes_tx + 4], 0
; copy packet data
mov esi, [esp+4+8]
mov ecx, [esp+8+8]
DEBUGF 1,"Copying %u bytes from %x to %x\n", ecx, esi, edi
shr cx , 1
jnc .nb
@ -2775,6 +2786,12 @@ int_boomerang:
DEBUGF 1, " copying %u bytes from %x to %x\n", ecx, esi, edi
; update statistics
inc [device.packets_rx]
add dword [device.bytes_rx], ecx
adc dword [device.bytes_rx + 4], 0
; copy packet data
shr cx , 1
jnc .nb

View File

@ -44,20 +44,6 @@ macro set_io addr {
}
macro diff16 title,l1,l2
{
local s,d
s = l2-l1
display title,': 0x'
repeat 16
d = 48 + s shr ((16-%) shl 2) and $0F
if d > 57
d = d + 65-57-1
end if
display d
end repeat
display 13,10
}
macro allocate_and_clear dest, size, err {