1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

Kernel: Start adding IPv4 support, starting with ICMP echo messages.

This doesn't work correctly yet, but it's getting nice enough to commit.
This commit is contained in:
Andreas Kling 2019-03-12 04:11:20 +01:00
parent d5dbb602b8
commit 5bd9844dd6
6 changed files with 237 additions and 0 deletions

View file

@ -6,6 +6,8 @@
#include <Kernel/MACAddress.h>
#include <Kernel/IPv4Address.h>
#include <Kernel/ARPPacket.h>
#include <Kernel/IPv4Packet.h>
#include <Kernel/ICMP.h>
class NetworkAdapter {
public:
@ -18,6 +20,7 @@ public:
void set_ipv4_address(const IPv4Address&);
void send(const MACAddress&, const ARPPacket&);
void send_ipv4(const MACAddress&, const void*, size_t);
ByteBuffer dequeue_packet();