From 03eb129f8a37f7d7d222e02330cd806d3a0aef1d Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Mon, 18 Apr 2011 06:19:50 +0000 Subject: 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 Cc: Wolfgang Denk Acked-by: Detlev Zundel --- net/tftp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net/tftp.c') diff --git a/net/tftp.c b/net/tftp.c index ed559b71d5..00abec3804 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -278,7 +278,8 @@ TftpSend (void) static void -TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len) +TftpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src, + unsigned len) { ushort proto; ushort *s; -- cgit v1.2.1