|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
28 #include <vnet/tcp/tcp.api_enum.h>
29 #include <vnet/tcp/tcp.api_types.h>
31 #define REPLY_MSG_ID_BASE tcp_main.msg_id_base
39 vl_api_tcp_configure_src_addresses_reply_t *rmp;
42 ip46_address_t first_address, last_address;
52 rv = VNET_API_ERROR_INVALID_VALUE;
58 (
vm, &first_address.ip6, &last_address.ip6,
vrf_id);
61 (
vm, &first_address.ip4, &last_address.ip4,
vrf_id);
64 REPLY_MACRO (VL_API_TCP_CONFIGURE_SRC_ADDRESSES_REPLY);
67 #include <vnet/tcp/tcp.api.c>
static clib_error_t * tcp_api_hookup(vlib_main_t *vm)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
ip46_type_t ip_address_decode(const vl_api_address_t *in, ip46_address_t *out)
Decode/Encode for struct/union types.
int tcp_configure_v4_source_address_range(vlib_main_t *vm, ip4_address_t *start, ip4_address_t *end, u32 table_id)
Configure an ipv4 source address range.
static void setup_message_id_table(api_main_t *am)
static void vl_api_tcp_configure_src_addresses_t_handler(vl_api_tcp_configure_src_addresses_t *mp)
#define REPLY_MSG_ID_BASE
static vlib_main_t * vlib_get_main(void)
VLIB_API_INIT_FUNCTION(tcp_api_hookup)
int tcp_configure_v6_source_address_range(vlib_main_t *vm, ip6_address_t *start, ip6_address_t *end, u32 table_id)
Configure an ipv6 source address range.