diff options
| author | Jerome Forissier <[email protected]> | 2025-04-15 23:17:37 +0200 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2025-04-23 10:02:49 +0200 |
| commit | 761fe6719c462716b11eddc45171d952ff86dc21 (patch) | |
| tree | dbc2527b3e843b7acd6d152cf33598227ddc7209 /include | |
| 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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net-common.h | 3 | ||||
| -rw-r--r-- | include/net-legacy.h | 3 |
2 files changed, 3 insertions, 3 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); diff --git a/include/net-legacy.h b/include/net-legacy.h index bc0f0cde9fe..51780999a88 100644 --- a/include/net-legacy.h +++ b/include/net-legacy.h @@ -347,9 +347,6 @@ extern int net_ntp_time_offset; /* offset time from UTC */ int net_loop(enum proto_t); -/* Load failed. Start again. */ -int net_start_again(void); - /* Get size of the ethernet header when we send */ int net_eth_hdr_size(void); |
