From 12d55e6e714c200ed39fac0510eeac162e6bf8c2 Mon Sep 17 00:00:00 2001
From: "Magomed Kostoev (mkostoevr)" <mkostoevr@yandex.ru>
Date: Mon, 2 May 2022 12:41:26 +0000
Subject: [PATCH] [KERNEL] Temporal fragmented packet size workaround

git-svn-id: svn://kolibrios.org@9802 a494cfbc-eb01-0410-851d-a64ba20cac60
---
 kernel/trunk/network/IPv4.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/trunk/network/IPv4.inc b/kernel/trunk/network/IPv4.inc
index 69192543d8..a5865acd52 100644
--- a/kernel/trunk/network/IPv4.inc
+++ b/kernel/trunk/network/IPv4.inc
@@ -554,6 +554,7 @@ ipv4_input:
         mov     [edx + IPv4_header.TotalLength], cx
         add     esp, 12
         xchg    cl, ch
+        inc     ecx                     ; FIXME: Why it has to be incremented?
         push    ecx edx                 ; size and pointer
         mov     edi, [edi_saved]
         jmp     .handle_it              ; edx = buf ptr, ecx = size, [esp] buf ptr, [esp+4], total size, ebx=device ptr