FD.io VPP
v17.04-9-g99c0734
Vector Packet Processing
Main Page
Related Pages
Data Structures
Source
Files
Symbols
input_acl.h
Go to the documentation of this file.
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_vnet_input_acl_h__
17
#define __included_vnet_input_acl_h__
18
19
#include <
vlib/vlib.h
>
20
#include <
vnet/vnet.h
>
21
#include <
vnet/classify/vnet_classify.h
>
22
23
typedef
enum
{
24
INPUT_ACL_TABLE_IP4
,
25
INPUT_ACL_TABLE_IP6
,
26
INPUT_ACL_TABLE_L2
,
27
INPUT_ACL_N_TABLES
,
28
}
input_acl_table_id_t
;
29
30
typedef
enum
{
31
ACL_NEXT_INDEX_DENY
,
32
ACL_NEXT_INDEX_N_NEXT
,
33
}
acl_next_index_t
;
34
35
typedef
struct
{
36
37
/* classifier table vectors */
38
u32
* classify_table_index_by_sw_if_index [
INPUT_ACL_N_TABLES
];
39
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
];
45
}
input_acl_main_t
;
46
47
extern
input_acl_main_t
input_acl_main
;
48
49
int
vnet_set_input_acl_intfc
(
vlib_main_t
*
vm
,
u32
sw_if_index,
50
u32
ip4_table_index,
51
u32
ip6_table_index,
52
u32
l2_table_index,
u32
is_add);
53
54
#endif
/* __included_vnet_input_acl_h__ */
vnet_set_input_acl_intfc
int vnet_set_input_acl_intfc(vlib_main_t *vm, u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 l2_table_index, u32 is_add)
Definition:
input_acl.c:59
acl_next_index_t
acl_next_index_t
Definition:
input_acl.h:30
INPUT_ACL_TABLE_IP6
Definition:
input_acl.h:25
input_acl_main_t::vnet_main
vnet_main_t * vnet_main
Definition:
input_acl.h:42
INPUT_ACL_TABLE_IP4
Definition:
input_acl.h:24
ACL_NEXT_INDEX_DENY
Definition:
input_acl.h:31
ACL_NEXT_INDEX_N_NEXT
Definition:
input_acl.h:32
INPUT_ACL_N_TABLES
Definition:
input_acl.h:27
input_acl_main_t::vnet_classify_main
vnet_classify_main_t * vnet_classify_main
Definition:
input_acl.h:43
input_acl_main
input_acl_main_t input_acl_main
Definition:
input_acl.c:19
vnet_config_main_t
Definition:
config.h:86
input_acl_main_t
Definition:
input_acl.h:35
input_acl_main_t::vlib_main
vlib_main_t * vlib_main
Definition:
input_acl.h:41
vnet.h
vm
vlib_main_t * vm
Definition:
buffer.c:276
vnet_classify.h
vlib.h
vnet_classify_main_t
struct _vnet_classify_main vnet_classify_main_t
Definition:
vnet_classify.h:69
vnet_main_t
Definition:
vnet.h:52
input_acl_table_id_t
input_acl_table_id_t
Definition:
input_acl.h:23
u32
unsigned int u32
Definition:
types.h:88
INPUT_ACL_TABLE_L2
Definition:
input_acl.h:26
vlib_main_t
Definition:
main.h:59
src
vnet
classify
input_acl.h
Generated on Mon May 15 2017 20:50:03 for FD.io VPP by
1.8.11