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
9
typedef
struct
{
10
uint8_t
dest
[6];
11
uint8_t
src
[6];
12
uint16_t
type
;
13
}
__attribute__
((packed)) ethernet_header_t;
14
15
#endif
// __NET__ETHERNET_H__
__attribute__
typedef __attribute__
Definition
msi.c:47
__attribute__::dest
uint8_t dest[6]
Definition
ethernet.h:10
__attribute__::type
uint16_t type
Definition
ethernet.h:12
__attribute__::src
uint8_t src[6]
Definition
ethernet.h:11
type.h
uint16_t
unsigned short uint16_t
Definition
type.h:13
uint8_t
unsigned char uint8_t
Definition
type.h:7
kernel
libk
net
ethernet.h
Generated on Sat May 30 2026 11:09:57 for Voxia OS by
1.13.2