summaryrefslogtreecommitdiffstats
path: root/net/sntp.c
Commit message (Collapse)AuthorAgeFilesLines
* net: dns: return error codesSascha Hauer2018-11-291-3/+3
| | | | | | | | | | | | | | The resolv() function used to return the IP address. When net_udp_new() fails we return an error code though which the callers of resolv() take as an IP address. This is wrong of course and we could return 0 in this case. Instead we return an error code and pass the resolved IP as a pointer which allows us to return proper error codes. This patch also adds error messages and error returns to the various callers of resolv() which used to just continue with a zero IP and let the user figure out what went wrong. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Add SNTP supportSascha Hauer2016-01-071-0/+171
| | | | | | | | This adds support for retrieving the time via Simple Network Time Protocol (SNTP). No fancy features are supported, only plainly getting the current time. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove sntp support. Has been broken for long enoughSascha Hauer2009-10-131-131/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove switch/case in NetLoop()Sascha Hauer2009-10-131-1/+3
| | | | | | | | Instead of having a big switch/case for every protocol, do the right things in the individual functions before callong NetLoop(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: split NetLoop in NetLoop and NetLoopInitSascha Hauer2009-10-131-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* svn_rev_108Sascha Hauer2007-07-051-5/+39
| | | | removed ifdefs, moved ping to own file, fix timeout handler
* Fix problems with SNTP support;wdenk2005-04-021-9/+8
| | | | enable SNTP support in some boards.
* * Patch by Masami Komiya, 30 Mar 2005:wdenk2005-04-011-0/+93
add SNTP support and expand time server and time offset fields of DHCP support. See doc/README.SNTP * Patch by Steven Scholz, 13 Dec 2004: Fix bug in at91rm920 ethernet driver