#include <nl_address_event.hxx>
|
| enum class | Type : uint16_t { UNKNOWN = 0
, NEW_ADDRESS = RTM_NEWADDR
, DELETE_ADDRESS = RTM_DELADDR
} |
| enum class | Flags : uint32_t {
NONE = 0
, SECONDARY = (1u << 0)
, TEMPORARY = SECONDARY
, NODAD = (1u << 1)
,
OPTIMISTIC = (1u << 2)
, DADFAILED = (1u << 3)
, HOMEADDRESS = (1u << 4)
, DEPRECATED = (1u << 5)
,
TENTATIVE = (1u << 6)
, PERMANENT = (1u << 7)
, MANAGETEMPADDR = (1u << 8)
, NOPREFIXROUTE = (1u << 9)
,
MCAUTOJOIN = (1u << 10)
, STABLE_PRIVACY = (1u << 11)
} |
◆ Flags
| Enumerator |
|---|
| NONE | |
| SECONDARY | |
| TEMPORARY | |
| NODAD | |
| OPTIMISTIC | |
| DADFAILED | |
| HOMEADDRESS | |
| DEPRECATED | |
| TENTATIVE | |
| PERMANENT | |
| MANAGETEMPADDR | |
| NOPREFIXROUTE | |
| MCAUTOJOIN | |
| STABLE_PRIVACY | |
◆ Type
| Enumerator |
|---|
| UNKNOWN | |
| NEW_ADDRESS | |
| DELETE_ADDRESS | |
◆ from_nlmsghdr()
| auto llmx::rtaco::AddressEvent::from_nlmsghdr |
( |
const nlmsghdr & | header | ) |
-> AddressEvent |
|
static |
Construct an AddressEvent from a netlink message header.
Parses the provided netlink message header and extracts address attributes into an AddressEvent structure.
- Parameters
-
| header | The netlink message header to parse. |
- Returns
- Parsed AddressEvent.
◆ address
| std::string llmx::rtaco::AddressEvent::address {} |
◆ family
| uint8_t llmx::rtaco::AddressEvent::family {0} |
◆ flags
◆ index
| int llmx::rtaco::AddressEvent::index {0} |
◆ label
| std::string llmx::rtaco::AddressEvent::label {} |
◆ prefix_len
| uint8_t llmx::rtaco::AddressEvent::prefix_len {0} |
◆ scope
| uint8_t llmx::rtaco::AddressEvent::scope {0} |
◆ type
The documentation for this struct was generated from the following files: