From 2543e89522187aa8ea6a4bdb84dab0d58387bc9c Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Thu, 5 May 2022 14:58:04 +0000 Subject: [PATCH] [KERNEL] Temporal fix for fragmented packet building git-svn-id: svn://kolibrios.org@9806 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/IPv4.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/trunk/network/IPv4.inc b/kernel/trunk/network/IPv4.inc index 69192543d8..c160b123c3 100644 --- a/kernel/trunk/network/IPv4.inc +++ b/kernel/trunk/network/IPv4.inc @@ -527,6 +527,10 @@ ipv4_input: je .first_fragment sub cx, bx ; If not, dont copy the header add esi, ebx ; + add edi, ebx ; FIXME: We should add size of header of first fragment here + ; instead of size of currently copying fragment + ; because the fragment offset is offset within the big IP packet + ; data (not within the packet, within packet's contents) .first_fragment: