mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:57:44 +00:00
Kernel: A bunch of hacking towards initial Ethernet support.
This commit is contained in:
parent
4641ee49b5
commit
97664fad60
8 changed files with 239 additions and 5 deletions
14
Kernel/ARPPacket.h
Normal file
14
Kernel/ARPPacket.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
class [[gnu::packed]] ARPPacket {
|
||||
public:
|
||||
word hardware_type;
|
||||
word protocol_type;
|
||||
word hardware_address_length;
|
||||
word protocol_address_length;
|
||||
word operation;
|
||||
uint8_t sender_hardware_address[6]; // Sender hardware address.
|
||||
uint8_t sender_protocol_address[4]; // Sender protocol address.
|
||||
uint8_t target_hardware_address[6]; // target hardware address.
|
||||
uint8_t target_protocol_address[4]; // target protocol address.
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue