Bugfixes for ethernet and IPv4 (net branch)

git-svn-id: svn://kolibrios.org@2607 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2012-04-12 23:09:15 +00:00
parent 4a382514dd
commit f0bcb2828e
2 changed files with 4 additions and 3 deletions

View File

@ -646,7 +646,7 @@ IPv4_output:
.eth_error: .eth_error:
DEBUGF 1,"IPv4_output: ethernet error\n" DEBUGF 1,"IPv4_output: ethernet error\n"
add esp, 6+2+4 add esp, 3*4+2*2+6
sub edi, edi sub edi, edi
ret ret

View File

@ -136,14 +136,15 @@ ETH_output:
lea edx, [ecx + sizeof.ETH_header] ; Set edx to complete buffer size lea edx, [ecx + sizeof.ETH_header] ; Set edx to complete buffer size
cmp edx, ETH_FRAME_MINIMUM cmp edx, ETH_FRAME_MINIMUM
jb .adjust_size jbe .adjust_size
.done:
DEBUGF 1,"ETH_output: done: %x total size: %u\n", eax, edx DEBUGF 1,"ETH_output: done: %x total size: %u\n", eax, edx
ret ret
.adjust_size: .adjust_size:
mov edx, ETH_FRAME_MINIMUM mov edx, ETH_FRAME_MINIMUM
test edx, edx ; clear zero flag test edx, edx ; clear zero flag
ret jmp .done
.out_of_ram: .out_of_ram:
DEBUGF 2,"ETH_output: Out of ram space!!\n" DEBUGF 2,"ETH_output: Out of ram space!!\n"