FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
mfib_api.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 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 __MFIB_API_H__
17 #define __MFIB_API_H__
18 
19 #include <vnet/mfib/mfib_types.h>
20 #include <vnet/ip/ip.api_types.h>
21 
22 /**
23  * Forward declare the API type, no need to include the generated api headers
24  */
25 struct _vl_api_mfib_path;
26 
27 /**
28  * Encode and decode functions from the API types to internal types
29  */
30 extern void mfib_api_path_encode(const fib_route_path_t *in,
31  vl_api_mfib_path_t *out);
32 extern int mfib_api_path_decode(vl_api_mfib_path_t *in,
33  fib_route_path_t *out);
34 
35 extern mfib_entry_flags_t mfib_api_path_entry_flags_decode (vl_api_mfib_entry_flags_t in);
36 
38  u32 table_id,
39  u32 *fib_index);
40 
41 #endif /* __MFIB_API_H__ */
mfib_api_table_id_decode
int mfib_api_table_id_decode(fib_protocol_t fproto, u32 table_id, u32 *fib_index)
Definition: mfib_api.c:125
mfib_api_path_decode
int mfib_api_path_decode(vl_api_mfib_path_t *in, fib_route_path_t *out)
Definition: mfib_api.c:116
mfib_entry_flags_t
enum mfib_entry_flags_t_ mfib_entry_flags_t
mfib_api_path_entry_flags_decode
mfib_entry_flags_t mfib_api_path_entry_flags_decode(vl_api_mfib_entry_flags_t in)
Definition: mfib_api.c:96
fib_protocol_t
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
mfib_api_path_encode
void mfib_api_path_encode(const fib_route_path_t *in, vl_api_mfib_path_t *out)
Encode and decode functions from the API types to internal types.
Definition: mfib_api.c:69
u32
unsigned int u32
Definition: types.h:88
mfib_types.h
table_id
u32 table_id
Definition: wireguard.api:102
fib_route_path_t_
A representation of a path as described by a route producer.
Definition: fib_types.h:500