|
llmx-rtaco 0.0.1
RTNL-only netlink control-plane library for Linux (C++23).
|
Base task type for link-related netlink operations. More...
#include <nl_link_task.hxx>
Public Member Functions | |
| auto | request_payload () const -> std::span< const uint8_t > |
| Get the serialized payload for the link request. | |
| Public Member Functions inherited from llmx::rtaco::RequestTask< Derived, Result > | |
| RequestTask (SocketGuard &socket_guard, uint16_t ifindex, uint32_t sequence) noexcept | |
| Construct a RequestTask. | |
| virtual | ~RequestTask ()=default |
| Virtual destructor. | |
| auto | async_run () -> boost::asio::awaitable< std::expected< Result, std::error_code > > |
| Run the request asynchronously and return the result. | |
Protected Member Functions | |
| void | build_request (uint16_t msg_flags=NLM_F_REQUEST|NLM_F_DUMP, uint8_t family=AF_UNSPEC, uint16_t type=0, uint32_t flags=0, uint32_t change=0) |
| Protected Member Functions inherited from llmx::rtaco::RequestTask< Derived, Result > | |
| auto | socket () noexcept -> Socket & |
| auto | sequence () const noexcept -> uint32_t |
| auto | ifindex () const noexcept -> uint16_t |
Protected Attributes | |
| LinkRequest | request_ {} |
Base task type for link-related netlink operations.
LinkTask provides storage for a link-specific request (ifinfomsg) and a helper request_payload() for sending. Derived types implement prepare_request() and process_message() to handle the specific operation semantics (dump/get/etc.).
|
inlineprotected |
|
inline |
Get the serialized payload for the link request.
|
protected |