]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/rarp.h
net: bootp: fix build
[karo-tx-uboot.git] / net / rarp.h
index 4e92d80a651225ca0bf666e3e554e1f11cc61c0a..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__ */
-
 
 /**********************************************************************/
 /*
 
 extern int RarpTry;
 
+/* 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