Task that retrieves a single neighbor entry.
More...
#include <nl_neighbor_get_task.hxx>
Task that retrieves a single neighbor entry.
Sends a lookup request for the given neighbor address on the specified interface and returns the corresponding NeighborEvent if found.
◆ NeighborGetTask()
| llmx::rtaco::NeighborGetTask::NeighborGetTask |
( |
SocketGuard & | socket_guard, |
|
|
uint16_t uint16_t | , |
|
|
uint32_t | sequence, |
|
|
std::span< uint8_t, 16 > | address ) |
Construct a NeighborGetTask to retrieve a single neighbor entry.
- Parameters
-
| socket_guard | Socket guard used for IO. |
| uint16_t | Interface index. |
| sequence | Netlink message sequence number. |
| address | Address bytes identifying the neighbor. |
◆ handle_done()
| auto llmx::rtaco::NeighborGetTask::handle_done |
( |
| ) |
-> std::expected< NeighborEvent, std::error_code > |
|
private |
◆ handle_error()
| auto llmx::rtaco::NeighborGetTask::handle_error |
( |
const nlmsghdr & | header | ) |
-> std::expected< NeighborEvent, std::error_code > |
|
private |
◆ handle_neighbor()
| auto llmx::rtaco::NeighborGetTask::handle_neighbor |
( |
const nlmsghdr & | header | ) |
-> std::optional< std::expected< NeighborEvent, std::error_code > > |
|
private |
◆ prepare_request()
| void llmx::rtaco::NeighborGetTask::prepare_request |
( |
| ) |
|
Prepare the netlink request to get the neighbor.
◆ process_message()
| auto llmx::rtaco::NeighborGetTask::process_message |
( |
const nlmsghdr & | header | ) |
-> std::optional< std::expected< NeighborEvent, std::error_code > > |
Process a response message and extract a NeighborEvent.
- Parameters
-
| header | Netlink message header. |
- Returns
- Optional expected NeighborEvent or error.
◆ address_
| std::array<uint8_t, 16> llmx::rtaco::NeighborGetTask::address_ |
|
private |
The documentation for this class was generated from the following files: