#include <net/ip.h>
Go to the source code of this file.
Data Structures | |||||||
struct | arp | ||||||
Defines | |||||||
#define | ARPHRD_ETHER 1 | ||||||
Ethernet hardware addresses. | |||||||
#define | ARP_OP_REQUEST 1 | ||||||
ARP request operation. | |||||||
#define | ARP_OP_REPLY 2 | ||||||
ARP reply operation. | |||||||
#define | RARP_OP_REQUEST 3 | ||||||
RARP request operation. | |||||||
#define | RARP_OP_REPLY 4 | ||||||
RARP reply operation. | |||||||
Typedefs | |||||||
typedef arp | arp_t | ||||||
Functions | |||||||
void | to_arp_layer (arp_t *packet) | ||||||
Get an ARP packet from the ethernet layer.
| |||||||
void | arp_reset_cache () | ||||||
Reset the ARP resolution cache. | |||||||
void | arp_add_cache (in_addr_t ip, uint8_t *mac) | ||||||
Insert an address resolution into the ARP cache.
| |||||||
bool | arp_remove_cache (in_addr_t ip) | ||||||
Remove an entry from the ARP cache.
| |||||||
bool | arp_ip_to_eth (uint8_t *eth_addr, in_addr_t ip_addr) | ||||||
Translate from IP address to ethernet address.
| |||||||
int | arp_ip_to_eth (uint8_t *eth_addr, uint32_t ip_addr) | ||||||
int | send_arp_packet (in_addr_t ip_to, const uint8_t *eth_to, uint16_t arp_op) | ||||||
Send an ARP packet to the ethernet layer.
| |||||||
void | arp_request (char *ip_dot) | ||||||
Send an ARP request.
|
Definition in file arp.h.
|
Ethernet hardware addresses.
|