Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
data_pcslookup.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2019 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 __HICN_DATA_PCSLOOKUP_H__
17 #define __HICN_DATA_PCSLOOKUP_H__
18 
19 #include "pcs.h"
20 
31 /*
32  * Node context data; we think this is per-thread/instance
33  */
35 {
36  int id;
37  hicn_pit_cs_t *pitcs;
39 
40 /* Trace context struct */
41 typedef struct
42 {
43  u32 next_index;
44  u32 sw_if_index;
45  u8 pkt_type;
47 
48 typedef enum
49 {
50  HICN_DATA_PCSLOOKUP_NEXT_DATA_FWD, /* This must be one position
51  * before the error drop!! */
52  HICN_DATA_PCSLOOKUP_NEXT_ERROR_DROP,
53  HICN_DATA_PCSLOOKUP_N_NEXT,
54 } hicn_data_pcslookup_next_t;
55 
56 #endif /* //__HICN_DATA_PCSLOOKUP_H__ */
57 
58 /*
59  * fd.io coding-style-patch-verification: ON
60  *
61  * Local Variables: eval: (c-set-style "gnu") End:
62  */
hicn_pit_cs_s
Definition: pcs.h:143
hicn_data_pcslookup_trace_t
Definition: data_pcslookup.h:41
hicn_data_pcslookup_runtime_s
Definition: data_pcslookup.h:34
pcs.h