wget: Expose wget to applications
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 patches 2 repliesIn review
- v17 patches 12 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | net: Kconfig: add CONFIG_WGET symbolcmd/ net/ net/ +1 more | +12 | 1 reply | |
| 2/7 | net: wget: add definition of struct wget_http_infoinclude/ | +48 | 1 reply | |
| 3/7 | net: wget: Add interface to issue wget_requests using wget_http_infoinclude/ net/ | +18 | 0 replies | |
| 4/7 | net: wget: integrate struct wget_info into legacy wget codecmd/ net/ | +72 | 0 replies | |
| 5/7 | net: wget: make wget_with_dns return value compatible with its lwip versioninclude/ include/ net/ | +2 | 0 replies | |
| 6/7 | net/lwip: wget: put server_name and port into wget_ctxnet/ | +4 | 0 replies | |
| 7/7 | net/lwip: wget: integrate struct wget_info into wget codenet/ | +40 | 0 replies |
Reviews trailers per patch
2 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Heinrich Schuchardt |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | |
| 4/7 | |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/7] wget: Expose wget to applications
Currently the wget command is focused on downloading the next boot stage. This series proposes to set wget as a general purpose HTTP request interface. This series splits the wget code from the wget command and exposes wget HTTP requests for applications to use. This comes in preparation for an efi HTTP driver.
This series proposes to expose wget via the following struct:
/**
* struct wget_http_info - wget parameters
* @method: HTTP Method. Filled by client.
* @status_code: HTTP status code. Filled by wget.
* @file_size: download size. Filled by wget.
* @buffer_size: size of client-provided buffer. Filled by client.
* @set_bootdev: set boot device with download. Filled by client.
* @check_buffer_size: check download does not exceed buffer size.
* Filled by client.
* @hdr_cont_len: content length according to headers. Filled by wget
* @headers: buffer for headers. Filled by wget.
*/
struct wget_http_info {
enum wget_http_method method;
u32 status_code;
ulong file_size;
ulong buffer_size;
bool set_bootdev;
bool check_buffer_size;
u32 hdr_cont_len;
char *headers;
};The client can then pass such struct to wget in a network stack agnostic way.
Adriano Cordova (7):
net: Kconfig: add CONFIG_WGET symbol
net: wget: add definition of struct wget_http_info
net: wget: Add interface to issue wget_requests using wget_http_info
net: wget: integrate struct wget_info into legacy wget code
net: wget: make wget_with_dns return value compatible with its lwip
version
net/lwip: wget: put server_name and port into wget_ctx net/lwip: wget: integrate struct wget_info into wget code
cmd/Kconfig | 5 +-- cmd/net.c | 2 + include/net-common.h | 54 ++++++++++++++++++++++++- include/net-lwip.h | 9 ----- net/Kconfig | 9 +++++ net/Makefile | 2 +- net/lwip/Makefile | 2 +- net/lwip/wget.c | 50 +++++++++++++++++++++--- net/net-common.c | 14 +++++++ net/wget.c | 93 +++++++++++++++++++++++++++++++++----------- 10 files changed, 196 insertions(+), 44 deletions(-)
Signature · 1 line
2.43.0