mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:

committed by
Wolfgang Denk

parent
8eccee7ae7
commit
03eb129f8a
@ -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;
|
||||
|
Reference in New Issue
Block a user