1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-15 23:31:01 +00:00

Kernel: Collect IPv4 stuff in IPv4.h and ARP stuff in ARP.h.

This commit is contained in:
Andreas Kling 2019-03-12 12:49:01 +01:00
parent 87ecf290f4
commit c6a2012fe9
7 changed files with 60 additions and 66 deletions

View file

@ -1,8 +1,8 @@
#include <Kernel/E1000NetworkAdapter.h>
#include <Kernel/EthernetFrameHeader.h>
#include <Kernel/ARPPacket.h>
#include <Kernel/ARP.h>
#include <Kernel/ICMP.h>
#include <Kernel/IPv4Packet.h>
#include <Kernel/IPv4.h>
#include <Kernel/Process.h>
#include <Kernel/EtherType.h>
#include <AK/Lock.h>
@ -33,7 +33,7 @@ void NetworkTask_main()
for (;;) {
auto packet = e1000.dequeue_packet();
if (packet.is_null()) {
sleep(100);
sleep(1);
continue;
}
if (packet.size() < (int)(sizeof(EthernetFrameHeader))) {