5#ifndef NET_INTERFACES_H
6#define NET_INTERFACES_H
108#ifndef DOXYGEN_SKIP_THIS
110#include <utils/fmt_wrapper.h>
113struct fmt::formatter<vsdk::comms::interface_status> : fmt::formatter<std::string> {
121 -> format_context::iterator
124 return formatter<std::string>::format(status_str, ctx);
137 -> format_context::iterator
139 string_view type_str;
142 type_str =
"ethernet";
145 type_str =
"socketcan";
148 type_str =
"loopback";
152 return formatter<std::string>::format(type_str.data(), ctx);
The network_manager class.
Definition network_manager.h:59
static std::vector< interface > get_interfaces()
Return all the network interfaces available for the target.
static interface get_interface(std::string_view iface)
Return the interface information identified by iface.
interface_status
The interface_status enum.
Definition network_manager.h:25
interface_type
The interface_type enum.
Definition network_manager.h:35
@ up
interface is up
Definition network_manager.h:27
@ down
interface is down
Definition network_manager.h:26
@ can
interface is a socketcan interface, e.g. can0
Definition network_manager.h:37
@ loopback
interface is a loopback device, e.g. lo
Definition network_manager.h:36
@ normal
interface is a regular interface, e.g. eth0
Definition network_manager.h:38
Any entities that belong to the comms library.
Definition can_adapter.h:12
Any entities that belong to the Veethree SDK libraries.
Definition can_adapter.h:12
The interface struct.
Definition network_manager.h:46
interface_type type
The interface type.
Definition network_manager.h:51
std::string name
The interface name.
Definition network_manager.h:47
interface_status status
The interface status.
Definition network_manager.h:50
std::string ip
The interface IP address if available or applicable.
Definition network_manager.h:48
std::string hwaddr
The interface HW address if applicable.
Definition network_manager.h:49