From be01ccdb086446ad41dd3edd242c0431c67fadc5 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 12 Feb 2024 04:25:39 +0200 Subject: [PATCH] Kernel: Fix E1000 mtu --- kernel/include/kernel/Networking/E1000/E1000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/include/kernel/Networking/E1000/E1000.h b/kernel/include/kernel/Networking/E1000/E1000.h index 4637c987..de9440d1 100644 --- a/kernel/include/kernel/Networking/E1000/E1000.h +++ b/kernel/include/kernel/Networking/E1000/E1000.h @@ -28,7 +28,7 @@ namespace Kernel virtual bool link_up() override { return m_link_up; } virtual int link_speed() override; - virtual size_t payload_mtu() const { return E1000_RX_BUFFER_SIZE; } + virtual size_t payload_mtu() const { return E1000_RX_BUFFER_SIZE - sizeof(EthernetHeader); } virtual void handle_irq() final override;