mikroSDK Reference Manual
arp_cache.h
Go to the documentation of this file.
1
31#ifndef _ARP_CACHE_H
32#define _ARP_CACHE_H
33
34//Dependencies
35#include "core/net.h"
36#include "ipv4/arp.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//ARP related functions
44void arpChangeState(ArpCacheEntry *entry, ArpState newState);
45
46ArpCacheEntry *arpCreateEntry(NetInterface *interface);
47ArpCacheEntry *arpFindEntry(NetInterface *interface, Ipv4Addr ipAddr);
48
49void arpFlushCache(NetInterface *interface);
50
51void arpSendQueuedPackets(NetInterface *interface, ArpCacheEntry *entry);
52void arpFlushQueuedPackets(NetInterface *interface, ArpCacheEntry *entry);
53
54//C++ guard
55#ifdef __cplusplus
56}
57#endif
58
59#endif
ARP (Address Resolution Protocol)
ArpState
ARP cache entry states.
Definition arp.h:127
uint32_t Ipv4Addr
IPv4 network address.
Definition ipv4.h:267
TCP/IP stack core.
ARP cache entry.
Definition arp.h:185