36 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 43 #define foreach_sctp_api_msg \ 44 _(SCTP_ADD_SRC_DST_CONNECTION, sctp_add_src_dst_connection) \ 45 _(SCTP_DEL_SRC_DST_CONNECTION, sctp_del_src_dst_connection) \ 46 _(SCTP_CONFIG, sctp_config) 53 vl_api_sctp_add_src_dst_connection_reply_t *rmp;
65 REPLY_MACRO (VL_API_SCTP_ADD_SRC_DST_CONNECTION_REPLY);
72 vl_api_sctp_del_src_dst_connection_reply_t *rmp;
82 REPLY_MACRO (VL_API_SCTP_ADD_SRC_DST_CONNECTION_REPLY);
89 vl_api_sctp_config_reply_t *rmp;
99 #define vl_msg_name_crc_list 100 #include <vnet/sctp/sctp.api.h> 101 #undef vl_msg_name_crc_list 106 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id); 107 foreach_vl_msg_name_crc_sctp;
117 vl_msg_api_set_handlers(VL_API_##N, #n, \ 118 vl_api_##n##_t_handler, \ 120 vl_api_##n##_t_endian, \ 121 vl_api_##n##_t_print, \ 122 sizeof(vl_api_##n##_t), 1); static void vl_api_sctp_add_src_dst_connection_t_handler(vl_api_sctp_add_src_dst_connection_t *mp)
static void setup_message_id_table(api_main_t *am)
#define foreach_sctp_api_msg
struct _sctp_user_configuration sctp_user_configuration_t
u8 sctp_configure(sctp_user_configuration_t config)
VLIB_API_INIT_FUNCTION(sctp_api_hookup)
u8 sctp_sub_connection_add_ip4(vlib_main_t *vm, ip4_address_t *lcl_addr, ip4_address_t *rmt_addr)
void sctp_api_reference(void)
API main structure, used by both vpp and binary API clients.
u8 sctp_sub_connection_del_ip4(ip4_address_t *lcl_addr, ip4_address_t *rmt_addr)
static void vl_api_sctp_config_t_handler(vl_api_sctp_config_t *mp)
static void vl_api_sctp_del_src_dst_connection_t_handler(vl_api_sctp_del_src_dst_connection_t *mp)
static vlib_main_t * vlib_get_main(void)
static clib_error_t * sctp_api_hookup(vlib_main_t *vm)
u8 sctp_sub_connection_del_ip6(ip6_address_t *lcl_addr, ip6_address_t *rmt_addr)
u8 sctp_sub_connection_add_ip6(vlib_main_t *vm, ip6_address_t *lcl_addr, ip6_address_t *rmt_addr)
Configure SCTP source addresses, for active-open SCTP sessions.