net: net_utils: Move ip_to_string to lib/net_utils.c
authorAdriano Cordova <adrianox@gmail.com>
Mon, 11 Nov 2024 21:09:45 +0000 (18:09 -0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 18 Nov 2024 15:12:35 +0000 (16:12 +0100)
commit9063dba2d326e07682338cdb636787e99f1bf3f5
tree2013532b61da4c9903fea97a89e1d406dd01efa9
parent1327c2a8d6514d4abfa3642ce338fed50b811b21
net: net_utils: Move ip_to_string to lib/net_utils.c

The function string_to_ip is already in net_utils, which is
compiled unconditionally, but ip_to_string is currently only
accessible if the legacy network stack is selected. This
commit puts ip_to_string in net_utils.c and removes it from the
legacy network code.

Signed-off-by: Adriano Cordova <adrianox@gmail.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/net-common.h
lib/net_utils.c
net/net.c