|
llmx-rtaco 0.0.1
RTNL-only netlink control-plane library for Linux (C++23).
|
Base task type for neighbor-related netlink operations. More...
#include <nl_neighbor_task.hxx>
Public Member Functions | |
| auto | request_payload () const -> std::span< const uint8_t > |
| Get the serialized request payload for the neighbor 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_type, uint16_t msg_flags, uint16_t ndm_state, uint8_t ndm_flags, std::span< uint8_t, 16 > address) |
| 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 | |
| NeighborRequest | request_ {} |
Base task type for neighbor-related netlink operations.
NeighborTask prepares neighbor-specific requests (ndmsg and NDA_DST) and provides request_payload() for transmission. Derived tasks implement request preparation and response parsing for neighbor probe/get/flush/etc.
|
inlineprotected |
|
inline |
Get the serialized request payload for the neighbor request.
|
protected |