Daniele Lacamera / USB_Ethernet

Dependents:   USBEthernet_TEST

Fork of USB_Ethernet by Daniele Lacamera

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pico_arp.h Source File

pico_arp.h

00001 /*********************************************************************
00002 PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved.
00003 See LICENSE and COPYING for usage.
00004 
00005 *********************************************************************/
00006 #ifndef _INCLUDE_PICO_ARP
00007 #define _INCLUDE_PICO_ARP
00008 #include "pico_eth.h"
00009 #include "pico_device.h"
00010 
00011 int pico_arp_receive(struct pico_frame *);
00012 
00013 
00014 struct pico_eth *pico_arp_get(struct pico_frame *f);
00015 int pico_arp_query(struct pico_device *dev, struct pico_ip4 *dst);
00016 
00017 #define PICO_ARP_STATUS_REACHABLE 0x00
00018 #define PICO_ARP_STATUS_PERMANENT 0x01
00019 #define PICO_ARP_STATUS_STALE     0x02
00020 
00021 
00022 struct pico_eth *pico_arp_lookup(struct pico_ip4 *dst);
00023 struct pico_ip4 *pico_arp_reverse_lookup(struct pico_eth *dst);
00024 int pico_arp_create_entry(uint8_t* hwaddr, struct pico_ip4 ipv4, struct pico_device* dev);
00025 #endif