File nut/net/arpcache.c


Included Files


Preprocessor definitions

#define MAX_ARPAGE 9

#define MAX_ARPREQUESTS 1

#define MIN_ARPWAIT 500


Global Function NutArpCacheQuery()

int NutArpCacheQuery ( NUTDEVICE* dev, const uint32_t ip, uint8_t* mac )
Prototyped in: nut/include/netinet/if_ether.h
Calls: ArpCacheAging() nut/net/arpcache.c
  ArpCacheFlush() nut/net/arpcache.c
  ArpCacheLookup() nut/net/arpcache.c
  ArpCacheNew() nut/net/arpcache.c
  NutNetBufFree() nut/dev/netbuf.c
  NutArpAllocNetBuf(), NutArpOutput(), NutEventWait()

Global Function NutArpCacheUpdate()

void NutArpCacheUpdate ( NUTDEVICE* dev, uint32_t ip, uint8_t* ha )
Prototyped in: nut/include/netinet/if_ether.h
Calls: ArpCacheLookup() nut/net/arpcache.c
  ArpCacheNew() nut/net/arpcache.c
  memcpy() nut/c/string/memcpy.c
  NutEventBroadcast()

Local Function ArpCacheAging()

static void ArpCacheAging ( void )
Calls: ArpCacheFlush() nut/net/arpcache.c
  NutGetSeconds()
Called by: ArpCacheNew() nut/net/arpcache.c
  NutArpCacheQuery() nut/net/arpcache.c

Local Function ArpCacheFlush()

static void ArpCacheFlush ( IFNET* ifn )
Calls: free() nut/crt/malloc.c
  NutEventBroadcastAsync()
Called by: ArpCacheAging() nut/net/arpcache.c
  NutArpCacheQuery() nut/net/arpcache.c

Local Function ArpCacheLookup()

static ARPENTRY* ArpCacheLookup ( IFNET* ifn, uint32_t ip )
Called by: NutArpCacheQuery() nut/net/arpcache.c
  NutArpCacheUpdate() nut/net/arpcache.c

Local Function ArpCacheNew()

static ARPENTRY* ArpCacheNew ( IFNET* ifn, uint32_t ip, uint8_t* ha )
Calls: ArpCacheAging() nut/net/arpcache.c
  malloc() nut/crt/malloc.c
  memcpy() nut/c/string/memcpy.c
  memset() nut/c/string/memset.c
Called by: NutArpCacheQuery() nut/net/arpcache.c
  NutArpCacheUpdate() nut/net/arpcache.c