Voxia OS
v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
arp.h
Go to the documentation of this file.
1
#ifndef __NET__ARP_H__
2
#define __NET__ARP_H__
3
4
#include <
type.h
>
5
6
#define ARP_HTYPE_ETHERNET 1
7
#define ARP_PTYPE_IPV4 0x0800
8
#define ARP_HLEN_ETHERNET 6
9
#define ARP_PLEN_IPV4 4
10
#define ARP_OP_REQUEST 1
11
#define ARP_OP_REPLY 2
12
13
typedef
struct
{
14
uint16_t
htype
;
15
uint16_t
ptype
;
16
uint8_t
hlen
;
17
uint8_t
plen
;
18
uint16_t
op
;
19
}
__attribute__
((packed)) arp_header_t;
20
21
#endif
// __NET__ARP_H__
__attribute__
typedef __attribute__
Definition
msi.c:47
__attribute__::ptype
uint16_t ptype
Definition
arp.h:15
__attribute__::hlen
uint8_t hlen
Definition
arp.h:16
__attribute__::plen
uint8_t plen
Definition
arp.h:17
__attribute__::op
uint16_t op
Definition
arp.h:18
__attribute__::htype
uint16_t htype
Definition
arp.h:14
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
arp.h
Generated on Sat May 30 2026 11:09:57 for Voxia OS by
1.13.2