summaryrefslogtreecommitdiff
path: root/network/ethernet.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-26 22:35:58 +0200
committerAnton Kling <anton@kling.gg>2023-10-30 21:49:48 +0100
commitf8e15da04472f5ed6a26e588de4a23cb3e1ba20b (patch)
tree9e646d6ba72dcc8f2eb95d04bac2a8b4a91ad946 /network/ethernet.h
parentcf60045bdb969f6fe44fe7dc9bf7cec593a0b05c (diff)
Kernel: Fixup rtl8139, add basic ARP and ethernet support
Currently the ARP appears to be able to respond to requests.
Diffstat (limited to 'network/ethernet.h')
-rw-r--r--network/ethernet.h5
1 files changed, 5 insertions, 0 deletions
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 <stdint.h>
+
+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);