diff options
author | Luca Ceresoli <luca.ceresoli@comelit.it> | 2011-04-18 06:19:50 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-05-12 19:38:19 +0200 |
commit | 03eb129f8a37f7d7d222e02330cd806d3a0aef1d (patch) | |
tree | e1b22352233ecf254859bcc7f1abc2de8a70cdde /net/dns.c | |
parent | 8eccee7ae77140cd9780f643d2388adb29ed1a83 (diff) | |
download | u-boot-03eb129f8a37f7d7d222e02330cd806d3a0aef1d.tar.gz u-boot-03eb129f8a37f7d7d222e02330cd806d3a0aef1d.tar.bz2 u-boot-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/dns.c')
-rw-r--r-- | net/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -101,7 +101,7 @@ DnsTimeout(void) } static void -DnsHandler(uchar *pkt, unsigned dest, unsigned src, unsigned len) +DnsHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src, unsigned len) { struct header *header; const unsigned char *p, *e, *s; |