Hardware MAC / IP address pair description. More...

#include <net.h>

Data Fields

uint16_t mac [3]
 
uint16_t ip [2]
 
uint32_t ip_a
 

Detailed Description

For each device a MAC address is unique, but the IP address may change. To resolve the MAC address for a given IP address the address resolution protocol (ARP) is used. The resolved address is stored in structure addr_type.

See also
arp_check_ip_address(), check_arp_address(),

Field Documentation

uint16_t mac[3]

MAC address

uint16_t ip[2]

IP address (16 bit chunks)

uint32_t ip_a

IP address in network byte order. Use inet_ntoa() and inet_aton() for conversion