Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
ethernet.h
Go to the documentation of this file.
1#ifndef __NET__ETHERNET_H__
2#define __NET__ETHERNET_H__
3
4#include <type.h>
5
6#define ETHERNET_TYPE_IPV4 0x0800
7#define ETHERNET_TYPE_ARP 0x0806
8
9typedef struct {
13} __attribute__((packed)) ethernet_header_t;
14
15#endif // __NET__ETHERNET_H__
typedef __attribute__
Definition msi.c:47
uint8_t dest[6]
Definition ethernet.h:10
uint16_t type
Definition ethernet.h:12
uint8_t src[6]
Definition ethernet.h:11
unsigned short uint16_t
Definition type.h:13
unsigned char uint8_t
Definition type.h:7