ladybird/Kernel
Idan Horowitz 743a9e9ebf Kernel: Stop including the ethernet header in LoopbackAdapter's mtu
The networking subsystem currently assumes all adapters are Ethernet
adapters, including the LoopbackAdapter, so all packets are pre-pended
with an Ethernet Frame header. Since the MTU must not include any
overhead added by the data-link (Ethernet in this case) or physical
layers, we need to subtract it from the MTU.

This fixes a kernel panic which occurs when sending a packet that is at
least 65523 bytes long through the loopback adapter, which results in
the kernel "receiving" a packet which is larger than the support MTU
out the other end. (As the actual final size was increased by the
addition of the ethernet frame header)
2023-11-25 16:34:38 +01:00
..
API Kernel/riscv64: Add RISC-V Syscall API 2023-11-10 15:51:31 -07:00
Arch Kernel/riscv64: Add missing input sections to linker script 2023-11-24 08:50:19 -07:00
Boot Kernel/HID: Add boot option to disable PS2 Mouse 2023-10-15 22:56:30 +02:00
Bus Kernel/riscv64: Make the kernel compile 2023-11-10 15:51:31 -07:00
Devices Kernel/riscv64: Make the kernel compile 2023-11-10 15:51:31 -07:00
FileSystem Kernel/FS: Fix check-then-act concurrency bug in FileSystem/Inode 2023-11-20 09:44:29 +01:00
Firmware/ACPI Kernel: Overhaul system shutdown procedure 2023-07-15 00:12:01 +02:00
Heap Kernel/riscv64: Make the kernel compile 2023-11-10 15:51:31 -07:00
Interrupts Kernel/Interrupts: Move PCIIRQHandler => PCI::IRQHandler 2023-09-16 14:04:17 -06:00
Library AK: Rename GenericTraits to DefaultTraits 2023-11-09 10:05:51 -05:00
Locking Kernel: Share Processor class (and others) across architectures 2023-10-03 16:08:29 -06:00
Memory Kernel/Memory: Map framebuffer and address space <4GiB 2023-10-03 16:19:03 -06:00
Net Kernel: Stop including the ethernet header in LoopbackAdapter's mtu 2023-11-25 16:34:38 +01:00
Prekernel Prekernel: Fix wrong and misleading comment 2023-10-03 16:19:03 -06:00
Security Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
Syscalls Kernel: Treat a backlog argument of 0 to listen() as if it was 1 2023-11-25 16:34:38 +01:00
Tasks Kernel/riscv64: Make the kernel compile 2023-11-10 15:51:31 -07:00
Time Kernel/riscv64: Make the kernel compile 2023-11-10 15:51:31 -07:00
CMakeLists.txt Kernel/riscv64: Generate Kernel.bin from kernel ELF 2023-11-24 08:52:02 -07:00
Debug.h.in Kernel: Add a framebuffer driver for 3Dfx Voodoo 3 2023-10-16 01:25:45 +02:00
embedmap.sh Kernel: Make new kernel build process work on macOS 2021-07-15 11:04:30 +02:00
Forward.h Kernel+LibCore+LibC: Split the mount syscall into multiple syscalls 2023-07-02 01:04:51 +02:00
generate-version-file.sh Kernel: Bake version information into the Kernel 2022-10-14 13:45:33 +02:00
kprintf.cpp Kernel: Move TTY-related code to a new subdirectory under Devices 2023-09-09 12:08:59 -06:00
kstdio.h Kernel: Remove includes to LibC stdarg definitions 2023-03-01 19:36:53 -07:00
KSyms.cpp Kernel/riscv64: Make the kernel compile 2023-11-10 15:51:31 -07:00
KSyms.h Kernel: Add ability to dump backtrace from provided frame pointer 2022-10-01 14:09:01 +02:00
mkmap.sh Kernel: Use the toolchain's nm in mkmap.sh 2021-12-30 18:10:51 +01:00
SanCov.cpp Kernel: Move all tasks-related code to the Tasks subdirectory 2023-06-04 21:32:34 +02:00
Sections.h Kernel: Move all boot-related code to the new Boot subdirectory 2023-06-04 21:32:34 +02:00
UnixTypes.h Kernel/Net: Implement TCP_NODELAY 2023-11-08 09:31:54 +01:00