diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:58:03 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 14:19:24 -0500 |
commit | 8b9c53221f6ce30ad132e3202e6d445bc21ed8aa (patch) | |
tree | 0431dfeaae255e0d10bc15408f6f0c2193f28bc6 /net/rarp.h | |
parent | a36b12f95a29647a06b5459198684fc142482020 (diff) | |
download | u-boot-8b9c53221f6ce30ad132e3202e6d445bc21ed8aa.tar.gz |
net: Move RARP receive logic 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>
Diffstat (limited to 'net/rarp.h')
-rw-r--r-- | net/rarp.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/rarp.h b/net/rarp.h index 4e92d80a65..fc5b363c0a 100644 --- a/net/rarp.h +++ b/net/rarp.h @@ -21,14 +21,12 @@ * MA 02111-1307 USA */ +#if defined(CONFIG_CMD_RARP) #ifndef __RARP_H__ #define __RARP_H__ -#ifndef __NET_H__ #include <net.h> -#endif /* __NET_H__ */ - /**********************************************************************/ /* @@ -37,8 +35,11 @@ extern int RarpTry; +/* Process the receipt of a RARP packet */ +extern void rarp_receive(IP_t *ip, unsigned len); extern void RarpRequest(void); /* Send a RARP request */ /**********************************************************************/ #endif /* __RARP_H__ */ +#endif |