7fbb2b0f7024c2a4818ca05300074d6aed3c5c1d
[vpp.git] / vnet / vnet / ip / ip_source_and_port_range_check.h
1 /*
2  * Copyright (c) 2015 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15
16 #ifndef included_ip_ip_source_and_port_range_check_h
17 #define included_ip_ip_source_and_port_range_check_h
18
19 int ip4_source_and_port_range_check_add_del (ip4_address_t * address,
20                                              u32 length,
21                                              u32 vrf_id,
22                                              u16 * low_ports,
23                                              u16 * hi_ports,
24                                              int is_add);
25
26 int set_ip_source_and_port_range_check (vlib_main_t * vm,
27                                         u32 fib_index,
28                                         u32 sw_if_index,
29                                         u32 is_add);
30
31 #endif /* included ip_source_and_port_range_check_h */