Re: [PATCH v2 2/6] net: wget: add wget with dns utility function

2023-09-14 Thread Masahisa Kojima
Hi Ilias, On Thu, 14 Sept 2023 at 21:52, Ilias Apalodimas wrote: > > Kojima-san > > [...] > > > } > > + > > +#if (IS_ENABLED(CONFIG_CMD_DNS)) > > +int wget_with_dns(ulong dst_addr, char *uri) > > +{ > > + int ret; > > + char *s, *host_name, *file_name, *str_copy; > > + > > + /* > > +

Re: [PATCH v2 2/6] net: wget: add wget with dns utility function

2023-09-14 Thread Ilias Apalodimas
Kojima-san [...] > } > + > +#if (IS_ENABLED(CONFIG_CMD_DNS)) > +int wget_with_dns(ulong dst_addr, char *uri) > +{ > + int ret; > + char *s, *host_name, *file_name, *str_copy; > + > + /* > + * Download file using wget. > + * > + * U-Boot wget takes the target uri in thi

[PATCH v2 2/6] net: wget: add wget with dns utility function

2023-09-01 Thread Masahisa Kojima
Current wget takes the target uri in this format: ":" e.g.) 192.168.1.1:/bar The http server ip address must be resolved before calling wget. This commit adds the utility function runs wget with dhs. User can call wget with the uri like "http://foo/bar";. Signed-off-by: Masahisa Kojima --- in