forked from KolibriOS/kolibrios
Fix ICMP Echo reply, broken in #5522
git-svn-id: svn://kolibrios.org@7536 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a6b5419b5d
commit
5c963ac890
@ -94,6 +94,9 @@ eth_input:
|
|||||||
|
|
||||||
popf
|
popf
|
||||||
|
|
||||||
|
; Mark it as being an Ethernet Frame
|
||||||
|
mov [eax + NET_BUFF.type], NET_BUFF_ETH
|
||||||
|
|
||||||
; Now queue an event to process it
|
; Now queue an event to process it
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
mov eax, [ETH_input_event]
|
mov eax, [ETH_input_event]
|
||||||
|
@ -214,7 +214,8 @@ icmp_input:
|
|||||||
mov [esi + ICMP_header.Type], ICMP_ECHOREPLY
|
mov [esi + ICMP_header.Type], ICMP_ECHOREPLY
|
||||||
|
|
||||||
mov eax, [esp]
|
mov eax, [esp]
|
||||||
lea esi, [eax + NET_BUFF.data]
|
mov esi, [eax + NET_BUFF.offset]
|
||||||
|
add esi, eax
|
||||||
|
|
||||||
; Check frame type
|
; Check frame type
|
||||||
cmp [eax + NET_BUFF.type], NET_BUFF_ETH
|
cmp [eax + NET_BUFF.type], NET_BUFF_ETH
|
||||||
|
Loading…
Reference in New Issue
Block a user