29 uint8_t default_router,
30 uint32_t max_interval)
31 : m_suppress(suppress)
35 , m_send_unicast(send_unicast)
37 , m_default_router(default_router)
38 , m_max_interval(max_interval)
39 , m_min_interval((max_interval * 3) / 4)
42 , m_initial_interval(16)
48 ra_config.suppress = m_suppress;
49 ra_config.managed = m_managed;
50 ra_config.other = m_other;
51 ra_config.ll_option = m_ll_option;
52 ra_config.send_unicast = m_send_unicast;
53 ra_config.cease = m_cease;
54 ra_config.max_interval = m_max_interval;
55 ra_config.min_interval = m_min_interval;
56 ra_config.lifetime = m_lifetime;
57 ra_config.initial_count = m_initial_count;
58 ra_config.initial_interval = m_initial_interval;
64 return ((m_suppress == other.m_suppress) &&
65 (m_send_unicast == other.m_send_unicast) &&
66 (m_default_router == other.m_default_router) &&
67 (m_max_interval == other.m_max_interval));
76 <<
" suppress:" << m_suppress <<
" send-unicast:" << m_send_unicast
77 <<
" default-router:" << m_default_router
78 <<
" max_interval:" << m_max_interval <<
"]";
ra_config(uint8_t suppress, uint8_t send_unicast, uint8_t default_router, uint32_t max_interval)
Construct a new object matching the desried state.
DEFINE_VAPI_MSG_IDS_IP6_ND_API_JSON
std::string to_string() const
convert to string format for debug purposes
bool operator==(const ra_config &ra_config) const
Comparison operator - only used for UT.
void to_vpp(vapi_payload_sw_interface_ip6nd_ra_config &ra_config) const
convert the ra config to VPP API
The VPP Object Model (VOM) library.
A representation of Router Advertisement configuration.