FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
lookup_context.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 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_acl_lookup_context_h
17 #define included_acl_lookup_context_h
18 
19 typedef struct {
20  /* A name of the portion of the code using the ACL infra */
22  /* text label for the first u32 user value assigned to context */
23  char *val1_label;
24  /* text label for the second u32 user value assigned to context */
25  char *val2_label;
26  /* vector of lookup contexts of this user */
29 
30 typedef struct {
31  /* vector of acl #s within this context */
33  /* index of corresponding acl_lookup_context_user_t */
35  /* per-instance user value 1 */
37  /* per-instance user value 2 */
40 
42 
43 void acl_plugin_show_lookup_context (u32 lc_index);
44 void acl_plugin_show_lookup_user (u32 user_index);
45 
46 /* These are in the hash matching for now */
50 void acl_plugin_show_tables_bihash (u32 show_bihash_verbose);
51 
52 #endif
53 
acl_plugin_show_lookup_context
void acl_plugin_show_lookup_context(u32 lc_index)
Definition: lookup_context.c:324
acl_plugin_show_lookup_user
void acl_plugin_show_lookup_user(u32 user_index)
Definition: lookup_context.c:307
acl_lookup_context_t::user_val2
u32 user_val2
Definition: lookup_context.h:38
acl_plugin_show_tables_mask_type
void acl_plugin_show_tables_mask_type(void)
Definition: hash_lookup.c:1155
acl_lookup_context_t
Definition: lookup_context.h:30
acl_lookup_context_t::context_user_id
u32 context_user_id
Definition: lookup_context.h:34
acl_plugin_lookup_context_notify_acl_change
void acl_plugin_lookup_context_notify_acl_change(u32 acl_num)
Definition: lookup_context.c:270
acl_lookup_context_user_t::val1_label
char * val1_label
Definition: lookup_context.h:23
acl_lookup_context_user_t
Definition: lookup_context.h:19
acl_plugin_show_tables_acl_hash_info
void acl_plugin_show_tables_acl_hash_info(u32 acl_index)
Definition: hash_lookup.c:1174
acl_lookup_context_user_t::val2_label
char * val2_label
Definition: lookup_context.h:25
acl_index
u32 acl_index
Definition: abf.api:60
acl_lookup_context_user_t::user_module_name
char * user_module_name
Definition: lookup_context.h:21
acl_lookup_context_t::acl_indices
u32 * acl_indices
Definition: lookup_context.h:32
acl_plugin_show_tables_bihash
void acl_plugin_show_tables_bihash(u32 show_bihash_verbose)
Definition: hash_lookup.c:1283
u32
unsigned int u32
Definition: types.h:88
acl_plugin_show_tables_applied_info
void acl_plugin_show_tables_applied_info(u32 sw_if_index)
Definition: hash_lookup.c:1233
acl_lookup_context_t::user_val1
u32 user_val1
Definition: lookup_context.h:36
acl_lookup_context_user_t::lookup_contexts
u32 * lookup_contexts
Definition: lookup_context.h:27
sw_if_index
vl_api_interface_index_t sw_if_index
Definition: wireguard.api:34