From e37c439eda97fecc82d550e6ede596dd2f65ed38 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Wed, 23 Feb 2022 15:47:10 +0000 Subject: [PATCH] [KERNEL] Adjust packet size calculation git-svn-id: svn://kolibrios.org@9729 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/IPv4.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/network/IPv4.inc b/kernel/trunk/network/IPv4.inc index 9dc4d3a43c..f1f7cea307 100644 --- a/kernel/trunk/network/IPv4.inc +++ b/kernel/trunk/network/IPv4.inc @@ -490,8 +490,8 @@ ipv4_input: push eax mov ax, [edx + IPv4_header.FlagsAndFragmentOffset] - xchg al, ah shl ax, 3 + xchg al, ah add cx, ax pop eax DEBUGF DEBUG_NETWORK_VERBOSE, "IPv4_input: Total Fragment size=%u\n", ecx @@ -1158,4 +1158,4 @@ ipv4_api: call net_send_event xor eax, eax - ret \ No newline at end of file + ret