From f8e15da04472f5ed6a26e588de4a23cb3e1ba20b Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 26 Oct 2023 22:35:58 +0200 Subject: Kernel: Fixup rtl8139, add basic ARP and ethernet support Currently the ARP appears to be able to respond to requests. --- network/ethernet.h | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 network/ethernet.h (limited to 'network/ethernet.h') diff --git a/network/ethernet.h b/network/ethernet.h new file mode 100644 index 0000000..88a4dc6 --- /dev/null +++ b/network/ethernet.h @@ -0,0 +1,5 @@ +#include + +void handle_ethernet(uint8_t *packet, uint64_t packet_length); +void send_ethernet_packet(uint8_t mac_dst[6], uint16_t type, uint8_t *payload, + uint64_t payload_length); -- cgit v1.2.3