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_t
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)
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)
CLIB_CACHE_LINE_ALIGN_MARK(cacheline0)
Required for pool_get_aligned.
The object that is in the data-path to perform the check.
u16 n_used_blocks
The number of blocks from the 'block' array below that have rnages configured.
u16 n_free_ranges
The total number of free ranges from all blocks.
protocol_port_range_t blocks[N_BLOCKS_PER_DPO]
the fixed size array of ranges
source_range_check_main_t source_range_check_main
struct protocol_port_range_dpo_t_ protocol_port_range_dpo_t
The object that is in the data-path to perform the check.
int set_ip_source_and_port_range_check(vlib_main_t *vm, u32 *fib_index, u32 sw_if_index, u32 is_add)