Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1195 → Rev 1196

/kernel/branches/net/network/ethernet.inc
1,6 → 1,6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;;
;; ;;
;; ETHERNET.INC ;;
46,6 → 46,12
 
 
align 4
iglobal
 
ETH_BROADCAST dp 0xffffffffffff
endg
 
align 4
uglobal
 
ETH_RUNNING dd ?
230,7 → 236,7
;-------------------------------------------------------------
 
align 4
ETH_Handler:
ETH_handler:
 
get_from_queue ETH_IN_QUEUE, ETH_QUEUE_SIZE, .gohome
 
243,10 → 249,10
mov ax , [eax + ETH_FRAME.Type]
 
cmp ax, ETHER_IPv4
je IPv4_Handler
je IPv4_handler
 
cmp ax, ETHER_ARP
je ARP_Handler
je ARP_handler
 
DEBUGF 1,"Unknown ethernet packet type %x\n", ax
 
377,19 → 383,15
pop ecx
pop edx
 
DEBUGF 1,"1"
mov edi, eax
pop esi
movsd
movsw
DEBUGF 1,"2"
pop esi
movsd
movsw
DEBUGF 1,"3"
pop ax
stosw
DEBUGF 1,"4"
 
lea eax, [edi - ETH_FRAME.Data] ; Set eax to buffer start
mov ebx, ecx ; Set ebx to complete buffer size