mirror of
https://github.com/RGBCube/serenity
synced 2026-01-15 18:51:00 +00:00
Kernel: Collect IPv4 stuff in IPv4.h and ARP stuff in ARP.h.
This commit is contained in:
parent
87ecf290f4
commit
c6a2012fe9
7 changed files with 60 additions and 66 deletions
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue