Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
interest_hitcs.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2020 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_INTEREST_HITCS_H__
17 #define __HICN_INTEREST_HITCS_H__
18 
19 #include <vlib/vlib.h>
20 #include <vnet/vnet.h>
21 
22 #include "pcs.h"
23 
35 /*
36  * Node context data; we think this is per-thread/instance
37  */
39 {
40  int id;
41  hicn_pit_cs_t *pitcs;
43 
44 /* Trace context struct */
45 typedef struct
46 {
47  u32 next_index;
48  u32 sw_if_index;
49  u8 pkt_type;
51 
52 typedef enum
53 {
54  HICN_INTEREST_HITCS_NEXT_STRATEGY,
55  HICN_INTEREST_HITCS_NEXT_IFACE4_OUT,
56  HICN_INTEREST_HITCS_NEXT_IFACE6_OUT,
57  HICN_INTEREST_HITCS_NEXT_ERROR_DROP,
58  HICN_INTEREST_HITCS_N_NEXT,
59 } hicn_interest_hitcs_next_t;
60 
61 #endif /* // __HICN_INTEREST_HITCS_H__ */
62 
63 /*
64  * fd.io coding-style-patch-verification: ON
65  *
66  * Local Variables: eval: (c-set-style "gnu") End:
67  */
hicn_pit_cs_s
Definition: pcs.h:143
hicn_interest_hitcs_runtime_s
Definition: interest_hitcs.h:38
hicn_interest_hitcs_trace_t
Definition: interest_hitcs.h:45
pcs.h