#ifndef LLARP_NET_NET_IF_HPP #define LLARP_NET_NET_IF_HPP #ifndef _WIN32 // this file is a shim include for #include #if defined(__linux__) #include extern "C" unsigned int #ifndef __GLIBC__ if_nametoindex(const char* __ifname); #else if_nametoindex(const char* __ifname) __THROW; #endif #else #include #endif #endif namespace llarp::net { /// get the name of the loopback interface std::string LoopbackInterfaceName(); } // namespace llarp::net #endif