16 #ifndef included_vnet_dhcp6_pd_client_dp_h 17 #define included_vnet_dhcp6_pd_client_dp_h 117 typedef struct _vnet_dhcp6_pd_reply_function_list_elt
119 struct _vnet_dhcp6_pd_reply_function_list_elt
120 *next_dhcp6_pd_reply_event_function;
122 } _vnet_dhcp6_pd_reply_event_function_list_elt_t;
126 _vnet_dhcp6_pd_reply_event_function_list_elt_t *
functions;
131 #define VNET_DHCP6_PD_REPLY_EVENT_FUNCTION(f) \ 133 static void __vnet_dhcp6_pd_reply_event_function_init_##f (void) \ 134 __attribute__((__constructor__)) ; \ 136 static void __vnet_dhcp6_pd_reply_event_function_init_##f (void) \ 138 dhcp6_pd_client_public_main_t * nm = &dhcp6_pd_client_public_main; \ 139 static _vnet_dhcp6_pd_reply_event_function_list_elt_t init_function; \ 140 init_function.next_dhcp6_pd_reply_event_function = nm->functions; \ 141 nm->functions = &init_function; \ 142 init_function.fp = (void *) &f; \ 145 static void __vnet_dhcp6_pd_reply_event_function_deinit_##f (void) \ 146 __attribute__((__destructor__)) ; \ 148 static void __vnet_dhcp6_pd_reply_event_function_deinit_##f (void) \ 150 dhcp6_pd_client_public_main_t * nm = &dhcp6_pd_client_public_main; \ 151 _vnet_dhcp6_pd_reply_event_function_list_elt_t *next; \ 152 if (nm->functions->fp == (void *) &f) \ 155 nm->functions->next_dhcp6_pd_reply_event_function; \ 158 next = nm->functions; \ 159 while (next->next_dhcp6_pd_reply_event_function) \ 161 if (next->next_dhcp6_pd_reply_event_function->fp == (void *) &f) \ 163 next->next_dhcp6_pd_reply_event_function = \ 164 next->next_dhcp6_pd_reply_event_function->next_dhcp6_pd_reply_event_function; \ 167 next = next->next_dhcp6_pd_reply_event_function; \ Send DHCPv6 PD client message of specified type.
Enable/disable listening on DHCPv6 client port.
void vl_api_want_dhcp6_pd_reply_events_t_handler(vl_api_want_dhcp6_pd_reply_events_t *mp)
void vl_api_dhcp6_clients_enable_disable_t_handler(vl_api_dhcp6_clients_enable_disable_t *mp)
void dhcp6_pd_set_publisher_node(uword node_index, uword event_type)
dhcp6_pd_client_state_t * client_state_by_sw_if_index
dhcp6_pd_send_client_message_params_prefix_t * prefixes
vl_api_interface_index_t sw_if_index
int dhcp6_pd_publish_report(prefix_report_t *r)
vlib_node_registration_t dhcp6_pd_reply_process_node
(constructor) VLIB_REGISTER_NODE (dhcp6_pd_reply_process_node)
_vnet_dhcp6_pd_reply_event_function_list_elt_t * functions
void vl_api_dhcp6_pd_send_client_message_t_handler(vl_api_dhcp6_pd_send_client_message_t *mp)
dhcp6_pd_client_public_main_t dhcp6_pd_client_public_main
dhcp6_report_common_t body
u8 keep_sending_client_message
Tell client about a DHCPv6 PD server reply event.
Register for DHCPv6 PD reply events.
struct _vlib_node_registration vlib_node_registration_t
VLIB buffer representation.
dhcp6_pd_client_main_t dhcp6_pd_client_main
dhcp6_pd_send_client_message_params_t params
dhcp6_prefix_info_t * prefixes
void dhcp6_pd_send_client_message(vlib_main_t *vm, u32 sw_if_index, u8 stop, dhcp6_pd_send_client_message_params_t *params)