You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/net/interface_info.cpp

16 lines
311 B
C++

#include "interface_info.hpp"
namespace llarp::net
{
std::string
InterfaceInfo::ToString() const
{
return fmt::format(
"{}[i={}; addrs={}; gw={}]",
name,
index,
fmt::join(addrs, ","),
gateway ? net::ToString(*gateway) : "none");
}
} // namespace llarp::net