|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef included_ip_ip_source_and_port_range_check_h
17 #define included_ip_ip_source_and_port_range_check_h
43 #define IP_SOURCE_AND_PORT_RANGE_CHECK_RANGE_LIMIT VLIB_BUFFER_PRE_DATA_SIZE/(2*sizeof(u16x8));
64 #define N_PORT_RANGES_PER_DPO 64
65 #define N_RANGES_PER_BLOCK (sizeof(u16x8vec_t)/2)
66 #define N_BLOCKS_PER_DPO (N_PORT_RANGES_PER_DPO/N_RANGES_PER_BLOCK)
132 u16 * hi_ports,
int is_add);
139 u16 * hi_ports,
int is_add);
@ IP_SOURCE_AND_PORT_RANGE_CHECK_PROTOCOL_UDP_IN
protocol_port_range_t blocks[N_BLOCKS_PER_DPO]
the fixed size array of ranges
@ IP_SOURCE_AND_PORT_RANGE_CHECK_PROTOCOL_TCP_OUT
CLIB_CACHE_LINE_ALIGN_MARK(cacheline0)
Required for pool_get_aligned.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
int set_ip_source_and_port_range_check(vlib_main_t *vm, u32 *fib_index, u32 sw_if_index, u32 is_add)
u16 n_used_blocks
The number of blocks from the 'block' array below that have ranges configured.
source_range_check_main_t source_range_check_main
@ IP_SOURCE_AND_PORT_RANGE_CHECK_N_PROTOCOLS
int ip6_source_and_port_range_check_add_del(ip6_address_t *address, u32 length, u32 vrf_id, u16 *low_ports, u16 *hi_ports, int is_add)
manual_print typedef address
The object that is in the data-path to perform the check.
ip_source_and_port_range_check_protocol_t
struct protocol_port_range_dpo_t_ protocol_port_range_dpo_t
The object that is in the data-path to perform the check.
u16 n_free_ranges
The total number of free ranges from all blocks.
@ IP_SOURCE_AND_PORT_RANGE_CHECK_PROTOCOL_UDP_OUT
vl_api_interface_index_t sw_if_index
int ip4_source_and_port_range_check_add_del(ip4_address_t *address, u32 length, u32 vrf_id, u16 *low_ports, u16 *hi_ports, int is_add)
@ IP_SOURCE_AND_PORT_RANGE_CHECK_PROTOCOL_TCP_IN