forked from KolibriOS/kolibrios
[KERNEL] Adjust packet size calculation
git-svn-id: svn://kolibrios.org@9729 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
267e818f50
commit
e37c439eda
@ -490,8 +490,8 @@ ipv4_input:
|
|||||||
|
|
||||||
push eax
|
push eax
|
||||||
mov ax, [edx + IPv4_header.FlagsAndFragmentOffset]
|
mov ax, [edx + IPv4_header.FlagsAndFragmentOffset]
|
||||||
xchg al, ah
|
|
||||||
shl ax, 3
|
shl ax, 3
|
||||||
|
xchg al, ah
|
||||||
add cx, ax
|
add cx, ax
|
||||||
pop eax
|
pop eax
|
||||||
DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_input: Total Fragment size=%u\n", ecx
|
DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_input: Total Fragment size=%u\n", ecx
|
||||||
@ -1158,4 +1158,4 @@ ipv4_api:
|
|||||||
|
|
||||||
call net_send_event
|
call net_send_event
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
ret
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user