mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
8eccee7ae7
commit
03eb129f8a
9 changed files with 44 additions and 28 deletions
|
@ -48,7 +48,8 @@ SntpTimeout (void)
|
|||
}
|
||||
|
||||
static void
|
||||
SntpHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
|
||||
SntpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
|
||||
unsigned len)
|
||||
{
|
||||
struct sntp_pkt_t *rpktp = (struct sntp_pkt_t *)pkt;
|
||||
struct rtc_time tm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue