#include <IcmpLayer.h>
Router address structure, relevant for ICMP router advertisement message type (icmp_router_advertisement)
◆ getAddress()
IPv4Address pcpp::icmp_router_address_structure::getAddress |
( |
| ) |
|
◆ setRouterAddress()
void pcpp::icmp_router_address_structure::setRouterAddress |
( |
IPv4Address |
addr, |
|
|
uint32_t |
preference |
|
) |
| |
Set router address structure from a given IPv4 address and preference level
- Parameters
-
[in] | addr | IPv4 address to set |
[in] | preference | Preference level to set |
◆ preferenceLevel
uint32_t pcpp::icmp_router_address_structure::preferenceLevel |
The preferability of the router address as a default router address, relative to other router addresses on the same subnet. This is a twos-complement value where higher values indicate that the route is more preferable
◆ routerAddress
uint32_t pcpp::icmp_router_address_structure::routerAddress |
the IPv4 address of the advertised router