mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02: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:
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__ */
|
Reference in New Issue
Block a user