diff options
| author | Roman Yeryomin <roman@advem.lv> | 2012-09-13 00:40:35 +0300 |
|---|---|---|
| committer | Roman Yeryomin <roman@advem.lv> | 2013-05-26 00:44:46 +0300 |
| commit | a27354c9021a8423ef8c7d2bffad49cbf639eec1 (patch) | |
| tree | 2355929a4b8cf1888cd0797cfabdb42e0077c524 /target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h | |
| parent | 24a776baeb5d3cd903b144c89ceb11c5bc36a49e (diff) | |
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h')
| -rw-r--r-- | target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h b/target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h new file mode 100644 index 000000000..73ed95a2b --- /dev/null +++ b/target/linux/realtek/files/include/net/rtl/rtl865x_arp_api.h @@ -0,0 +1,27 @@ +#ifndef RTL865X_ARP_API_H +#define RTL865X_ARP_API_H + +#define RTL865X_ARPTBL_SIZE 512 + +typedef struct rtl865x_arpMapping_entry_s +{ + ipaddr_t ip; + ether_addr_t mac; +}rtl865x_arpMapping_entry_t; + + +struct rtl865x_arp_table { + uint8 allocBitmap[64]; + rtl865x_arpMapping_entry_t mappings[512]; +}; + +/*for linux protocol stack sync*/ +int32 rtl865x_addArp(ipaddr_t ip, ether_addr_t * mac); +int32 rtl865x_delArp(ipaddr_t ip); +uint32 rtl865x_arpSync( ipaddr_t ip, uint32 refresh ); +int32 rtl865x_getArpMapping(ipaddr_t ip, rtl865x_arpMapping_entry_t * arp_mapping); +#if defined(CONFIG_RTL_MULTIPLE_WAN) +int32 rtl_set_callback_for_ps_arp(int (*call_back_fn)(u32 ip,rtl865x_arpMapping_entry_t *entry)); +#endif + +#endif |
