apps/netutils/ntpclient: Add a primitive NTP client. Initial checkin is untested and probably incomplete
This commit is contained in:
parent
c208b25f89
commit
1712f42cf3
@ -681,7 +681,8 @@
|
||||
<td><br></td>
|
||||
<td>
|
||||
<p>
|
||||
<li>Networking utilities (DHCP server and client, SMTP client, TELNET client, FTP server and client, TFTP client, HTTP server and client). Inheritable TELNET sessions (as "controlling terminal")</li>
|
||||
<li>Networking utilities (DHCP server and client, SMTP client, TELNET client, FTP server and client, TFTP client, HTTP server and client, NTP client).
|
||||
Inheritable TELNET sessions (as "controlling terminal")</li>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -409,7 +409,8 @@ extern void uip_send(struct uip_driver_s *dev, const void *buf, int len);
|
||||
|
||||
#define uip_ipaddr(addr, addr0, addr1, addr2, addr3) \
|
||||
do { \
|
||||
addr = HTONL((addr0) << 24 | (addr1) << 16 | (addr2) << 8 | (addr3)); \
|
||||
addr = HTONL((uint32_t)(addr0) << 24 | (uint32_t)(addr1) << 16 | \
|
||||
(uint32_t)(addr2) << 8 | (uint32_t)(addr3)); \
|
||||
} while(0)
|
||||
|
||||
/* Convert an IPv4 address of the form uint16_t[2] to an in_addr_t */
|
||||
|
@ -130,7 +130,7 @@ extern "C" {
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
EXTERN int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout);
|
||||
int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
|
@ -95,11 +95,11 @@ extern "C" {
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
EXTERN WDOG_ID wd_create(void);
|
||||
EXTERN int wd_delete(WDOG_ID wdog);
|
||||
EXTERN int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...);
|
||||
EXTERN int wd_cancel(WDOG_ID wdog);
|
||||
EXTERN int wd_gettime(WDOG_ID wdog);
|
||||
WDOG_ID wd_create(void);
|
||||
int wd_delete(WDOG_ID wdog);
|
||||
int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...);
|
||||
int wd_cancel(WDOG_ID wdog);
|
||||
int wd_gettime(WDOG_ID wdog);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user