llarp/net/interface_info.hpp

Namespaces

Name
llarp
[crypto.hpp]
llarp::net

Classes

Name
struct llarp::net::InterfaceInfo
info about a network interface lokinet does not own

Source code

#pragma once

#include <optional>
#include <string>
#include <vector>
#include <llarp/util/formattable.hpp>
#include "ip_range.hpp"

namespace llarp::net
{
  struct InterfaceInfo
  {
    std::string name;
    unsigned int index;
    std::vector<IPRange> addrs;

    std::string
    ToString() const;
  };
}  // namespace llarp::net

template <>
inline constexpr bool llarp::IsToStringFormattable<llarp::net::InterfaceInfo> = true;

Updated on 2026-01-10 at 22:49:45 +0000