mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-04 09:22:53 +00:00
Kernel: Do not reject broadcast UDP packets right away
This patch relaxes how we think about UDP packets being "for us" a bit; the proper way to handle this would be to also check if the matched socket has SO_BROADCAST set, but we don't have that :)
This commit is contained in:
parent
8780151155
commit
2ea934bcfd
Notes:
sideshowbarker
2024-07-19 07:57:29 +09:00
Author: https://github.com/alimpfard
Commit: 2ea934bcfd
Pull-request: https://github.com/SerenityOS/serenity/pull/1619
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ void handle_udp(const IPv4Packet& ipv4_packet)
|
|||
}
|
||||
|
||||
auto adapter = NetworkAdapter::from_ipv4_address(ipv4_packet.destination());
|
||||
if (!adapter) {
|
||||
if (!adapter && ipv4_packet.destination() != IPv4Address(255, 255, 255, 255)) {
|
||||
klog() << "handle_udp: this packet is not for me, it's for " << ipv4_packet.destination().to_string().characters();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue