net: ping: make do_ping() available via <net.h>
authorJerome Forissier <jerome.forissier@linaro.org>
Tue, 15 Apr 2025 21:17:42 +0000 (23:17 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 23 Apr 2025 08:02:49 +0000 (10:02 +0200)
commit1f907e559d5d29f7824115e47c9771595fdf5819
tree59100f2bbb57239b9a0717a37179807ba568f6cb
parent1772c85f7afe82d91306a45408fa7529b769e6cc
net: ping: make do_ping() available via <net.h>

Make the do_ping() function in cmd/net.c a global one by getting rid of
the static qualifier, and move the prototype declaration from net-lwip.h
to net-common.h. This makes the function available to other parts of
U-Boot when CONFIG_NET=y, as was already the case when
CONFIG_NET_LWIP=y.

This is a peparation step to make the sandbox tests use a common API
between NET and NET_LWIP.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/net.c
include/net-common.h
include/net-lwip.h