drivers: net: sandbox: add support for NET_LWIP
authorJerome Forissier <jerome.forissier@linaro.org>
Tue, 15 Apr 2025 21:17:40 +0000 (23:17 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 23 Apr 2025 08:02:49 +0000 (10:02 +0200)
commit94289e291f2dfd93ca948295c87c6f7811951870
treec5f363307826464022927b3e936d5231fbaa0952
parentbebe7fe3eebe328ca0bbf46c5dedf6791d5b2769
drivers: net: sandbox: add support for NET_LWIP

Make the sandbox mock ethernet driver (drivers/net/sandbox.c) compatible
with NET_LWIP by not relying on any of the structures or functions
defined in net-legacy.h. This is done by providing local definitions of
the various protocol structures (Ethernet, ARP, IPv4, ICMP). Drop the
stub driver that was introduced specifically for NET_LWIP
(drivers/net/sandbox-lwip.c).

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/sandbox-lwip.c [deleted file]
drivers/net/sandbox.c