16 #ifndef included_vnet_dhcp6_pd_client_dp_h 17 #define included_vnet_dhcp6_pd_client_dp_h 98 const u8 * prefix_group,
u8 enable);
108 #include <dhcp/dhcp.api_types.h> 110 typedef struct _vnet_dhcp6_pd_reply_function_list_elt
112 struct _vnet_dhcp6_pd_reply_function_list_elt
113 *next_dhcp6_pd_reply_event_function;
115 } _vnet_dhcp6_pd_reply_event_function_list_elt_t;
119 _vnet_dhcp6_pd_reply_event_function_list_elt_t *
functions;
124 #define VNET_DHCP6_PD_REPLY_EVENT_FUNCTION(f) \ 126 static void __vnet_dhcp6_pd_reply_event_function_init_##f (void) \ 127 __attribute__((__constructor__)) ; \ 129 static void __vnet_dhcp6_pd_reply_event_function_init_##f (void) \ 131 dhcp6_pd_client_public_main_t * nm = &dhcp6_pd_client_public_main; \ 132 static _vnet_dhcp6_pd_reply_event_function_list_elt_t init_function; \ 133 init_function.next_dhcp6_pd_reply_event_function = nm->functions; \ 134 nm->functions = &init_function; \ 135 init_function.fp = (void *) &f; \ 138 static void __vnet_dhcp6_pd_reply_event_function_deinit_##f (void) \ 139 __attribute__((__destructor__)) ; \ 141 static void __vnet_dhcp6_pd_reply_event_function_deinit_##f (void) \ 143 dhcp6_pd_client_public_main_t * nm = &dhcp6_pd_client_public_main; \ 144 _vnet_dhcp6_pd_reply_event_function_list_elt_t *next; \ 145 if (nm->functions->fp == (void *) &f) \ 148 nm->functions->next_dhcp6_pd_reply_event_function; \ 151 next = nm->functions; \ 152 while (next->next_dhcp6_pd_reply_event_function) \ 154 if (next->next_dhcp6_pd_reply_event_function->fp == (void *) &f) \ 156 next->next_dhcp6_pd_reply_event_function = \ 157 next->next_dhcp6_pd_reply_event_function->next_dhcp6_pd_reply_event_function; \ 160 next = next->next_dhcp6_pd_reply_event_function; \
void dhcp6_pd_set_publisher_node(uword node_index, uword event_type)
dhcp6_pd_client_state_t * client_state_by_sw_if_index
int dhcp6_cp_ip6_address_add_del(u32 sw_if_index, const u8 *prefix_group, ip6_address_t address, u8 prefix_length, u8 is_add)
dhcp6_pd_send_client_message_params_prefix_t * prefixes
int dhcp6_pd_client_enable_disable(u32 sw_if_index, const u8 *prefix_group, u8 enable)
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
manual_print typedef address
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.
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)
vl_api_interface_index_t sw_if_index