Fix ICMP Echo reply, broken in #5522

git-svn-id: svn://kolibrios.org@7536 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2018-11-06 20:12:47 +00:00
parent a6b5419b5d
commit 5c963ac890
2 changed files with 5 additions and 1 deletions

View File

@ -94,6 +94,9 @@ eth_input:
popf
; Mark it as being an Ethernet Frame
mov [eax + NET_BUFF.type], NET_BUFF_ETH
; Now queue an event to process it
xor edx, edx
mov eax, [ETH_input_event]

View File

@ -214,7 +214,8 @@ icmp_input:
mov [esi + ICMP_header.Type], ICMP_ECHOREPLY
mov eax, [esp]
lea esi, [eax + NET_BUFF.data]
mov esi, [eax + NET_BUFF.offset]
add esi, eax
; Check frame type
cmp [eax + NET_BUFF.type], NET_BUFF_ETH