4#ifndef DOXYGEN_SKIP_THIS
7#include <libmnl/libmnl.h>
9#include <unordered_map>
16 explicit can(std::string_view if_name);
18 ~can() noexcept final;
20 void get_config(can_parameters& param) final;
21 bool set_config(const can_parameters& param) final;
22 bool restart_adapter() final;
23 std::vector<std::
string> list_adapters() final;
26 using interfaces_info = std::unordered_map<std::
string, comms::can_parameters>;
30 std::optional<interfaces_info> send_request(netlink_msg& msg);
32 mnl_socket* _nl =
nullptr;
Class for abstracting lower level interactions with the CAN interfaces. A concrete implementation may...
Definition can_adapter_interface.h:72
@ can
interface is a socketcan interface, e.g. can0
Definition network_manager.h:37
Any entities that belong to the comms library.
Definition can_adapter.h:12