diff options
| author | Tom Rini <[email protected]> | 2025-07-08 09:34:47 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-07-08 09:34:47 -0600 |
| commit | f75eaf7356933661ae13b1f5c815ac6ed475eab3 (patch) | |
| tree | fa5b17e5a5b2bad591c4e44a06bd6bef6cae778e /include | |
| parent | b379335f141e3ddca0cdbb5d9d39af0444530542 (diff) | |
| parent | 203be3197de1016236f55652ce8ee4cbfe3035ad (diff) | |
Merge tag 'net-next-20250708' of https://source.denx.de/u-boot/custodians/u-boot-net
Pull request net-next-20250708
lwip:
- Call sys_check_timeouts() and schedule() on RX to fix an issue on
boards with a watchdog and simplify the code
- Enable IP_FRAG and IP_REASSEMBLY
- Add support for setting the TFTP blocksize at runtime
- Fix DNS initialization in wget
- Add the sntp command
- Move code from net/lwip/${cmd}.c to cmd/lwip/${cmd}.c
Diffstat (limited to 'include')
| -rw-r--r-- | include/net-common.h | 13 | ||||
| -rw-r--r-- | include/net-lwip.h | 16 |
2 files changed, 29 insertions, 0 deletions
diff --git a/include/net-common.h b/include/net-common.h index c04f86bdfcc..1112af381a9 100644 --- a/include/net-common.h +++ b/include/net-common.h @@ -492,6 +492,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 * * @cmdtp: Command information for tftpboot @@ -574,4 +585,6 @@ extern struct wget_http_info default_wget_info; extern struct wget_http_info *wget_info; int wget_request(ulong dst_addr, char *uri, struct wget_http_info *info); +void net_sntp_set_rtc(u32 seconds); + #endif /* __NET_COMMON_H__ */ diff --git a/include/net-lwip.h b/include/net-lwip.h index b762956e8fd..f54f23471f1 100644 --- a/include/net-lwip.h +++ b/include/net-lwip.h @@ -6,6 +6,20 @@ #include <lwip/ip4.h> #include <lwip/netif.h> +/* HTTPS authentication mode */ +enum auth_mode { + AUTH_NONE, + AUTH_OPTIONAL, + AUTH_REQUIRED, +}; + +extern char *cacert; +extern size_t cacert_size; +extern enum auth_mode cacert_auth_mode; +extern bool cacert_initialized; + +int set_cacert_builtin(void); + enum proto_t { TFTPGET }; @@ -17,12 +31,14 @@ static inline int eth_is_on_demand_init(void) int eth_init_state_only(void); /* Set active state */ +int net_lwip_dns_init(void); int net_lwip_eth_start(void); struct netif *net_lwip_new_netif(struct udevice *udev); struct netif *net_lwip_new_netif_noip(struct udevice *udev); void net_lwip_remove_netif(struct netif *netif); struct netif *net_lwip_get_netif(void); int net_lwip_rx(struct udevice *udev, struct netif *netif); +int net_lwip_dns_resolve(char *name_or_ip, ip_addr_t *ip); /** * wget_validate_uri() - varidate the uri |
