lwip: add sntp command

Implement the sntp command when NET_LWIP=y.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
This commit is contained in:
Jerome Forissier
2025-06-25 15:19:19 +02:00
parent 77f0bed326
commit a2a0c7527e
7 changed files with 162 additions and 6 deletions

View File

@@ -491,6 +491,17 @@ int dhcp_run(ulong addr, const char *fname, bool autoload);
*/
int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
/**
* do_sntp - Run the sntp command
*
* @cmdtp: Unused
* @flag: Command flags (CMD_FLAG_...)
* @argc: Number of arguments
* @argv: List of arguments
* Return: result (see enum command_ret_t)
*/
int do_sntp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
/**
* do_tftpb - Run the tftpboot command
*