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
13typedef struct {
19} __attribute__((packed)) arp_header_t;
20
21#endif // __NET__ARP_H__
typedef __attribute__
Definition msi.c:47
uint16_t ptype
Definition arp.h:15
uint8_t hlen
Definition arp.h:16
uint8_t plen
Definition arp.h:17
uint16_t op
Definition arp.h:18
uint16_t htype
Definition arp.h:14
unsigned short uint16_t
Definition type.h:13
unsigned char uint8_t
Definition type.h:7