"autoreply" flag: autogenerate standard xxx_reply_t messages
Change-Id: I72298aaae7d172082ece3a8edea4217c11b28d79 Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:
committed by
Florin Coras
parent
45d3496f3d
commit
11b8dbf78a
@@ -16,7 +16,7 @@
|
||||
|
||||
/* Define a simple binary API to control the feature */
|
||||
|
||||
define sample_macswap_enable_disable {
|
||||
autoreply define sample_macswap_enable_disable {
|
||||
/* Client identifier, set from api_main.my_client_index */
|
||||
u32 client_index;
|
||||
|
||||
@@ -29,11 +29,3 @@ define sample_macswap_enable_disable {
|
||||
/* Interface handle */
|
||||
u32 sw_if_index;
|
||||
};
|
||||
|
||||
define sample_macswap_enable_disable_reply {
|
||||
/* From the request */
|
||||
u32 context;
|
||||
|
||||
/* Return value, zero means all OK */
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
+5
-55
@@ -161,24 +161,13 @@ define acl_add_replace_reply
|
||||
@param acl_index - ACL index to delete
|
||||
*/
|
||||
|
||||
manual_print define acl_del
|
||||
autoreply manual_print define acl_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 acl_index;
|
||||
};
|
||||
|
||||
/** \brief Reply to delete the ACL
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval 0 - no error
|
||||
*/
|
||||
|
||||
define acl_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/* acl_interface_add_del(_reply) to be deprecated in lieu of acl_interface_set_acl_list */
|
||||
/** \brief Use acl_interface_set_acl_list instead
|
||||
Append/remove an ACL index to/from the list of ACLs checked for an interface
|
||||
@@ -190,7 +179,7 @@ define acl_del_reply
|
||||
@param acl_index - index of ACL for the operation
|
||||
*/
|
||||
|
||||
manual_print define acl_interface_add_del
|
||||
autoreply manual_print define acl_interface_add_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -204,17 +193,6 @@ manual_print define acl_interface_add_del
|
||||
u32 acl_index;
|
||||
};
|
||||
|
||||
/** \brief Reply to alter the ACL list
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval 0 - no error
|
||||
*/
|
||||
|
||||
define acl_interface_add_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Set the vector of input/output ACLs checked for an interface
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -224,7 +202,7 @@ define acl_interface_add_del_reply
|
||||
@param acls - vector of ACL indices
|
||||
*/
|
||||
|
||||
manual_print define acl_interface_set_acl_list
|
||||
autoreply manual_print define acl_interface_set_acl_list
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -239,12 +217,6 @@ manual_print define acl_interface_set_acl_list
|
||||
@param retval 0 - no error
|
||||
*/
|
||||
|
||||
define acl_interface_set_acl_list_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump the specific ACL contents or all of the ACLs' contents
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -341,24 +313,13 @@ define macip_acl_add_reply
|
||||
@param acl_index - MACIP ACL index to delete
|
||||
*/
|
||||
|
||||
manual_print define macip_acl_del
|
||||
autoreply manual_print define macip_acl_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 acl_index;
|
||||
};
|
||||
|
||||
/** \brief Reply to delete the MACIP ACL
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval 0 - no error
|
||||
*/
|
||||
|
||||
define macip_acl_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Add or delete a MACIP ACL to/from interface
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -367,7 +328,7 @@ define macip_acl_del_reply
|
||||
@param acl_index - MACIP ACL index
|
||||
*/
|
||||
|
||||
manual_print define macip_acl_interface_add_del
|
||||
autoreply manual_print define macip_acl_interface_add_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -377,17 +338,6 @@ manual_print define macip_acl_interface_add_del
|
||||
u32 acl_index;
|
||||
};
|
||||
|
||||
/** \brief Reply to apply/unapply the MACIP ACL
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval 0 - no error
|
||||
*/
|
||||
|
||||
define macip_acl_interface_add_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump one or all defined MACIP ACLs
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
@param pipe - pipe ID within its subport
|
||||
@param profile - pipe profile ID
|
||||
*/
|
||||
define sw_interface_set_dpdk_hqos_pipe {
|
||||
autoreply define sw_interface_set_dpdk_hqos_pipe {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 sw_if_index;
|
||||
@@ -30,15 +30,6 @@ define sw_interface_set_dpdk_hqos_pipe {
|
||||
u32 profile;
|
||||
};
|
||||
|
||||
/** \brief DPDK interface HQoS pipe profile set reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - request return code
|
||||
*/
|
||||
define sw_interface_set_dpdk_hqos_pipe_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief DPDK interface HQoS subport parameters set request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -49,7 +40,7 @@ define sw_interface_set_dpdk_hqos_pipe_reply {
|
||||
@param tc_rate - subport traffic class 0 .. 3 rates (measured in bytes/second)
|
||||
@param tc_period - enforcement period for rates (measured in milliseconds)
|
||||
*/
|
||||
define sw_interface_set_dpdk_hqos_subport {
|
||||
autoreply define sw_interface_set_dpdk_hqos_subport {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 sw_if_index;
|
||||
@@ -60,15 +51,6 @@ define sw_interface_set_dpdk_hqos_subport {
|
||||
u32 tc_period;
|
||||
};
|
||||
|
||||
/** \brief DPDK interface HQoS subport parameters set reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - request return code
|
||||
*/
|
||||
define sw_interface_set_dpdk_hqos_subport_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief DPDK interface HQoS tctbl entry set request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -77,7 +59,7 @@ define sw_interface_set_dpdk_hqos_subport_reply {
|
||||
@param tc - traffic class (0 .. 3)
|
||||
@param queue - traffic class queue (0 .. 3)
|
||||
*/
|
||||
define sw_interface_set_dpdk_hqos_tctbl {
|
||||
autoreply define sw_interface_set_dpdk_hqos_tctbl {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 sw_if_index;
|
||||
@@ -86,18 +68,9 @@ define sw_interface_set_dpdk_hqos_tctbl {
|
||||
u32 queue;
|
||||
};
|
||||
|
||||
/** \brief DPDK interface HQoS tctbl entry set reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - request return code
|
||||
*/
|
||||
define sw_interface_set_dpdk_hqos_tctbl_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* eval: (c-set-style "gnu")
|
||||
* End:
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
@param is_ipv6 - if non-zero the address is ipv6, else ipv4
|
||||
@param sw_if_index - index of the interface
|
||||
*/
|
||||
manual_print define flowperpkt_tx_interface_add_del
|
||||
autoreply manual_print define flowperpkt_tx_interface_add_del
|
||||
{
|
||||
/* Client identifier, set from api_main.my_client_index */
|
||||
u32 client_index;
|
||||
@@ -28,20 +28,7 @@ manual_print define flowperpkt_tx_interface_add_del
|
||||
u32 sw_if_index;
|
||||
};
|
||||
|
||||
/** \brief Reply to enable/disable per-packet IPFIX recording messages
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define flowperpkt_tx_interface_add_del_reply
|
||||
{
|
||||
/* From the request */
|
||||
u32 context;
|
||||
|
||||
/* Return value, zero means all OK */
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
define flowperpkt_params
|
||||
autoreply define flowperpkt_params
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -51,9 +38,3 @@ define flowperpkt_params
|
||||
u32 active_timer; /* ~0 is off, 0 is default */
|
||||
u32 passive_timer; /* ~0 is off, 0 is default */
|
||||
};
|
||||
|
||||
define flowperpkt_params_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
/* Define a simple binary API to control the feature */
|
||||
|
||||
define vxlan_gpe_ioam_export_enable_disable {
|
||||
autoreply define vxlan_gpe_ioam_export_enable_disable {
|
||||
/* Client identifier, set from api_main.my_client_index */
|
||||
u32 client_index;
|
||||
|
||||
@@ -32,11 +32,3 @@ define vxlan_gpe_ioam_export_enable_disable {
|
||||
|
||||
/* Src ip address */
|
||||
};
|
||||
|
||||
define vxlan_gpe_ioam_export_enable_disable_reply {
|
||||
/* From the request */
|
||||
u32 context;
|
||||
|
||||
/* Return value, zero means all OK */
|
||||
i32 retval;
|
||||
};
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
/* Define a simple binary API to control the feature */
|
||||
|
||||
define ioam_export_ip6_enable_disable {
|
||||
autoreply define ioam_export_ip6_enable_disable {
|
||||
/* Client identifier, set from api_main.my_client_index */
|
||||
u32 client_index;
|
||||
|
||||
@@ -32,11 +32,3 @@ define ioam_export_ip6_enable_disable {
|
||||
|
||||
/* Src ip address */
|
||||
};
|
||||
|
||||
define ioam_export_ip6_enable_disable_reply {
|
||||
/* From the request */
|
||||
u32 context;
|
||||
|
||||
/* Return value, zero means all OK */
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
/* API to control ioam caching */
|
||||
|
||||
define ioam_cache_ip6_enable_disable {
|
||||
autoreply define ioam_cache_ip6_enable_disable {
|
||||
/* Client identifier, set from api_main.my_client_index */
|
||||
u32 client_index;
|
||||
|
||||
@@ -27,11 +27,3 @@ define ioam_cache_ip6_enable_disable {
|
||||
u8 is_disable;
|
||||
|
||||
};
|
||||
|
||||
define ioam_cache_ip6_enable_disable_reply {
|
||||
/* From the request */
|
||||
u32 context;
|
||||
|
||||
/* Return value, zero means all OK */
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
@param list_name_len - length of the name of this profile list
|
||||
@param list_name - name of this profile list
|
||||
*/
|
||||
define pot_profile_add {
|
||||
autoreply define pot_profile_add {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 id;
|
||||
@@ -42,22 +42,12 @@ define pot_profile_add {
|
||||
u8 list_name[0];
|
||||
};
|
||||
|
||||
/** \brief Proof of Transit profile add / del response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define pot_profile_add_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
|
||||
/** \brief Proof of Transit(POT): Activate POT profile in the list
|
||||
@param id - id of the profile
|
||||
@param list_name_len - length of the name of this profile list
|
||||
@param list_name - name of this profile list
|
||||
*/
|
||||
define pot_profile_activate {
|
||||
autoreply define pot_profile_activate {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 id;
|
||||
@@ -65,37 +55,19 @@ define pot_profile_activate {
|
||||
u8 list_name[0];
|
||||
};
|
||||
|
||||
/** \brief Proof of Transit profile activate response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define pot_profile_activate_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Delete POT Profile
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param list_name_len - length of the name of the profile list
|
||||
@param list_name - name of profile list to delete
|
||||
*/
|
||||
define pot_profile_del {
|
||||
autoreply define pot_profile_del {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 list_name_len;
|
||||
u8 list_name[0];
|
||||
};
|
||||
|
||||
/** \brief Proof of Transit profile add / del response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define pot_profile_del_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Show POT Profiles
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
@param trace_tsp- Timestamp resolution
|
||||
@param app_data - Application specific opaque
|
||||
*/
|
||||
define trace_profile_add {
|
||||
autoreply define trace_profile_add {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 trace_type;
|
||||
@@ -32,37 +32,15 @@ define trace_profile_add {
|
||||
u32 app_data;
|
||||
};
|
||||
|
||||
/** \brief Trace profile add / del response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define trace_profile_add_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/** \brief Delete trace Profile
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
*/
|
||||
define trace_profile_del {
|
||||
autoreply define trace_profile_del {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
};
|
||||
|
||||
/** \brief Trace profile add / del response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define trace_profile_del_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/** \brief Show trace Profile
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
@param trace_enable - iOAM Trace enabled or not flag
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_enable {
|
||||
autoreply define vxlan_gpe_ioam_enable {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u16 id;
|
||||
@@ -33,38 +33,18 @@ define vxlan_gpe_ioam_enable {
|
||||
u8 trace_enable;
|
||||
};
|
||||
|
||||
/** \brief iOAM Over VxLAN-GPE - Set iOAM transport for VXLAN-GPE reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define vxlan_gpe_ioam_enable_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
|
||||
/** \brief iOAM for VxLAN-GPE disable
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param id - profile id
|
||||
*/
|
||||
define vxlan_gpe_ioam_disable
|
||||
autoreply define vxlan_gpe_ioam_disable
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u16 id;
|
||||
};
|
||||
|
||||
/** \brief vxlan_gpe_ioam disable response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define vxlan_gpe_ioam_disable_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Enable iOAM for a VNI (VXLAN-GPE)
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -73,7 +53,7 @@ define vxlan_gpe_ioam_disable_reply
|
||||
@param remote - IPv4/6 Address of the remote VTEP
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_vni_enable {
|
||||
autoreply define vxlan_gpe_ioam_vni_enable {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 vni;
|
||||
@@ -82,18 +62,6 @@ define vxlan_gpe_ioam_vni_enable {
|
||||
u8 is_ipv6;
|
||||
};
|
||||
|
||||
/** \brief Reply to enable iOAM for a VNI (VXLAN-GPE)
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_vni_enable_reply {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Disable iOAM for a VNI (VXLAN-GPE)
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -102,7 +70,7 @@ define vxlan_gpe_ioam_vni_enable_reply {
|
||||
@param remote - IPv4/6 Address of the remote VTEP
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_vni_disable {
|
||||
autoreply define vxlan_gpe_ioam_vni_disable {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 vni;
|
||||
@@ -111,19 +79,6 @@ define vxlan_gpe_ioam_vni_disable {
|
||||
u8 is_ipv6;
|
||||
};
|
||||
|
||||
/** \brief Reply to disable iOAM for a VNI (VXLAN-GPE)
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_vni_disable_reply {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
|
||||
/** \brief Enable iOAM for a VXLAN-GPE transit
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -131,7 +86,7 @@ define vxlan_gpe_ioam_vni_disable_reply {
|
||||
@param outer_fib_index- FIB index
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_transit_enable {
|
||||
autoreply define vxlan_gpe_ioam_transit_enable {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 outer_fib_index;
|
||||
@@ -139,18 +94,6 @@ define vxlan_gpe_ioam_transit_enable {
|
||||
u8 is_ipv6;
|
||||
};
|
||||
|
||||
/** \brief Reply to enable iOAM for VXLAN-GPE transit
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_transit_enable_reply {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Disable iOAM for VXLAN-GPE transit
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -158,7 +101,7 @@ define vxlan_gpe_ioam_transit_enable_reply {
|
||||
@param outer_fib_index- FIB index
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_transit_disable {
|
||||
autoreply define vxlan_gpe_ioam_transit_disable {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 outer_fib_index;
|
||||
@@ -166,16 +109,3 @@ define vxlan_gpe_ioam_transit_disable {
|
||||
u8 is_ipv6;
|
||||
};
|
||||
|
||||
/** \brief Reply to disable iOAM for VXLAN-GPE transit
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
|
||||
*/
|
||||
define vxlan_gpe_ioam_transit_disable_reply {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
|
||||
|
||||
+3
-18
@@ -8,7 +8,7 @@
|
||||
@param flow_timeout - Time in seconds after which, if no packet is received
|
||||
for a given flow, the flow is removed from the established flow table.
|
||||
*/
|
||||
define lb_conf
|
||||
autoreply define lb_conf
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -18,11 +18,6 @@ define lb_conf
|
||||
u32 flow_timeout;
|
||||
};
|
||||
|
||||
define lb_conf_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Add a virtual address (or prefix)
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -33,7 +28,7 @@ define lb_conf_reply {
|
||||
for this VIP (must be power of 2).
|
||||
@param is_del - The VIP should be removed.
|
||||
*/
|
||||
define lb_add_del_vip {
|
||||
autoreply define lb_add_del_vip {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 ip_prefix[16];
|
||||
@@ -43,11 +38,6 @@ define lb_add_del_vip {
|
||||
u8 is_del;
|
||||
};
|
||||
|
||||
define lb_add_del_vip_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Add an application server for a given VIP
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -56,7 +46,7 @@ define lb_add_del_vip_reply {
|
||||
@param as_address - The application server address (IPv4 in lower order 32 bits).
|
||||
@param is_del - The AS should be removed.
|
||||
*/
|
||||
define lb_add_del_as {
|
||||
autoreply define lb_add_del_as {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 vip_ip_prefix[16];
|
||||
@@ -64,8 +54,3 @@ define lb_add_del_as {
|
||||
u8 as_address[16];
|
||||
u8 is_del;
|
||||
};
|
||||
|
||||
define lb_add_del_as_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
@@ -57,7 +57,7 @@ define memif_create_reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param sw_if_index - software index of the interface to delete
|
||||
*/
|
||||
define memif_delete
|
||||
autoreply define memif_delete
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -65,16 +65,6 @@ define memif_delete
|
||||
u32 sw_if_index;
|
||||
};
|
||||
|
||||
/** \brief Delete host-interface response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define memif_delete_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Memory interface details structure
|
||||
@param context - sender context, to match reply w/ request (memif_dump)
|
||||
@param sw_if_index - index of the interface
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
@param vrf_id - VRF id of tenant, ~0 means independent of VRF
|
||||
@param is_add - 1 if add, 0 if delete
|
||||
*/
|
||||
define snat_add_address_range {
|
||||
autoreply define snat_add_address_range {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 is_ip4;
|
||||
@@ -39,15 +39,6 @@ define snat_add_address_range {
|
||||
u8 is_add;
|
||||
};
|
||||
|
||||
/** \brief Add S-NAT address range reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define snat_add_address_range_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump S-NAT addresses
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -77,7 +68,7 @@ define snat_address_details {
|
||||
@param is_inside - 1 if inside, 0 if outside
|
||||
@param sw_if_index - software index of the interface
|
||||
*/
|
||||
define snat_interface_add_del_feature {
|
||||
autoreply define snat_interface_add_del_feature {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 is_add;
|
||||
@@ -85,15 +76,6 @@ define snat_interface_add_del_feature {
|
||||
u32 sw_if_index;
|
||||
};
|
||||
|
||||
/** \brief Enable/disable S-NAT feature on the interface reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define snat_interface_add_del_feature_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump interfaces with S-NAT feature
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -130,7 +112,7 @@ define snat_interface_details {
|
||||
used)
|
||||
@param vfr_id - VRF ID
|
||||
*/
|
||||
define snat_add_static_mapping {
|
||||
autoreply define snat_add_static_mapping {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 is_add;
|
||||
@@ -145,15 +127,6 @@ define snat_add_static_mapping {
|
||||
u32 vrf_id;
|
||||
};
|
||||
|
||||
/** \brief Add/delete S-NAT static mapping reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define snat_add_static_mapping_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump S-NAT static mappings
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -257,21 +230,12 @@ define snat_show_config_reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param worker_mask - S-NAT workers mask
|
||||
*/
|
||||
define snat_set_workers {
|
||||
autoreply define snat_set_workers {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u64 worker_mask;
|
||||
};
|
||||
|
||||
/** \brief Set S-NAT workers reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define snat_set_workers_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump S-NAT workers
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -300,7 +264,7 @@ define snat_worker_details {
|
||||
@param is_add - 1 if add, 0 if delete
|
||||
@param sw_if_index - software index of the interface
|
||||
*/
|
||||
define snat_add_del_interface_addr {
|
||||
autoreply define snat_add_del_interface_addr {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 is_add;
|
||||
@@ -308,15 +272,6 @@ define snat_add_del_interface_addr {
|
||||
u32 sw_if_index;
|
||||
};
|
||||
|
||||
/** \brief Add/delete S-NAT pool address from specific interfce reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define snat_add_del_interface_addr_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump S-NAT pool addresses interfaces
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -342,7 +297,7 @@ define snat_interface_addr_details {
|
||||
@param src_port - source port number
|
||||
@param enable - 1 if enable, 0 if disable
|
||||
*/
|
||||
define snat_ipfix_enable_disable {
|
||||
autoreply define snat_ipfix_enable_disable {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 domain_id;
|
||||
@@ -350,15 +305,6 @@ define snat_ipfix_enable_disable {
|
||||
u8 enable;
|
||||
};
|
||||
|
||||
/** \brief Enable/disable S-NAT IPFIX logging reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define snat_ipfix_enable_disable_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump S-NAT users
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -437,7 +383,7 @@ define snat_user_session_details {
|
||||
@param out_addr - outside IP address
|
||||
@param out_addr - outside IP address prefix length
|
||||
*/
|
||||
define snat_add_det_map {
|
||||
autoreply define snat_add_det_map {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u8 is_add;
|
||||
@@ -449,15 +395,6 @@ define snat_add_det_map {
|
||||
u8 out_plen;
|
||||
};
|
||||
|
||||
/** \brief Add/delete S-NAT deterministic mapping reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define snat_add_det_map_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Get outside address and port range from inside address
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -556,7 +493,7 @@ define snat_det_map_details {
|
||||
@param tcp_transitory - TCP transitory timeout (default 240sec)
|
||||
@param icmp - ICMP timeout (default 60sec)
|
||||
*/
|
||||
define snat_det_set_timeouts {
|
||||
autoreply define snat_det_set_timeouts {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 udp;
|
||||
@@ -565,15 +502,6 @@ define snat_det_set_timeouts {
|
||||
u32 icmp;
|
||||
};
|
||||
|
||||
/** \brief Set values of timeouts for deterministic NAT reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define snat_det_set_timeouts_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Get values of timeouts for deterministic NAT (seconds)
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
|
||||
@@ -38,7 +38,7 @@ void generate (YYSTYPE);
|
||||
%token NAME RPAR LPAR SEMI LBRACK RBRACK NUMBER PRIMTYPE BARF
|
||||
%token TPACKED DEFINE LCURLY RCURLY STRING UNION
|
||||
%token HELPER_STRING COMMA
|
||||
%token NOVERSION MANUAL_PRINT MANUAL_ENDIAN TYPEONLY DONT_TRACE
|
||||
%token NOVERSION MANUAL_PRINT MANUAL_ENDIAN TYPEONLY DONT_TRACE AUTOREPLY
|
||||
|
||||
%%
|
||||
|
||||
@@ -64,6 +64,7 @@ flag:
|
||||
| MANUAL_ENDIAN {$$ = $1;}
|
||||
| DONT_TRACE {$$ = $1;}
|
||||
| TYPEONLY {$$ = $1;}
|
||||
| AUTOREPLY {$$ = $1;}
|
||||
;
|
||||
|
||||
defn: DEFINE NAME LCURLY defbody RCURLY SEMI
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
#include "lex.h"
|
||||
#include "node.h"
|
||||
#include "tools/vppapigen/gram.h"
|
||||
#include <vppinfra/clib.h>
|
||||
#include <vppinfra/fifo.h>
|
||||
#include <vppinfra/format.h>
|
||||
|
||||
FILE *ifp, *ofp, *pythonfp, *jsonfp;
|
||||
char *vlib_app_name = "vpp";
|
||||
@@ -38,6 +41,9 @@ int current_filename_allocated;
|
||||
unsigned long input_crc;
|
||||
unsigned long message_crc;
|
||||
int yydebug;
|
||||
char *push_input_fifo;
|
||||
char saved_ungetc_char;
|
||||
char have_ungetc_char;
|
||||
|
||||
/*
|
||||
* lexer variable definitions
|
||||
@@ -469,9 +475,50 @@ static char namebuf [MAXNAME];
|
||||
static inline char
|
||||
getc_char (FILE *ifp)
|
||||
{
|
||||
char rv;
|
||||
|
||||
if (have_ungetc_char) {
|
||||
have_ungetc_char = 0;
|
||||
return saved_ungetc_char;
|
||||
}
|
||||
|
||||
if (clib_fifo_elts (push_input_fifo)) {
|
||||
clib_fifo_sub1(push_input_fifo, rv);
|
||||
return (rv & 0x7f);
|
||||
}
|
||||
return ((char)(getc(ifp) & 0x7f));
|
||||
}
|
||||
|
||||
u32 fe (char *fifo)
|
||||
{
|
||||
return clib_fifo_elts (fifo);
|
||||
}
|
||||
|
||||
static inline void
|
||||
ungetc_char (char c, FILE *ifp)
|
||||
{
|
||||
saved_ungetc_char = c;
|
||||
have_ungetc_char = 1;
|
||||
}
|
||||
|
||||
void autoreply (void *np_arg)
|
||||
{
|
||||
static u8 *s;
|
||||
node_t *np = (node_t *)np_arg;
|
||||
int i;
|
||||
|
||||
vec_reset_length (s);
|
||||
|
||||
s = format (0, " define %s_reply\n", (char *)(np->data[0]));
|
||||
s = format (s, "{\n");
|
||||
s = format (s, " u32 context;\n");
|
||||
s = format (s, " i32 retval;\n");
|
||||
s = format (s, "};\n");
|
||||
|
||||
for (i = 0; i < vec_len (s); i++)
|
||||
clib_fifo_add1 (push_input_fifo, s[i]);
|
||||
}
|
||||
|
||||
/*
|
||||
* yylex (well, yylex_1: The real yylex below does crc-hackery)
|
||||
*/
|
||||
@@ -595,7 +642,7 @@ static int yylex_1 (void)
|
||||
return (EOF);
|
||||
|
||||
if (!isalnum (c) && c != '_') {
|
||||
ungetc (c, ifp);
|
||||
ungetc_char (c, ifp);
|
||||
namebuf [nameidx] = 0;
|
||||
the_lexer_state = START_STATE;
|
||||
return (name_check (namebuf, &yylval));
|
||||
@@ -616,7 +663,7 @@ static int yylex_1 (void)
|
||||
return (EOF);
|
||||
|
||||
if (!isdigit (c)) {
|
||||
ungetc (c, ifp);
|
||||
ungetc_char (c, ifp);
|
||||
namebuf [nameidx] = 0;
|
||||
the_lexer_state = START_STATE;
|
||||
yylval = (void *) atol(namebuf);
|
||||
@@ -889,6 +936,7 @@ int yylex (void)
|
||||
case MANUAL_ENDIAN: code = 276; break;
|
||||
case TYPEONLY: code = 278; break;
|
||||
case DONT_TRACE: code = 279; break;
|
||||
case AUTOREPLY: code = 280; break;
|
||||
|
||||
case EOF: code = ~0; break; /* hysterical compatibility */
|
||||
|
||||
@@ -929,6 +977,7 @@ static struct keytab {
|
||||
} keytab [] =
|
||||
/* Keep the table sorted, binary search used below! */
|
||||
{
|
||||
{"autoreply", NODE_AUTOREPLY},
|
||||
{"define", NODE_DEFINE},
|
||||
{"dont_trace", NODE_DONT_TRACE},
|
||||
{"f64", NODE_F64},
|
||||
@@ -1005,6 +1054,10 @@ static int name_check (const char *s, YYSTYPE *token_value)
|
||||
*token_value = (YYSTYPE) NODE_FLAG_DONT_TRACE;
|
||||
return(DONT_TRACE);
|
||||
|
||||
case NODE_AUTOREPLY:
|
||||
*token_value = (YYSTYPE) NODE_FLAG_AUTOREPLY;
|
||||
return(AUTOREPLY);
|
||||
|
||||
case NODE_NOVERSION:
|
||||
return(NOVERSION);
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
extern int yylex (void);
|
||||
extern void yyerror (char *);
|
||||
extern int yyparse (void);
|
||||
extern void autoreply (void *);
|
||||
|
||||
#ifndef YYSTYPE
|
||||
#define YYSTYPE void *
|
||||
|
||||
@@ -1050,6 +1050,11 @@ YYSTYPE set_flags(YYSTYPE a1, YYSTYPE a2)
|
||||
flags = (int)(uword) a1;
|
||||
|
||||
np->flags |= flags;
|
||||
|
||||
/* Generate a foo_reply_t right here */
|
||||
if (flags & NODE_FLAG_AUTOREPLY)
|
||||
autoreply(np);
|
||||
|
||||
return (a2);
|
||||
}
|
||||
/*
|
||||
|
||||
@@ -53,6 +53,7 @@ enum node_subclass { /* WARNING: indices must match the vft... */
|
||||
NODE_MANUAL_PRINT,
|
||||
NODE_MANUAL_ENDIAN,
|
||||
NODE_DONT_TRACE,
|
||||
NODE_AUTOREPLY,
|
||||
};
|
||||
|
||||
enum passid {
|
||||
@@ -84,6 +85,7 @@ typedef struct node_ {
|
||||
#define NODE_FLAG_MANUAL_ENDIAN (1<<1)
|
||||
#define NODE_FLAG_TYPEONLY (1<<3)
|
||||
#define NODE_FLAG_DONT_TRACE (1<<4)
|
||||
#define NODE_FLAG_AUTOREPLY (1<<5)
|
||||
|
||||
typedef struct node_vft_ {
|
||||
void (*print)(struct node_ *);
|
||||
|
||||
@@ -72,7 +72,7 @@ define memclnt_read_timeout {
|
||||
/*
|
||||
* RPC
|
||||
*/
|
||||
define rpc_call {
|
||||
autoreply define rpc_call {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u64 function;
|
||||
@@ -82,11 +82,6 @@ define rpc_call {
|
||||
u8 data[0];
|
||||
};
|
||||
|
||||
define rpc_reply {
|
||||
i32 retval;
|
||||
u32 context;
|
||||
};
|
||||
|
||||
/*
|
||||
* Lookup message-ID base by name
|
||||
*/
|
||||
|
||||
@@ -1275,7 +1275,7 @@ VLIB_CLI_COMMAND (cli_show_api_plugin_command, static) = {
|
||||
static void
|
||||
vl_api_rpc_call_t_handler (vl_api_rpc_call_t * mp)
|
||||
{
|
||||
vl_api_rpc_reply_t *rmp;
|
||||
vl_api_rpc_call_reply_t *rmp;
|
||||
int (*fp) (void *);
|
||||
i32 rv = 0;
|
||||
vlib_main_t *vm = vlib_get_main ();
|
||||
@@ -1305,7 +1305,7 @@ vl_api_rpc_call_t_handler (vl_api_rpc_call_t * mp)
|
||||
if (q)
|
||||
{
|
||||
rmp = vl_msg_api_alloc_as_if_client (sizeof (*rmp));
|
||||
rmp->_vl_msg_id = ntohs (VL_API_RPC_REPLY);
|
||||
rmp->_vl_msg_id = ntohs (VL_API_RPC_CALL_REPLY);
|
||||
rmp->context = mp->context;
|
||||
rmp->retval = rv;
|
||||
vl_msg_api_send_shmem (q, (u8 *) & rmp);
|
||||
@@ -1318,7 +1318,7 @@ vl_api_rpc_call_t_handler (vl_api_rpc_call_t * mp)
|
||||
}
|
||||
|
||||
static void
|
||||
vl_api_rpc_reply_t_handler (vl_api_rpc_reply_t * mp)
|
||||
vl_api_rpc_call_reply_t_handler (vl_api_rpc_call_reply_t * mp)
|
||||
{
|
||||
clib_warning ("unimplemented");
|
||||
}
|
||||
@@ -1415,7 +1415,7 @@ vl_api_trace_plugin_msg_ids_t_handler (vl_api_trace_plugin_msg_ids_t * mp)
|
||||
|
||||
#define foreach_rpc_api_msg \
|
||||
_(RPC_CALL,rpc_call) \
|
||||
_(RPC_REPLY,rpc_reply)
|
||||
_(RPC_CALL_REPLY,rpc_call_reply)
|
||||
|
||||
#define foreach_plugin_trace_msg \
|
||||
_(TRACE_PLUGIN_MSG_IDS,trace_plugin_msg_ids)
|
||||
|
||||
+11
-121
@@ -18,43 +18,23 @@
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param sw_if_index - interface to use as echo source
|
||||
*/
|
||||
define bfd_udp_set_echo_source
|
||||
autoreply define bfd_udp_set_echo_source
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 sw_if_index;
|
||||
};
|
||||
|
||||
/** \brief Set BFD feature response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define bfd_udp_set_echo_source_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Delete BFD echo source
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
*/
|
||||
define bfd_udp_del_echo_source
|
||||
autoreply define bfd_udp_del_echo_source
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
};
|
||||
|
||||
/** \brief Delete BFD echo source response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define bfd_udp_del_echo_source_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Add UDP BFD session on interface
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -69,7 +49,7 @@ define bfd_udp_del_echo_source_reply
|
||||
@param bfd_key_id - key id sent out in BFD packets (if is_authenticated)
|
||||
@param conf_key_id - id of already configured key (if is_authenticated)
|
||||
*/
|
||||
define bfd_udp_add
|
||||
autoreply define bfd_udp_add
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -85,16 +65,6 @@ define bfd_udp_add
|
||||
u32 conf_key_id;
|
||||
};
|
||||
|
||||
/** \brief Add UDP BFD session response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define bfd_udp_add_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Modify UDP BFD session on interface
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -106,7 +76,7 @@ define bfd_udp_add_reply
|
||||
@param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
|
||||
@param detect_mult - detect multiplier (# of packets missed before connection goes down)
|
||||
*/
|
||||
define bfd_udp_mod
|
||||
autoreply define bfd_udp_mod
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -119,16 +89,6 @@ define bfd_udp_mod
|
||||
u8 detect_mult;
|
||||
};
|
||||
|
||||
/** \brief Modify UDP BFD session response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define bfd_udp_mod_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Delete UDP BFD session on interface
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -137,7 +97,7 @@ define bfd_udp_mod_reply
|
||||
@param peer_addr - peer address
|
||||
@param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
|
||||
*/
|
||||
define bfd_udp_del
|
||||
autoreply define bfd_udp_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -147,16 +107,6 @@ define bfd_udp_del
|
||||
u8 is_ipv6;
|
||||
};
|
||||
|
||||
/** \brief Delete UDP BFD session response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define bfd_udp_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Get all BFD sessions
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -206,7 +156,7 @@ define bfd_udp_session_details
|
||||
@param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
|
||||
@param admin_up_down - set the admin state, 1 = up, 0 = down
|
||||
*/
|
||||
define bfd_udp_session_set_flags
|
||||
autoreply define bfd_udp_session_set_flags
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -217,23 +167,13 @@ define bfd_udp_session_set_flags
|
||||
u8 admin_up_down;
|
||||
};
|
||||
|
||||
/** \brief Reply to bfd_udp_session_set_flags
|
||||
@param context - sender context which was passed in the request
|
||||
@param retval - return code of the set flags request
|
||||
*/
|
||||
define bfd_udp_session_set_flags_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Register for BFD events
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param enable_disable - 1 => register for events, 0 => cancel registration
|
||||
@param pid - sender's pid
|
||||
*/
|
||||
define want_bfd_events
|
||||
autoreply define want_bfd_events
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -241,16 +181,6 @@ define want_bfd_events
|
||||
u32 pid;
|
||||
};
|
||||
|
||||
/** \brief Reply for BFD events registration
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define want_bfd_events_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief BFD UDP - add/replace key to configuration
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -259,7 +189,7 @@ define want_bfd_events_reply
|
||||
@param auth_type - authentication type (RFC 5880/4.1/Auth Type)
|
||||
@param key - key data
|
||||
*/
|
||||
define bfd_auth_set_key
|
||||
autoreply define bfd_auth_set_key
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -269,16 +199,6 @@ define bfd_auth_set_key
|
||||
u8 key[20];
|
||||
};
|
||||
|
||||
/** \brief BFD UDP - add/replace key reply
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define bfd_auth_set_key_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief BFD UDP - delete key from configuration
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -286,23 +206,13 @@ define bfd_auth_set_key_reply
|
||||
@param key_len - length of key (must be non-zero)
|
||||
@param key - key data
|
||||
*/
|
||||
define bfd_auth_del_key
|
||||
autoreply define bfd_auth_del_key
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 conf_key_id;
|
||||
};
|
||||
|
||||
/** \brief BFD UDP - delete key reply
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define bfd_auth_del_key_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Get a list of configured authentication keys
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -338,7 +248,7 @@ define bfd_auth_keys_details
|
||||
@param bfd_key_id - key id sent out in BFD packets
|
||||
@param conf_key_id - id of already configured key
|
||||
*/
|
||||
define bfd_udp_auth_activate
|
||||
autoreply define bfd_udp_auth_activate
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -351,16 +261,6 @@ define bfd_udp_auth_activate
|
||||
u32 conf_key_id;
|
||||
};
|
||||
|
||||
/** \brief BFD UDP - activate/change authentication reply
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define bfd_udp_auth_activate_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief BFD UDP - deactivate authentication
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -370,7 +270,7 @@ define bfd_udp_auth_activate_reply
|
||||
@param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
|
||||
@param is_delayed - change is applied once peer applies the change (on first received non-authenticated packet)
|
||||
*/
|
||||
define bfd_udp_auth_deactivate
|
||||
autoreply define bfd_udp_auth_deactivate
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -381,16 +281,6 @@ define bfd_udp_auth_deactivate
|
||||
u8 is_delayed;
|
||||
};
|
||||
|
||||
/** \brief BFD UDP - deactivate authentication reply
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define bfd_udp_auth_deactivate_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* eval: (c-set-style "gnu")
|
||||
|
||||
@@ -92,7 +92,7 @@ define classify_add_del_table_reply
|
||||
VRF id if action is 1 or 2.
|
||||
@param match[] - for add, match value for session, required
|
||||
*/
|
||||
define classify_add_del_session
|
||||
autoreply define classify_add_del_session
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -106,16 +106,6 @@ define classify_add_del_session
|
||||
u8 match[0];
|
||||
};
|
||||
|
||||
/** \brief Classify add / del session response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the add/del session request
|
||||
*/
|
||||
define classify_add_del_session_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Set/unset policer classify interface
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -127,7 +117,7 @@ define classify_add_del_session_reply
|
||||
Note: User is recommeneded to use just one valid table_index per call.
|
||||
(ip4_table_index, ip6_table_index, or l2_table_index)
|
||||
*/
|
||||
define policer_classify_set_interface
|
||||
autoreply define policer_classify_set_interface
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -138,16 +128,6 @@ define policer_classify_set_interface
|
||||
u8 is_add;
|
||||
};
|
||||
|
||||
/** \brief Set/unset policer classify interface response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define policer_classify_set_interface_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Get list of policer classify interfaces and tables
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -308,7 +288,7 @@ define classify_session_details
|
||||
Note: User is recommeneded to use just one valid table_index per call.
|
||||
(ip4_table_index, ip6_table_index, or l2_table_index)
|
||||
*/
|
||||
define flow_classify_set_interface {
|
||||
autoreply define flow_classify_set_interface {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 sw_if_index;
|
||||
@@ -317,15 +297,6 @@ define flow_classify_set_interface {
|
||||
u8 is_add;
|
||||
};
|
||||
|
||||
/** \brief Set/unset flow classify interface response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define flow_classify_set_interface_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Get list of flow classify interfaces and tables
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -353,4 +324,4 @@ define flow_classify_details {
|
||||
* eval: (c-set-style "gnu")
|
||||
* End:
|
||||
*/
|
||||
|
||||
|
||||
|
||||
+3
-25
@@ -20,7 +20,7 @@
|
||||
@param enable_disable - 1 => enable, 0 => disable
|
||||
*/
|
||||
|
||||
define cop_interface_enable_disable
|
||||
autoreply define cop_interface_enable_disable
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -28,17 +28,6 @@ define cop_interface_enable_disable
|
||||
u8 enable_disable;
|
||||
};
|
||||
|
||||
/** \brief cop: interface enable/disable junk filtration reply
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
|
||||
define cop_interface_enable_disable_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief cop: enable/disable whitelist filtration features on an interface
|
||||
Note: the supplied fib_id must match in order to remove the feature!
|
||||
|
||||
@@ -51,7 +40,7 @@ define cop_interface_enable_disable_reply
|
||||
@param default_cop - 1 => enable non-ip4, non-ip6 filtration 0=> disable it
|
||||
*/
|
||||
|
||||
define cop_whitelist_enable_disable
|
||||
autoreply define cop_whitelist_enable_disable
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -62,17 +51,6 @@ define cop_whitelist_enable_disable
|
||||
u8 default_cop;
|
||||
};
|
||||
|
||||
/** \brief cop: interface enable/disable junk filtration reply
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
|
||||
define cop_whitelist_enable_disable_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief get_node_graph - get a copy of the vpp node graph
|
||||
including the current set of graph arcs.
|
||||
|
||||
@@ -85,4 +63,4 @@ define cop_whitelist_enable_disable_reply
|
||||
* eval: (c-set-style "gnu")
|
||||
* End:
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ define af_packet_create_reply
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param host_if_name - interface name
|
||||
*/
|
||||
define af_packet_delete
|
||||
autoreply define af_packet_delete
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -54,16 +54,6 @@ define af_packet_delete
|
||||
u8 host_if_name[64];
|
||||
};
|
||||
|
||||
/** \brief Delete host-interface response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define af_packet_delete_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* eval: (c-set-style "gnu")
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
@param is_pipe - is pipe
|
||||
@param is_master - 0=slave, 1=master
|
||||
*/
|
||||
define netmap_create
|
||||
autoreply define netmap_create
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -34,22 +34,12 @@ define netmap_create
|
||||
u8 is_master;
|
||||
};
|
||||
|
||||
/** \brief Create netmap response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define netmap_create_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Delete netmap
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param netmap_if_name - interface name
|
||||
*/
|
||||
define netmap_delete
|
||||
autoreply define netmap_delete
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -57,16 +47,6 @@ define netmap_delete
|
||||
u8 netmap_if_name[64];
|
||||
};
|
||||
|
||||
/** \brief Delete netmap response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define netmap_delete_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* eval: (c-set-style "gnu")
|
||||
|
||||
@@ -53,7 +53,7 @@ define create_vhost_user_if_reply
|
||||
@param sock_filename - unix socket filename, used to speak with frontend
|
||||
@param operation_mode - polling=0, interrupt=1, or adaptive=2
|
||||
*/
|
||||
define modify_vhost_user_if
|
||||
autoreply define modify_vhost_user_if
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -65,36 +65,16 @@ define modify_vhost_user_if
|
||||
u8 operation_mode;
|
||||
};
|
||||
|
||||
/** \brief vhost-user interface modify response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define modify_vhost_user_if_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief vhost-user interface delete request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
*/
|
||||
define delete_vhost_user_if
|
||||
autoreply define delete_vhost_user_if
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 sw_if_index;
|
||||
};
|
||||
|
||||
/** \brief vhost-user interface delete response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define delete_vhost_user_if_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Vhost-user interface details structure (fix this)
|
||||
@param sw_if_index - index of the interface
|
||||
@param interface_name - name of interface
|
||||
|
||||
+4
-34
@@ -24,7 +24,7 @@
|
||||
@param dhcp_server[] - server address
|
||||
@param dhcp_src_address[] - <fix this, need details>
|
||||
*/
|
||||
define dhcp_proxy_config
|
||||
autoreply define dhcp_proxy_config
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -36,16 +36,6 @@ define dhcp_proxy_config
|
||||
u8 dhcp_src_address[16];
|
||||
};
|
||||
|
||||
/** \brief DHCP Proxy config response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define dhcp_proxy_config_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief DHCP Proxy set / unset vss request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -55,7 +45,7 @@ define dhcp_proxy_config_reply
|
||||
@param is_ipv6 - ip6 if non-zero, else ip4
|
||||
@param is_add - set vss if non-zero, else delete
|
||||
*/
|
||||
define dhcp_proxy_set_vss
|
||||
autoreply define dhcp_proxy_set_vss
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -66,16 +56,6 @@ define dhcp_proxy_set_vss
|
||||
u8 is_add;
|
||||
};
|
||||
|
||||
/** \brief DHCP proxy set / unset vss response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define dhcp_proxy_set_vss_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief DHCP Client config add / del request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -86,7 +66,7 @@ define dhcp_proxy_set_vss_reply
|
||||
via dhcp_compl_event API message if non-zero
|
||||
@param pid - sender's pid
|
||||
*/
|
||||
define dhcp_client_config
|
||||
autoreply define dhcp_client_config
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -97,16 +77,6 @@ define dhcp_client_config
|
||||
u32 pid;
|
||||
};
|
||||
|
||||
/** \brief DHCP Client config response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define dhcp_client_config_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Tell client about a DHCP completion event
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param pid - client pid registered to receive notification
|
||||
@@ -162,4 +132,4 @@ manual_endian manual_print define dhcp_proxy_details
|
||||
* Local Variables:
|
||||
* eval: (c-set-style "gnu")
|
||||
* End:
|
||||
*/
|
||||
*/
|
||||
|
||||
+3
-29
@@ -24,7 +24,7 @@
|
||||
@param template_interval - number of seconds after which to resend template
|
||||
@param udp_checksum - UDP checksum calculation enable flag
|
||||
*/
|
||||
define set_ipfix_exporter
|
||||
autoreply define set_ipfix_exporter
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -37,15 +37,6 @@ define set_ipfix_exporter
|
||||
u8 udp_checksum;
|
||||
};
|
||||
|
||||
/** \brief Reply to IPFIX exporter configure request
|
||||
@param context - sender context which was passed in the request
|
||||
*/
|
||||
define set_ipfix_exporter_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief IPFIX exporter dump request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -84,22 +75,13 @@ define ipfix_exporter_details
|
||||
@param domain_id - domain ID reported in IPFIX messages for classify stream
|
||||
@param src_port - source port of UDP session for classify stream
|
||||
*/
|
||||
define set_ipfix_classify_stream {
|
||||
autoreply define set_ipfix_classify_stream {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 domain_id;
|
||||
u16 src_port;
|
||||
};
|
||||
|
||||
/** \brief IPFIX classify stream configure response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return value for request
|
||||
*/
|
||||
define set_ipfix_classify_stream_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief IPFIX classify stream dump request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -127,7 +109,7 @@ define ipfix_classify_stream_details {
|
||||
@param ip_version - version of IP used in the classifier table
|
||||
@param transport_protocol - transport protocol used in the classifier table or 255 for unspecified
|
||||
*/
|
||||
define ipfix_classify_table_add_del {
|
||||
autoreply define ipfix_classify_table_add_del {
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 table_id;
|
||||
@@ -136,14 +118,6 @@ define ipfix_classify_table_add_del {
|
||||
u8 is_add;
|
||||
};
|
||||
|
||||
/** \brief IPFIX add classifier table response
|
||||
@param context - sender context which was passed in the request
|
||||
*/
|
||||
define ipfix_classify_table_add_del_reply {
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief IPFIX classify tables dump request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
|
||||
+9
-99
@@ -6,7 +6,7 @@
|
||||
@param link_up_down - Oper state sent on change event, not used in config.
|
||||
@param deleted - interface was deleted
|
||||
*/
|
||||
define sw_interface_set_flags
|
||||
autoreply define sw_interface_set_flags
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -17,23 +17,13 @@ define sw_interface_set_flags
|
||||
u8 deleted;
|
||||
};
|
||||
|
||||
/** \brief Reply to sw_interface_set_flags
|
||||
@param context - sender context which was passed in the request
|
||||
@param retval - return code of the set flags request
|
||||
*/
|
||||
define sw_interface_set_flags_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Set interface MTU
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param sw_if_index - index of the interface to set MTU on
|
||||
@param mtu - MTU
|
||||
*/
|
||||
define sw_interface_set_mtu
|
||||
autoreply define sw_interface_set_mtu
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -41,23 +31,13 @@ define sw_interface_set_mtu
|
||||
u16 mtu;
|
||||
};
|
||||
|
||||
/** \brief Reply to sw_interface_set_mtu
|
||||
@param context - sender context which was passed in the request
|
||||
@param retval - return code of the set flags request
|
||||
*/
|
||||
define sw_interface_set_mtu_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Register for interface events
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param enable_disable - 1 => register for events, 0 => cancel registration
|
||||
@param pid - sender's pid
|
||||
*/
|
||||
define want_interface_events
|
||||
autoreply define want_interface_events
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -65,16 +45,6 @@ define want_interface_events
|
||||
u32 pid;
|
||||
};
|
||||
|
||||
/** \brief Reply for interface events registration
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define want_interface_events_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Interface details structure (fix this)
|
||||
@param sw_if_index - index of the interface
|
||||
@param sup_sw_if_index - index of parent interface if any, else same as sw_if_index
|
||||
@@ -184,7 +154,7 @@ define sw_interface_dump
|
||||
@param address_length - address length in bytes, 4 for ip4, 16 for ip6
|
||||
@param address - array of address bytes
|
||||
*/
|
||||
define sw_interface_add_del_address
|
||||
autoreply define sw_interface_add_del_address
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -196,16 +166,6 @@ define sw_interface_add_del_address
|
||||
u8 address[16];
|
||||
};
|
||||
|
||||
/** \brief Reply to sw_interface_add_del_address
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define sw_interface_add_del_address_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Associate the specified interface with a fib table
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -213,7 +173,7 @@ define sw_interface_add_del_address_reply
|
||||
@param is_ipv6 - if non-zero ipv6, else ipv4
|
||||
@param vrf_id - fib table/vrd id to associate the interface with
|
||||
*/
|
||||
define sw_interface_set_table
|
||||
autoreply define sw_interface_set_table
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -222,16 +182,6 @@ define sw_interface_set_table
|
||||
u32 vrf_id;
|
||||
};
|
||||
|
||||
/** \brief Reply to sw_interface_set_table
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define sw_interface_set_table_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Get VRF id assigned to interface
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -280,7 +230,7 @@ define vnet_interface_counters
|
||||
@param unnumbered_sw_if_index - interface which will use the address
|
||||
@param is_add - if non-zero set the association, else unset it
|
||||
*/
|
||||
define sw_interface_set_unnumbered
|
||||
autoreply define sw_interface_set_unnumbered
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -289,38 +239,18 @@ define sw_interface_set_unnumbered
|
||||
u8 is_add;
|
||||
};
|
||||
|
||||
/** \brief Set unnumbered interface add / del response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define sw_interface_set_unnumbered_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Clear interface statistics
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param sw_if_index - index of the interface to clear statistics
|
||||
*/
|
||||
define sw_interface_clear_stats
|
||||
autoreply define sw_interface_clear_stats
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
u32 sw_if_index;
|
||||
};
|
||||
|
||||
/** \brief Reply to sw_interface_clear_stats
|
||||
@param context - sender context which was passed in the request
|
||||
@param retval - return code of the set flags request
|
||||
*/
|
||||
define sw_interface_clear_stats_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Set / clear software interface tag
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -328,7 +258,7 @@ define sw_interface_clear_stats_reply
|
||||
@param add_del - 1 = add, 0 = delete
|
||||
@param tag - an ascii tag
|
||||
*/
|
||||
define sw_interface_tag_add_del
|
||||
autoreply define sw_interface_tag_add_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -337,23 +267,13 @@ define sw_interface_tag_add_del
|
||||
u8 tag[64];
|
||||
};
|
||||
|
||||
/** \brief Reply to set / clear software interface tag
|
||||
@param context - sender context which was passed in the request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define sw_interface_tag_add_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Set an interface's MAC address
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param sw_if_index - the interface whose MAC will be set
|
||||
@param mac_addr - the new MAC address
|
||||
*/
|
||||
define sw_interface_set_mac_address
|
||||
autoreply define sw_interface_set_mac_address
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -361,16 +281,6 @@ define sw_interface_set_mac_address
|
||||
u8 mac_address[6];
|
||||
};
|
||||
|
||||
/** \brief Reply to setting an interface MAC address request
|
||||
@param context - sender context which was passed in the request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define sw_interface_set_mac_address_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* eval: (c-set-style "gnu")
|
||||
|
||||
+9
-99
@@ -136,7 +136,7 @@ define ip_neighbor_details {
|
||||
@param mac_address - l2 address of the neighbor
|
||||
@param dst_address - ip4 or ip6 address of the neighbor
|
||||
*/
|
||||
define ip_neighbor_add_del
|
||||
autoreply define ip_neighbor_add_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -150,16 +150,6 @@ define ip_neighbor_add_del
|
||||
u8 dst_address[16];
|
||||
};
|
||||
|
||||
/** \brief Reply for IP Neighbor add / delete request
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define ip_neighbor_add_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Set the ip flow hash config for a fib request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -172,7 +162,7 @@ define ip_neighbor_add_del_reply
|
||||
@param proto -if non-zero include proto in flow hash
|
||||
@param reverse - if non-zero include reverse in flow hash
|
||||
*/
|
||||
define set_ip_flow_hash
|
||||
autoreply define set_ip_flow_hash
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -186,16 +176,6 @@ define set_ip_flow_hash
|
||||
u8 reverse;
|
||||
};
|
||||
|
||||
/** \brief Set the ip flow hash config for a fib response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define set_ip_flow_hash_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief IPv6 router advertisement config request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -213,7 +193,7 @@ define set_ip_flow_hash_reply
|
||||
@param initial_count -
|
||||
@param initial_interval -
|
||||
*/
|
||||
define sw_interface_ip6nd_ra_config
|
||||
autoreply define sw_interface_ip6nd_ra_config
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -233,16 +213,6 @@ define sw_interface_ip6nd_ra_config
|
||||
u32 initial_interval;
|
||||
};
|
||||
|
||||
/** \brief IPv6 router advertisement config response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define sw_interface_ip6nd_ra_config_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief IPv6 router advertisement prefix config request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -272,7 +242,7 @@ define sw_interface_ip6nd_ra_config_reply
|
||||
preferred [ADDRCONF]. A value of all one bits
|
||||
(0xffffffff) represents infinity.
|
||||
*/
|
||||
define sw_interface_ip6nd_ra_prefix
|
||||
autoreply define sw_interface_ip6nd_ra_prefix
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -289,16 +259,6 @@ define sw_interface_ip6nd_ra_prefix
|
||||
u32 pref_lifetime;
|
||||
};
|
||||
|
||||
/** \brief IPv6 router advertisement prefix config response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define sw_interface_ip6nd_ra_prefix_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief IPv6 ND proxy config
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -306,7 +266,7 @@ define sw_interface_ip6nd_ra_prefix_reply
|
||||
@param address - The address of the host for which to proxy for
|
||||
@param is_add - Adding or deleting
|
||||
*/
|
||||
define ip6nd_proxy_add_del
|
||||
autoreply define ip6nd_proxy_add_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -315,16 +275,6 @@ define ip6nd_proxy_add_del
|
||||
u8 address[16];
|
||||
};
|
||||
|
||||
/** \brief IPv6 ND proxy response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define ip6nd_proxy_add_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief IPv6 ND proxy details returned after request
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
@@ -355,7 +305,7 @@ define ip6nd_proxy_dump
|
||||
@param sw_if_index - interface used to reach neighbor
|
||||
@param enable - if non-zero enable ip6 on interface, else disable
|
||||
*/
|
||||
define sw_interface_ip6_enable_disable
|
||||
autoreply define sw_interface_ip6_enable_disable
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -363,23 +313,13 @@ define sw_interface_ip6_enable_disable
|
||||
u8 enable; /* set to true if enable */
|
||||
};
|
||||
|
||||
/** \brief IPv6 interface enable / disable response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - return code for the request
|
||||
*/
|
||||
define sw_interface_ip6_enable_disable_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief IPv6 set link local address on interface request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param sw_if_index - interface to set link local on
|
||||
@param address[] - the new link local address
|
||||
*/
|
||||
define sw_interface_ip6_set_link_local_address
|
||||
autoreply define sw_interface_ip6_set_link_local_address
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -387,16 +327,6 @@ define sw_interface_ip6_set_link_local_address
|
||||
u8 address[16];
|
||||
};
|
||||
|
||||
/** \brief IPv6 set link local address on interface response
|
||||
@param context - sender context, to match reply w/ request
|
||||
@param retval - error code for the request
|
||||
*/
|
||||
define sw_interface_ip6_set_link_local_address_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Add / del route request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -422,7 +352,7 @@ define sw_interface_ip6_set_link_local_address_reply
|
||||
@param next_hop_out_label_stack - the next-hop output label stack, outer most first
|
||||
@param next_hop_via_label - The next-hop is a resolved via a local label
|
||||
*/
|
||||
define ip_add_del_route
|
||||
autoreply define ip_add_del_route
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -452,16 +382,6 @@ define ip_add_del_route
|
||||
u32 next_hop_out_label_stack[next_hop_n_out_labels];
|
||||
};
|
||||
|
||||
/** \brief Reply for add / del route request
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define ip_add_del_route_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Add / del route request
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
@param context - sender context, to match reply w/ request
|
||||
@@ -470,7 +390,7 @@ define ip_add_del_route_reply
|
||||
|
||||
FIXME
|
||||
*/
|
||||
define ip_mroute_add_del
|
||||
autoreply define ip_mroute_add_del
|
||||
{
|
||||
u32 client_index;
|
||||
u32 context;
|
||||
@@ -488,16 +408,6 @@ define ip_mroute_add_del
|
||||
u8 src_address[16];
|
||||
};
|
||||
|
||||
/** \brief Reply for add / del mroute request
|
||||
@param context - returned sender context, to match reply w/ request
|
||||
@param retval - return code
|
||||
*/
|
||||
define ip_mroute_add_del_reply
|
||||
{
|
||||
u32 context;
|
||||
i32 retval;
|
||||
};
|
||||
|
||||
/** \brief Dump IP multicast fib table
|
||||
@param client_index - opaque cookie to identify the sender
|
||||
*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user