net: make dhcp_run() common for NET and NET_LWIP
authorJerome Forissier <jerome.forissier@linaro.org>
Thu, 9 Oct 2025 12:30:14 +0000 (14:30 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 22 Oct 2025 12:28:33 +0000 (14:28 +0200)
commit4b8e78585171787794611205d661b97bc5f4dd83
tree4b7b7e6cfbd66ee7c393da745e3600e201d152be
parentb24268d151a0c28772785e14703491364becda5b
net: make dhcp_run() common for NET and NET_LWIP

There are currently two implementations of dhcp_run(): one in cmd/net.c
for NET and one in net/lwip/dhcp.c for NET_LWIP. There is no
justification for that. Therefore, move the NET version into
net/net-common.c to be used by both stacks, and drop the NET_LWIP
version which by the way does not look totally correct.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Suggested-by: Tom Rini <trini@konsulko.com>
Acked-by: Benjamin Hahn <B.Hahn@phytec.de>
cmd/net.c
include/net-common.h
include/net-lwip.h
net/lwip/dhcp.c
net/net-common.c