summaryrefslogtreecommitdiff
path: root/Kernel/ARPPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/ARPPacket.h')
-rw-r--r--Kernel/ARPPacket.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Kernel/ARPPacket.h b/Kernel/ARPPacket.h
index 72cb75b625..23f44ccb4c 100644
--- a/Kernel/ARPPacket.h
+++ b/Kernel/ARPPacket.h
@@ -4,6 +4,19 @@
#include <Kernel/IPv4Address.h>
#include <Kernel/EtherType.h>
+struct ARPOperation {
+enum : word {
+ Request = 1,
+ Response = 2,
+};
+};
+
+struct ARPHardwareType {
+enum : word {
+ Ethernet = 1,
+};
+};
+
class [[gnu::packed]] ARPPacket {
public:
word hardware_type() const { return ntohs(m_hardware_type); }