serenity/Kernel/Net
brapru 1dd22582da Kernel: Ignore interfaces without an IP address when updating ARP
For the same reason we ignore interfaces without an IP address when
choosing where to send a route, we should also ignore interfaces without
IP addresses when updating the ARP table on incoming packets from
local addresses.

On an interface with a null address, the mask checking would always
result in zero, which resulted in the system updating the ARP table on
almost every incoming packet from any address (private or public).

This patch fixes this behavior by only applying this check to interfaces
with valid addresses and now the ARP table won't get constantly
hammered.

Closes #13713
2022-05-31 10:22:46 +01:00
..
Intel Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
NE2000 Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Realtek Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
ARP.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
EthernetFrameHeader.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
EtherType.h
ICMP.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
IPv4.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
IPv4Socket.cpp Kernel: Add support for route flags 2022-05-26 16:33:10 +02:00
IPv4Socket.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
IPv4SocketTuple.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LocalSocket.cpp Kernel: Allow sys$bind() on local sockets with short socket address 2022-04-21 16:31:53 +02:00
LocalSocket.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LoopbackAdapter.cpp Kernel: Use default constructors/destructors 2022-03-17 00:51:36 -07:00
LoopbackAdapter.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
NetworkAdapter.cpp Kernel: Stop exposing gateway field 2022-05-01 13:34:27 +02:00
NetworkAdapter.h Kernel: Stop exposing gateway field 2022-05-01 13:34:27 +02:00
NetworkingManagement.cpp Kernel/PCI: Don't hold spinlocks when doing fast device enumeration 2022-03-14 22:39:09 +01:00
NetworkingManagement.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
NetworkTask.cpp Kernel: Ignore interfaces without an IP address when updating ARP 2022-05-31 10:22:46 +01:00
NetworkTask.h
Routing.cpp Kernel: Add support for route flags 2022-05-26 16:33:10 +02:00
Routing.h Kernel: Add support for route flags 2022-05-26 16:33:10 +02:00
Socket.cpp Kernel: Move NNRP<Socket>s instead of copying in queue_connection_from 2022-04-09 23:46:02 +02:00
Socket.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TCP.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TCPSocket.cpp Kernel: Accept NNRP<Socket> instead of RP<Socket> in release_for_accept 2022-04-09 23:46:02 +02:00
TCPSocket.h Kernel: Accept NNRP<Socket> instead of RP<Socket> in release_for_accept 2022-04-09 23:46:02 +02:00
UDP.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
UDPSocket.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
UDPSocket.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00