2018-05-07 05:58:06 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2002-07-21 04:14:13 +08:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2000
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*/
|
|
|
|
|
2012-05-23 15:58:03 +08:00
|
|
|
#if defined(CONFIG_CMD_RARP)
|
2002-07-21 04:14:13 +08:00
|
|
|
|
|
|
|
#ifndef __RARP_H__
|
|
|
|
#define __RARP_H__
|
|
|
|
|
|
|
|
#include <net.h>
|
|
|
|
|
|
|
|
/**********************************************************************/
|
|
|
|
/*
|
|
|
|
* Global functions and variables.
|
|
|
|
*/
|
|
|
|
|
2015-04-08 14:41:11 +08:00
|
|
|
extern int rarp_try;
|
2002-07-21 04:14:13 +08:00
|
|
|
|
2012-05-23 15:58:03 +08:00
|
|
|
/* Process the receipt of a RARP packet */
|
2015-04-08 14:41:11 +08:00
|
|
|
void rarp_receive(struct ip_udp_hdr *ip, unsigned len);
|
|
|
|
void rarp_request(void); /* Send a RARP request */
|
2002-07-21 04:14:13 +08:00
|
|
|
|
|
|
|
/**********************************************************************/
|
|
|
|
|
|
|
|
#endif /* __RARP_H__ */
|
2012-05-23 15:58:03 +08:00
|
|
|
#endif
|