summaryrefslogtreecommitdiffstats
path: root/net/sntp.c
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@comelit.it>2011-04-18 06:19:50 +0000
committerWolfgang Denk <wd@denx.de>2011-05-12 19:38:19 +0200
commit03eb129f8a37f7d7d222e02330cd806d3a0aef1d (patch)
treee1b22352233ecf254859bcc7f1abc2de8a70cdde /net/sntp.c
parent8eccee7ae77140cd9780f643d2388adb29ed1a83 (diff)
downloadtalos-obmc-uboot-03eb129f8a37f7d7d222e02330cd806d3a0aef1d.tar.gz
talos-obmc-uboot-03eb129f8a37f7d7d222e02330cd806d3a0aef1d.zip
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/sntp.c')
-rw-r--r--net/sntp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sntp.c b/net/sntp.c
index 76c10ecd3b..82f2fe6cd1 100644
--- a/net/sntp.c
+++ b/net/sntp.c
@@ -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;
OpenPOWER on IntegriCloud