diff options
| author | Jerome Forissier <jerome.forissier@linaro.org> | 2025-04-15 23:17:37 +0200 |
|---|---|---|
| committer | Jerome Forissier <jerome.forissier@linaro.org> | 2025-04-23 10:02:49 +0200 |
| commit | 761fe6719c462716b11eddc45171d952ff86dc21 (patch) | |
| tree | dbc2527b3e843b7acd6d152cf33598227ddc7209 /include/net-common.h | |
| parent | 5666865decb8f24b4710a15be35207a62f972aee (diff) | |
net: lwip: provide net_start_again()
Implement net_start_again() when NET_LWIP=y in a very similar way to
NET. This will be used in a future commit to determine if a failed
ping needs to be tried again on a different interface.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/net-common.h')
| -rw-r--r-- | include/net-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net-common.h b/include/net-common.h index 30860f5975a..0b7edd7d76b 100644 --- a/include/net-common.h +++ b/include/net-common.h @@ -471,6 +471,9 @@ static inline struct in_addr env_get_ip(char *var) int net_init(void); +/* Called when a network operation fails to know if it should be re-tried */ +int net_start_again(void); + /* NET compatibility */ enum proto_t; int net_loop(enum proto_t protocol); |
