summaryrefslogtreecommitdiff
path: root/kernel/network/ethernet.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/network/ethernet.h')
-rw-r--r--kernel/network/ethernet.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/network/ethernet.h b/kernel/network/ethernet.h
index ffb7893..6534a64 100644
--- a/kernel/network/ethernet.h
+++ b/kernel/network/ethernet.h
@@ -1,5 +1,15 @@
+#ifndef ETHERNET_H
+#define ETHERNET_H
#include <typedefs.h>
+struct EthernetHeader {
+ u8 mac_dst[6];
+ u8 mac_src[6];
+ u16 type;
+};
+
void handle_ethernet(const u8 *packet, u64 packet_length);
+void send_ethernet_packet2(u8 mac_dst[6], u16 type, u64 payload_length);
void send_ethernet_packet(u8 mac_dst[6], u16 type, u8 *payload,
u64 payload_length);
+#endif // ETHERNET_H