aboutsummaryrefslogtreecommitdiff
path: root/net/rarp.c
diff options
context:
space:
mode:
authorLuca Ceresoli2011-04-18 06:19:50 +0000
committerWolfgang Denk2011-05-12 19:38:19 +0200
commit03eb129f8a37f7d7d222e02330cd806d3a0aef1d (patch)
treee1b22352233ecf254859bcc7f1abc2de8a70cdde /net/rarp.c
parent8eccee7ae77140cd9780f643d2388adb29ed1a83 (diff)
NET: pass source IP address to packet handlers
This is needed for the upcoming TFTP server implementation. This also simplifies PingHandler() and fixes rxhand_f documentation. Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'net/rarp.c')
-rw-r--r--net/rarp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rarp.c b/net/rarp.c
index 9444c036453..94c86d3429b 100644
--- a/net/rarp.c
+++ b/net/rarp.c
@@ -43,7 +43,8 @@ int RarpTry;
* Handle a RARP received packet.
*/
static void
-RarpHandler(uchar * dummi0, unsigned dummi1, unsigned dummi2, unsigned dummi3)
+RarpHandler(uchar *dummi0, unsigned dummi1, IPaddr_t sip, unsigned dummi2,
+ unsigned dummi3)
{
char *s;
debug("Got good RARP\n");