FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
fib_entry_src_default.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 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 #include "fib_entry.h"
17 #include "fib_entry_src.h"
18 #include "fib_path_list.h"
19 
20 /**
21  * Source initialisation Function
22  */
23 static void
25 {
26 }
27 
28 /**
29  * Source deinitialisation Function
30  */
31 static void
33 {
34 }
35 
36 static void
38 {
39 }
40 
41 /**
42  * Source deinitialisation Function
43  */
44 static void
46 {
47 }
48 
49 static void
52  const ip46_address_t *next_hop,
53  u32 next_hop_sw_if_index,
54  u32 next_hop_fib_index,
55  u32 next_hop_weight)
56 {
57 }
58 
59 static void
62  const ip46_address_t *next_hop,
63  u32 next_hop_sw_if_index,
64  u32 next_hop_fib_index,
65  u32 next_hop_weight)
66 {
67 }
68 
69 
70 /*
71  * Source activate.
72  * Called when the source is teh new longer best source on the entry
73  */
74 static void
76  const fib_entry_t *fib_entry)
77 {
78 }
79 
80 /*
81  * Source Deactivate.
82  * Called when the source is no longer best source on the entry
83  */
84 static void
86  const fib_entry_t *fib_entry)
87 {
88 }
89 
90 static void
94 {
95 }
96 
97 static void
99 {
100 }
101 
104  .fesv_deinit = fib_entry_src_default_deinit,
105  .fesv_add = fib_entry_src_default_add,
106  .fesv_remove = fib_entry_src_default_remove,
107  .fesv_path_add = fib_entry_src_default_path_add,
108  .fesv_path_remove = fib_entry_src_default_path_remove,
109  .fesv_activate = fib_entry_src_default_activate,
110  .fesv_deactivate = fib_entry_src_default_deactivate,
111 };
112 
113 void
115 {
117  &default_src_vft);
118 }
fib_entry.h
fib_entry_src_default_activate
static void fib_entry_src_default_activate(fib_entry_src_t *src, const fib_entry_t *fib_entry)
Definition: fib_entry_src_default.c:75
fib_entry_src_default_deinit
static void fib_entry_src_default_deinit(fib_entry_src_t *src)
Source deinitialisation Function.
Definition: fib_entry_src_default.c:32
fib_entry_t_
An entry in a FIB table.
Definition: fib_entry.h:305
fib_entry_src_default_remove
static void fib_entry_src_default_remove(fib_entry_src_t *src)
Definition: fib_entry_src_default.c:98
fib_entry_src_default_path_add
static void fib_entry_src_default_path_add(fib_entry_src_t *src, fib_protocol_t proto, const ip46_address_t *next_hop, u32 next_hop_sw_if_index, u32 next_hop_fib_index, u32 next_hop_weight)
Definition: fib_entry_src_default.c:50
fib_entry_src_t_
Information related to the source of a FIB entry.
Definition: fib_entry.h:197
fib_entry_src_default_deactivate
static void fib_entry_src_default_deactivate(fib_entry_src_t *src, const fib_entry_t *fib_entry)
Definition: fib_entry_src_default.c:85
FIB_SOURCE_BH_DROP
@ FIB_SOURCE_BH_DROP
If you're adding a new source from a plugin pick one of these.
Definition: fib_source.h:206
default_src_vft
const static fib_entry_src_vft_t default_src_vft
Definition: fib_entry_src_default.c:102
fib_entry_src.h
fib_entry_src_vft_t_
Virtual function table each FIB entry source will register.
Definition: fib_entry_src.h:195
fib_entry_flag_t
enum fib_entry_flag_t_ fib_entry_flag_t
fib_entry_src_default_path_remove
static void fib_entry_src_default_path_remove(fib_entry_src_t *src, fib_protocol_t proto, const ip46_address_t *next_hop, u32 next_hop_sw_if_index, u32 next_hop_fib_index, u32 next_hop_weight)
Definition: fib_entry_src_default.c:60
fib_entry_src_default_add
static void fib_entry_src_default_add(fib_entry_src_t *src, fib_entry_flag_t flags, fib_protocol_t proto)
Definition: fib_entry_src_default.c:91
fib_entry_src_default_init
static void fib_entry_src_default_init(fib_entry_src_t *src)
Source initialisation Function.
Definition: fib_entry_src_default.c:24
src
vl_api_address_t src
Definition: gre.api:54
fib_protocol_t
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
fib_entry_src_cover_change
static void fib_entry_src_cover_change(fib_entry_src_t *src)
Definition: fib_entry_src_default.c:37
fib_entry_src_default_register
void fib_entry_src_default_register(void)
Definition: fib_entry_src_default.c:114
fib_path_list.h
u32
unsigned int u32
Definition: types.h:88
fib_entry_src_vft_t_::fesv_init
fib_entry_src_init_t fesv_init
Definition: fib_entry_src.h:196
fib_entry_src_behaviour_register
void fib_entry_src_behaviour_register(fib_source_behaviour_t bh, const fib_entry_src_vft_t *vft)
Definition: fib_entry_src.c:61
proto
vl_api_ip_proto_t proto
Definition: acl_types.api:51
flags
vl_api_wireguard_peer_flags_t flags
Definition: wireguard.api:105