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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef __included_vnet_input_acl_h__
17 #define __included_vnet_input_acl_h__
19 #include <vlib/vlib.h>
20 #include <vnet/vnet.h>
21 #include <vnet/classify/vnet_classify.h>
28 } input_acl_table_id_t;
32 ACL_NEXT_INDEX_N_NEXT,
37 /* classifier table vectors */
38 u32 * classify_table_index_by_sw_if_index [INPUT_ACL_N_TABLES];
40 /* convenience variables */
41 vlib_main_t * vlib_main;
42 vnet_main_t * vnet_main;
43 vnet_classify_main_t * vnet_classify_main;
44 vnet_config_main_t * vnet_config_main [INPUT_ACL_N_TABLES];
47 extern input_acl_main_t input_acl_main;
49 int vnet_set_input_acl_intfc (vlib_main_t * vm, u32 sw_if_index,
52 u32 l2_table_index, u32 is_add);
54 #endif /* __included_vnet_input_acl_h__ */