mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
net: Move ARP out of net.c
Separate this functionality out of the net.c behemoth Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
1735188329
commit
d280d3f430
5 changed files with 259 additions and 197 deletions
30
net/arp.h
Normal file
30
net/arp.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copied from Linux Monitor (LiMon) - Networking.
|
||||
*
|
||||
* Copyright 1994 - 2000 Neil Russell.
|
||||
* (See License)
|
||||
* Copyright 2000 Roland Borde
|
||||
* Copyright 2000 Paolo Scaffardi
|
||||
* Copyright 2000-2002 Wolfgang Denk, wd@denx.de
|
||||
*/
|
||||
|
||||
#ifndef __ARP_H__
|
||||
#define __ARP_H__
|
||||
|
||||
#include <common.h>
|
||||
|
||||
extern IPaddr_t NetArpWaitPacketIP;
|
||||
/* MAC address of waiting packet's destination */
|
||||
extern uchar *NetArpWaitPacketMAC;
|
||||
/* THE transmit packet */
|
||||
extern uchar *NetArpWaitTxPacket;
|
||||
extern int NetArpWaitTxPacketSize;
|
||||
extern ulong NetArpWaitTimerStart;
|
||||
extern int NetArpWaitTry;
|
||||
|
||||
void ArpInit(void);
|
||||
void ArpRequest(void);
|
||||
void ArpTimeoutCheck(void);
|
||||
void ArpReceive(Ethernet_t *et, IP_t *ip, int len);
|
||||
|
||||
#endif /* __ARP_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue