]> git.sur5r.net Git - u-boot/blobdiff - net/rarp.h
board/freescale/common: VSC3316/VSC3308 initialization code
[u-boot] / net / rarp.h
index 0c16d466680b8bc0872c8d7b11d081231a2b67ee..ebd748ea4eab0fb3f94013a855d16c0ade3dcd92 100644 (file)
  * MA 02111-1307 USA
  */
 
+#if defined(CONFIG_CMD_RARP)
 
 #ifndef __RARP_H__
 #define __RARP_H__
 
-#ifndef __NET_H__
 #include <net.h>
-#endif /* __NET_H__ */
-
 
 /**********************************************************************/
 /*
  *     Global functions and variables.
  */
 
-extern int     RarpTry;
+extern int RarpTry;
 
-extern void RarpRequest (void);        /* Send a RARP request */
+/* Process the receipt of a RARP packet */
+extern void rarp_receive(struct ip_udp_hdr *ip, unsigned len);
+extern void RarpRequest(void); /* Send a RARP request */
 
 /**********************************************************************/
 
 #endif /* __RARP_H__ */
+#endif