Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1184 → Rev 1185

/kernel/branches/net/network/icmp.inc
103,6 → 103,8
ICMP_PACKETS_RX rd MAX_IP
endg
 
 
 
;-----------------------------------------------------------------
;
; ICMP_init
127,12 → 129,6
 
 
 
 
 
 
;--------------------------------
;
; ICMP_Handler:
153,7 → 149,7
ICMP_Handler: ;TODO: works only on pure ethernet right now !
 
DEBUGF 1,"ICMP_Handler - start\n"
cmp byte [edx + ICMP_Packet.Type], ICMP_ECHO ; Is this an echo request? discard if not
cmp byte [edx + ICMP_Packet.Type], ICMP_ECHO ; Is this an echo request?
jne .check_sockets
 
mov byte [edx + ICMP_Packet.Type], ICMP_ECHOREPLY ; Change Packet type to reply
163,6 → 159,7
cmp edi,-1
je .dump
inc [ICMP_PACKETS_RX+4*edi]
inc [ICMP_PACKETS_TX+4*edi]
 
; exchange dest and source address in IP header
; exchange dest and source MAC in ETH header