FD.io VPP  v19.01.2-3-gf61a1a8
Vector Packet Processing
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
fib_entry_src_default_route.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 
19 /**
20  * Source initialisation Function
21  */
22 static void
24 {
26 }
27 
28 static void
30 {
32 }
33 
34 static void
36  const fib_entry_t *entry,
38  dpo_proto_t proto,
39  const dpo_id_t *dpo)
40 {
43  dpo);
44 }
45 
46 const static fib_entry_src_vft_t interface_src_vft = {
50 };
51 
52 void
54 {
56 }
57 
58 
fib_entry_src_init_t fesv_init
u32 flags
Definition: vhost_user.h:115
vl_api_address_t src
Definition: vxlan_gbp.api:32
An entry in a FIB table.
Definition: fib_entry.h:462
Virtual function table each FIB entry source will register.
Information related to the source of a FIB entry.
Definition: fib_entry.h:354
fib_node_index_t fib_path_list_create_special(dpo_proto_t nh_proto, fib_path_list_flags_t flags, const dpo_id_t *dpo)
static void fib_entry_src_default_route_add(fib_entry_src_t *src, const fib_entry_t *entry, fib_entry_flag_t flags, dpo_proto_t proto, const dpo_id_t *dpo)
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
Definition: dpo.h:168
Definition: fib_entry.h:335
enum fib_entry_flag_t_ fib_entry_flag_t
static void fib_entry_src_default_route_init(fib_entry_src_t *src)
Source initialisation Function.
fib_entry_src_flag_t fes_flags
Flags on the source.
Definition: fib_entry.h:378
The default route source.
Definition: fib_entry.h:137
void fib_entry_src_register(fib_source_t source, const fib_entry_src_vft_t *vft)
Definition: fib_entry_src.c:56
fib_node_index_t fes_pl
The path-list created by the source.
Definition: fib_entry.h:363
#define FIB_NODE_INDEX_INVALID
Definition: fib_types.h:31
static void fib_entry_src_default_route_remove(fib_entry_src_t *src)
void fib_entry_src_default_route_register(void)