mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
IPv4: More work on UDP support.
I'm now able to connect to a simple UDP server on my host machine and exchange some data. Very cool! :^)
This commit is contained in:
@@ -232,7 +232,7 @@ void handle_udp(const EthernetFrameHeader& eth, int frame_size)
|
||||
LOCKER(IPv4Socket::all_sockets().lock());
|
||||
for (RetainPtr<IPv4Socket> socket : IPv4Socket::all_sockets().resource()) {
|
||||
LOCKER(socket->lock());
|
||||
if (socket->protocol() != (unsigned)IPv4Protocol::UDP)
|
||||
if (socket->type() != SOCK_DGRAM)
|
||||
continue;
|
||||
if (socket->source_port() != udp_packet.destination_port())
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user