FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
fib_api.h
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 #ifndef __FIB_API_H__
17 #define __FIB_API_H__
18 
19 
20 int
22  u32 table_id,
23  u32 next_hop_sw_if_index,
24  dpo_proto_t next_hop_table_proto,
25  u32 next_hop_table_id,
26  u8 is_rpf_id,
27  u32 * fib_index, u32 * next_hop_fib_index);
28 
29 int
30 add_del_route_t_handler (u8 is_multipath,
31  u8 is_add,
32  u8 is_drop,
33  u8 is_unreach,
34  u8 is_prohibit,
35  u8 is_local,
36  u8 is_multicast,
37  u8 is_classify,
38  u32 classify_table_index,
39  u8 is_resolve_host,
40  u8 is_resolve_attached,
41  u8 is_interface_rx,
42  u8 is_rpf_id,
43  u8 is_l2_bridged,
44  u8 is_source_lookup,
45  u8 is_udp_encap,
46  u32 fib_index,
47  const fib_prefix_t * prefix,
48  dpo_proto_t next_hop_proto,
49  const ip46_address_t * next_hop,
50  u32 next_hop_id,
51  u32 next_hop_sw_if_index,
52  u8 next_hop_fib_index,
53  u16 next_hop_weight,
54  u16 next_hop_preference,
55  mpls_label_t next_hop_via_label,
56  mpls_label_t * next_hop_out_label_stack);
57 
58 void
60  void * fp_arg);
61 
62 #endif /* __FIB_API_H__ */
A representation of a fib path for fib_path_encode to convey the information to the caller...
Definition: fib_types.h:486
u32 mpls_label_t
A label value only, i.e.
Definition: packet.h:24
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
Aggregrate type for a prefix.
Definition: fib_types.h:172
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
int add_del_route_check(fib_protocol_t table_proto, u32 table_id, u32 next_hop_sw_if_index, dpo_proto_t next_hop_table_proto, u32 next_hop_table_id, u8 is_rpf_id, u32 *fib_index, u32 *next_hop_fib_index)
Definition: ip_api.c:1017
int add_del_route_t_handler(u8 is_multipath, u8 is_add, u8 is_drop, u8 is_unreach, u8 is_prohibit, u8 is_local, u8 is_multicast, u8 is_classify, u32 classify_table_index, u8 is_resolve_host, u8 is_resolve_attached, u8 is_interface_rx, u8 is_rpf_id, u8 is_l2_bridged, u8 is_source_lookup, u8 is_udp_encap, u32 fib_index, const fib_prefix_t *prefix, dpo_proto_t next_hop_proto, const ip46_address_t *next_hop, u32 next_hop_id, u32 next_hop_sw_if_index, u8 next_hop_fib_index, u16 next_hop_weight, u16 next_hop_preference, mpls_label_t next_hop_via_label, mpls_label_t *next_hop_out_label_stack)
Definition: ip_api.c:841
unsigned int u32
Definition: types.h:88
unsigned short u16
Definition: types.h:57
unsigned char u8
Definition: types.h:56
void copy_fib_next_hop(fib_route_path_encode_t *api_rpath, void *fp_arg)
Definition: ip_api.c:178