|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
21 #include <mss_clamp/mss_clamp.api_enum.h>
22 #include <mss_clamp/mss_clamp.api_types.h>
25 #include <vpp/app/version.h>
27 #define REPLY_MSG_ID_BASE cm->msg_id_base
36 vl_api_mss_clamp_enable_disable_reply_t *rmp;
46 REPLY_MACRO (VL_API_MSS_CLAMP_ENABLE_DISABLE_REPLY);
60 dir4 = dir6 = MSS_CLAMP_DIR_NONE;
62 if (
rv == VNET_API_ERROR_FEATURE_DISABLED)
96 VL_API_MSS_CLAMP_GET_REPLY,
cm->dir_enabled4,
97 ({ send_mss_clamp_details (cursor, reg, mp->context); }));
111 #include <mss_clamp/mss_clamp.api.c>
126 .version = VPP_BUILD_VER,
127 .description =
"TCP MSS clamping plugin",
#define VALIDATE_SW_IF_INDEX(mp)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
#define REPLY_MACRO2(t, body)
vl_api_interface_index_t sw_if_index
Configured MSS values on an interface.
static void vl_api_mss_clamp_get_t_handler(vl_api_mss_clamp_get_t *mp)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vl_api_mss_clamp_dir_t ipv6_direction
vl_api_interface_index_t sw_if_index
static void setup_message_id_table(api_main_t *am)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
Reply for get TCP MSS Clamping feature settings request.
An API client registration, only in vpp/vlib.
int mssc_get_mss(u32 sw_if_index, u8 *dir4, u8 *dir6, u16 *mss4, u16 *mss6)
#define REPLY_MACRO_DETAILS4(t, rp, context, body)
int mssc_enable_disable(u32 sw_if_index, u8 dir4, u8 dir6, u16 mss4, u16 mss6)
vnet_feature_config_main_t * cm
#define REPLY_AND_DETAILS_MACRO(t, p, body)
vl_api_mss_clamp_dir_t ipv4_direction
static clib_error_t * mssc_api_hookup(vlib_main_t *vm)
vl_api_mss_clamp_dir_t ipv6_direction
#define BAD_SW_IF_INDEX_LABEL
VLIB_API_INIT_FUNCTION(mssc_api_hookup)
vl_api_mss_clamp_dir_t ipv4_direction
Get the TCP MSS Clamping feature settings.
vl_api_interface_index_t sw_if_index
static void vl_api_mss_clamp_enable_disable_t_handler(vl_api_mss_clamp_enable_disable_t *mp)
static void send_mss_clamp_details(u32 sw_if_index, vl_api_registration_t *rp, u32 context)
vl_api_interface_index_t sw_if_index
Enable/Disable TCP MSS Clamping feature on an interface.