diff options
author | Anton Kling <anton@kling.gg> | 2024-06-22 14:34:21 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-22 14:34:21 +0200 |
commit | 01b88a7bf9fb4c78bd632bfccb06f3d320a21fd5 (patch) | |
tree | 20d9a6dcc155e7c8b6e067c6ba6d7b42df4365fd /kernel/network/ethernet.c | |
parent | af313dec6b7698b6f948b97669aa7be91717a451 (diff) |
Kernel stuff
Diffstat (limited to 'kernel/network/ethernet.c')
-rw-r--r-- | kernel/network/ethernet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/network/ethernet.c b/kernel/network/ethernet.c index 1bda07f..a4f2f85 100644 --- a/kernel/network/ethernet.c +++ b/kernel/network/ethernet.c @@ -1,12 +1,13 @@ #include <assert.h> #include <drivers/rtl8139.h> +#include <interrupts.h> #include <kmalloc.h> -#include <string.h> #include <network/arp.h> #include <network/bytes.h> #include <network/ethernet.h> #include <network/ipv4.h> #include <stdio.h> +#include <string.h> struct ETHERNET_HEADER { u8 mac_dst[6]; @@ -69,7 +70,6 @@ void handle_ethernet(const u8 *packet, u64 packet_length) { void send_ethernet_packet(u8 mac_dst[6], u16 type, u8 *payload, u64 payload_length) { - assert(payload_length <= 1500); // FIXME: Janky allocation, do this better u64 buffer_size = sizeof(struct ETHERNET_HEADER) + payload_length + sizeof(u32); |