Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
arp.h File Reference
#include "net/netdev.h"
#include <type.h>

Go to the source code of this file.

Data Structures

struct  arp_packet
 

Functions

struct arp_packet __attribute__ ((packed))
 
void arp_reply (netdev_t *dev, uint32_t ip, uint8_t out_mac[6])
 

Variables

uint16_t htype
 
uint16_t ptype
 
uint8_t hlen
 
uint8_t plen
 
uint16_t oper
 
uint8_t sender_mac [6]
 
uint32_t sender_ip
 
uint8_t target_mac [6]
 
uint32_t target_ip
 

Function Documentation

◆ __attribute__()

struct arp_packet __attribute__ ( (packed) )

Definition at line 1 of file tcp.h.

◆ arp_reply()

Variable Documentation

◆ hlen

uint8_t hlen

Definition at line 2 of file arp.h.

◆ htype

uint16_t htype

Definition at line 0 of file arp.h.

◆ oper

uint16_t oper

Definition at line 4 of file arp.h.

◆ plen

uint8_t plen

Definition at line 3 of file arp.h.

◆ ptype

uint16_t ptype

Definition at line 1 of file arp.h.

◆ sender_ip

uint32_t sender_ip

Definition at line 7 of file arp.h.

◆ sender_mac

uint8_t sender_mac[6]

Definition at line 6 of file arp.h.

◆ target_ip

uint32_t target_ip

Definition at line 10 of file arp.h.

◆ target_mac

uint8_t target_mac[6]

Definition at line 9 of file arp.h.