blob: 6534a6406a9ac67c54bb6b931609eaadd8b47afc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|