Functions `if_nametoindex` and `if_indextoname` are to be defined by the
standard C library (Musl, nolibc).
Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Approved-by: Marco Schlumpp <marco@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #23
#include <vfscore/eventpoll.h>
#include <lwip/sockets.h>
+#include <sys/socket.h>
#include <lwip/priv/sockets_priv.h>
#include <lwip/api.h>
#include <lwip/sys.h>
#ifdef CONFIG_LWIP_IPV6
POSIX_SOCKET_FAMILY_REGISTER(AF_INET6, &lwip_posix_socket_ops);
#endif /* CONFIG_LWIP_IPV6 */
-
-#include <lwip/if_api.h>
-unsigned int if_nametoindex(const char *ifname)
-{
- return lwip_if_nametoindex(ifname);
-}
-
-char *if_indextoname(unsigned int ifindex, char *ifname)
-{
- return lwip_if_indextoname(ifindex, ifname);
-}