Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::net::ARPMessage Struct Reference

An ARP message. More...

#include <arp.h>

Public Attributes

uint16_t hardware_type
 The type of device that sent the ARP message (1 = Ethernet)
 
uint16_t protocol
 The protocol being used (0x0800 = IPv4)
 
uint8_t hardware_address_size
 The size of the hardware address (6 for MAC)
 
uint8_t protocol_address_size
 The size of the protocol address (4 for IPv4)
 
uint16_t command
 The ARP command (1 = request, 2 = reply)
 
uint64_t src_mac: 48
 The MAC address of the sender.
 
uint32_t src_ip
 The IP address of the sender.
 
uint64_t dst_mac: 48
 The MAC address of the target.
 
uint32_t dst_ip
 The IP address of the target.
 

Detailed Description

An ARP message.

Definition at line 26 of file arp.h.

Member Data Documentation

◆ command

uint16_t MaxOS::net::ARPMessage::command

The ARP command (1 = request, 2 = reply)

Definition at line 33 of file arp.h.

◆ dst_ip

uint32_t MaxOS::net::ARPMessage::dst_ip

The IP address of the target.

Definition at line 38 of file arp.h.

◆ dst_mac

uint64_t MaxOS::net::ARPMessage::dst_mac

The MAC address of the target.

Definition at line 37 of file arp.h.

Referenced by MaxOS::net::AddressResolutionProtocol::request_mac_address().

◆ hardware_address_size

uint8_t MaxOS::net::ARPMessage::hardware_address_size

The size of the hardware address (6 for MAC)

Definition at line 30 of file arp.h.

◆ hardware_type

uint16_t MaxOS::net::ARPMessage::hardware_type

The type of device that sent the ARP message (1 = Ethernet)

Definition at line 28 of file arp.h.

◆ protocol

uint16_t MaxOS::net::ARPMessage::protocol

The protocol being used (0x0800 = IPv4)

Definition at line 29 of file arp.h.

◆ protocol_address_size

uint8_t MaxOS::net::ARPMessage::protocol_address_size

The size of the protocol address (4 for IPv4)

Definition at line 31 of file arp.h.

◆ src_ip

uint32_t MaxOS::net::ARPMessage::src_ip

The IP address of the sender.

Definition at line 36 of file arp.h.

◆ src_mac

uint64_t MaxOS::net::ARPMessage::src_mac

The MAC address of the sender.

Definition at line 35 of file arp.h.


The documentation for this struct was generated from the following file: