FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
fib_types.api
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 /** \brief MPLS label
17 */
18 typeonly define fib_mpls_label
19 {
24 };
25 
26 /** \brief FIB path
27  @param sw_if_index - index of the interface
28  @param weight - The weight, for UCMP
29  @param preference - The preference of the path. lowest preference
30  is prefered
31  @param is_local - local if non-zero, else remote
32  @param is_drop - Drop the packet
33  @param is_unreach - Drop the packet and rate limit send ICMP unreachable
34  @param is_prohibit - Drop the packet and rate limit send ICMP prohibited
35  @param is_udp_encap - The path describes a UDP-o-IP encapsulation.
36  @param is_dvr - Does the route resolve via a DVR interface.
37  @param is_source_lookup - The the path is a deaggregate path (i.e. a lookup
38  in another table) is the lookup on the packet's
39  source address or destination.
40  @param afi - dpo_proto_t protocol that describes the next-hop address
41  @param via_label - The next-hop is a resolved via a local label
42  @param next_hop[16] - the next hop address
43  @param next_hop_id - Used when the path resolves via an object
44  that has a unique identifier. e.g. the UDP
45  encap object
46 */
47 typeonly define fib_path
48 {
64  u8 next_hop[16];
69  vl_api_fib_mpls_label_t label_stack[16];
70 };
unsigned char u8
Definition: types.h:56
unsigned int u32
Definition: types.h:88