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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef __FIB_INTERNAL_H__
17 #define __FIB_INTERNAL_H__
19 #include <vnet/ip/ip.h>
20 #include <vnet/dpo/dpo.h>
23 * Big train switch; FIB debugs on or off
27 extern void fib_prefix_from_mpls_label(mpls_label_t label,
31 extern int fib_route_path_cmp(const fib_route_path_t *rpath1,
32 const fib_route_path_t *rpath2);
36 * Add or update an entry in the FIB's forwarding table.
37 * This is called from the fib_entry code. It is not meant to be used
38 * by the client/source.
41 * The index of the FIB
44 * The prefix for the entry to add/update
47 * The data-path object to use for forwarding
49 extern void fib_table_fwding_dpo_update(u32 fib_index,
50 const fib_prefix_t *prefix,
54 * remove an entry in the FIB's forwarding table
57 * The index of the FIB
60 * The prefix for the entry to add/update
63 * The data-path object to use for forwarding
65 extern void fib_table_fwding_dpo_remove(u32 fib_index,
66 const fib_prefix_t *prefix,