Kernel: Move networking related files into Kernel/Net/.

This commit is contained in:
Andreas Kling 2019-04-02 19:54:38 +02:00
parent 718bea73b3
commit 649c81a714
Notes: sideshowbarker 2024-07-19 14:51:18 +09:00
26 changed files with 61 additions and 63 deletions

View File

@ -34,14 +34,14 @@ KERNEL_OBJS = \
PS2MouseDevice.o \
Socket.o \
LocalSocket.o \
IPv4Socket.o \
TCPSocket.o \
UDPSocket.o \
NetworkAdapter.o \
E1000NetworkAdapter.o \
Net/IPv4Socket.o \
Net/TCPSocket.o \
Net/UDPSocket.o \
Net/NetworkAdapter.o \
Net/E1000NetworkAdapter.o \
Net/LoopbackAdapter.o \
Net/Routing.o \
NetworkTask.o
Net/NetworkTask.o
VFS_OBJS = \
DiskDevice.o \

View File

@ -1,8 +1,8 @@
#pragma once
#include <Kernel/MACAddress.h>
#include <Kernel/IPv4.h>
#include <Kernel/EtherType.h>
#include <Kernel/Net/MACAddress.h>
#include <Kernel/Net/IPv4.h>
#include <Kernel/Net/EtherType.h>
struct ARPOperation {
enum : word {

View File

@ -1,4 +1,4 @@
#include <Kernel/E1000NetworkAdapter.h>
#include <Kernel/Net/E1000NetworkAdapter.h>
#include <Kernel/PCI.h>
#include <Kernel/IO.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/NetworkAdapter.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/PCI.h>
#include <Kernel/MemoryManager.h>
#include <Kernel/IRQHandler.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/MACAddress.h>
#include <Kernel/Net/MACAddress.h>
#include <Kernel/NetworkOrdered.h>
class [[gnu::packed]] EthernetFrameHeader {

View File

@ -1,7 +1,7 @@
#pragma once
#include <Kernel/MACAddress.h>
#include <Kernel/IPv4.h>
#include <Kernel/Net/MACAddress.h>
#include <Kernel/Net/IPv4.h>
struct ICMPType {
enum {

View File

@ -1,14 +1,14 @@
#include <Kernel/IPv4Socket.h>
#include <Kernel/TCPSocket.h>
#include <Kernel/UDPSocket.h>
#include <Kernel/Net/IPv4Socket.h>
#include <Kernel/Net/TCPSocket.h>
#include <Kernel/Net/UDPSocket.h>
#include <Kernel/UnixTypes.h>
#include <Kernel/Process.h>
#include <Kernel/NetworkAdapter.h>
#include <Kernel/IPv4.h>
#include <Kernel/ICMP.h>
#include <Kernel/TCP.h>
#include <Kernel/UDP.h>
#include <Kernel/ARP.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/Net/IPv4.h>
#include <Kernel/Net/ICMP.h>
#include <Kernel/Net/TCP.h>
#include <Kernel/Net/UDP.h>
#include <Kernel/Net/ARP.h>
#include <Kernel/Net/Routing.h>
#include <LibC/errno_numbers.h>

View File

@ -2,7 +2,7 @@
#include <Kernel/Socket.h>
#include <Kernel/DoubleBuffer.h>
#include <Kernel/IPv4.h>
#include <Kernel/Net/IPv4.h>
#include <AK/HashMap.h>
#include <Kernel/Lock.h>
#include <AK/SinglyLinkedList.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/NetworkAdapter.h>
#include <Kernel/Net/NetworkAdapter.h>
class LoopbackAdapter final : public NetworkAdapter {
public:

View File

@ -1,8 +1,8 @@
#include <Kernel/NetworkAdapter.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/Net/EthernetFrameHeader.h>
#include <Kernel/Net/EtherType.h>
#include <Kernel/StdLib.h>
#include <Kernel/EthernetFrameHeader.h>
#include <Kernel/kmalloc.h>
#include <Kernel/EtherType.h>
#include <AK/HashTable.h>
#include <Kernel/Lock.h>

View File

@ -3,10 +3,10 @@
#include <AK/ByteBuffer.h>
#include <AK/SinglyLinkedList.h>
#include <AK/Types.h>
#include <Kernel/MACAddress.h>
#include <Kernel/IPv4.h>
#include <Kernel/ARP.h>
#include <Kernel/ICMP.h>
#include <Kernel/Net/MACAddress.h>
#include <Kernel/Net/IPv4.h>
#include <Kernel/Net/ARP.h>
#include <Kernel/Net/ICMP.h>
#include <Kernel/Alarm.h>
class NetworkAdapter;

View File

@ -1,17 +1,18 @@
#include <Kernel/E1000NetworkAdapter.h>
#include <Kernel/EthernetFrameHeader.h>
#include <Kernel/ARP.h>
#include <Kernel/ICMP.h>
#include <Kernel/UDP.h>
#include <Kernel/TCP.h>
#include <Kernel/IPv4.h>
#include <Kernel/IPv4Socket.h>
#include <Kernel/TCPSocket.h>
#include <Kernel/UDPSocket.h>
#include <Kernel/Process.h>
#include <Kernel/EtherType.h>
#include <Kernel/Lock.h>
#include <Kernel/Net/E1000NetworkAdapter.h>
#include <Kernel/Net/EthernetFrameHeader.h>
#include <Kernel/Net/ARP.h>
#include <Kernel/Net/ICMP.h>
#include <Kernel/Net/UDP.h>
#include <Kernel/Net/TCP.h>
#include <Kernel/Net/IPv4.h>
#include <Kernel/Net/IPv4Socket.h>
#include <Kernel/Net/TCPSocket.h>
#include <Kernel/Net/UDPSocket.h>
#include <Kernel/Net/LoopbackAdapter.h>
#include <Kernel/Process.h>
#include <Kernel/Net/EtherType.h>
#include <Kernel/Lock.h>
//#define ETHERNET_DEBUG
#define IPV4_DEBUG

View File

@ -1,5 +1,5 @@
#pragma once
#include <Kernel/NetworkAdapter.h>
#include <Kernel/Net/NetworkAdapter.h>
NetworkAdapter* adapter_for_route_to(const IPv4Address&);

View File

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/IPv4.h>
#include <Kernel/Net/IPv4.h>
struct TCPFlags {
enum : word {

View File

@ -1,8 +1,8 @@
#include <Kernel/TCPSocket.h>
#include <Kernel/TCP.h>
#include <Kernel/NetworkAdapter.h>
#include <Kernel/Process.h>
#include <Kernel/Net/TCPSocket.h>
#include <Kernel/Net/TCP.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/Net/Routing.h>
#include <Kernel/Process.h>
#include <Kernel/RandomDevice.h>
Lockable<HashMap<word, TCPSocket*>>& TCPSocket::sockets_by_port()

View File

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/IPv4Socket.h>
#include <Kernel/Net/IPv4Socket.h>
class TCPSocket final : public IPv4Socket {
public:

View File

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/IPv4.h>
#include <Kernel/Net/IPv4.h>
class [[gnu::packed]] UDPPacket {
public:

View File

@ -1,6 +1,6 @@
#include <Kernel/UDPSocket.h>
#include <Kernel/UDP.h>
#include <Kernel/NetworkAdapter.h>
#include <Kernel/Net/UDPSocket.h>
#include <Kernel/Net/UDP.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/Process.h>
#include <Kernel/RandomDevice.h>
#include <Kernel/Net/Routing.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/IPv4Socket.h>
#include <Kernel/Net/IPv4Socket.h>
class UDPSocketHandle;

View File

@ -22,9 +22,6 @@
#include "MasterPTY.h"
#include "elf.h"
#include <AK/StringBuilder.h>
#include <Kernel/E1000NetworkAdapter.h>
#include <Kernel/EthernetFrameHeader.h>
#include <Kernel/ARP.h>
//#define DEBUG_IO
//#define TASK_DEBUG

View File

@ -1,6 +1,6 @@
#include <Kernel/Socket.h>
#include <Kernel/LocalSocket.h>
#include <Kernel/IPv4Socket.h>
#include <Kernel/Net/IPv4Socket.h>
#include <Kernel/UnixTypes.h>
#include <Kernel/Process.h>
#include <LibC/errno_numbers.h>

View File

@ -23,8 +23,8 @@
#include "PTYMultiplexer.h"
#include "DevPtsFS.h"
#include "BXVGADevice.h"
#include "E1000NetworkAdapter.h"
#include <Kernel/NetworkTask.h>
#include <Kernel/Net/E1000NetworkAdapter.h>
#include <Kernel/Net/NetworkTask.h>
#define SPAWN_LAUNCHER
//#define SPAWN_GUITEST2