mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Move NetworkTask startup into NetworkTask::spawn()
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <Kernel/Net/IPv4.h>
|
||||
#include <Kernel/Net/IPv4Socket.h>
|
||||
#include <Kernel/Net/LoopbackAdapter.h>
|
||||
#include <Kernel/Net/NetworkTask.h>
|
||||
#include <Kernel/Net/Routing.h>
|
||||
#include <Kernel/Net/TCP.h>
|
||||
#include <Kernel/Net/TCPSocket.h>
|
||||
@@ -56,6 +57,14 @@ static void handle_icmp(const EthernetFrameHeader&, const IPv4Packet&);
|
||||
static void handle_udp(const IPv4Packet&);
|
||||
static void handle_tcp(const IPv4Packet&);
|
||||
|
||||
[[noreturn]] static void NetworkTask_main();
|
||||
|
||||
void NetworkTask::spawn()
|
||||
{
|
||||
Thread* thread = nullptr;
|
||||
Process::create_kernel_process(thread, "NetworkTask", NetworkTask_main);
|
||||
}
|
||||
|
||||
void NetworkTask_main()
|
||||
{
|
||||
WaitQueue packet_wait_queue;
|
||||
|
||||
Reference in New Issue
Block a user