Dave Barach | b5e8a77 | 2016-12-06 12:04:42 -0500 | [diff] [blame] | 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 |
| 21 | add_del_route_check (fib_protocol_t table_proto, |
| 22 | u32 table_id, |
| 23 | u32 next_hop_sw_if_index, |
Neale Ranns | da78f95 | 2017-05-24 09:15:43 -0700 | [diff] [blame] | 24 | dpo_proto_t next_hop_table_proto, |
Dave Barach | b5e8a77 | 2016-12-06 12:04:42 -0500 | [diff] [blame] | 25 | u32 next_hop_table_id, |
Neale Ranns | 0f26c5a | 2017-03-01 15:12:11 -0800 | [diff] [blame] | 26 | u8 is_rpf_id, |
Dave Barach | b5e8a77 | 2016-12-06 12:04:42 -0500 | [diff] [blame] | 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, |
Neale Ranns | 0f26c5a | 2017-03-01 15:12:11 -0800 | [diff] [blame] | 36 | u8 is_multicast, |
Dave Barach | b5e8a77 | 2016-12-06 12:04:42 -0500 | [diff] [blame] | 37 | u8 is_classify, |
| 38 | u32 classify_table_index, |
| 39 | u8 is_resolve_host, |
| 40 | u8 is_resolve_attached, |
Neale Ranns | 0f26c5a | 2017-03-01 15:12:11 -0800 | [diff] [blame] | 41 | u8 is_interface_rx, |
| 42 | u8 is_rpf_id, |
Neale Ranns | 6f63115 | 2017-10-03 08:20:21 -0700 | [diff] [blame] | 43 | u8 is_l2_bridged, |
Neale Ranns | 054c03a | 2017-10-13 05:15:07 -0700 | [diff] [blame] | 44 | u8 is_source_lookup, |
Dave Barach | b5e8a77 | 2016-12-06 12:04:42 -0500 | [diff] [blame] | 45 | u32 fib_index, |
| 46 | const fib_prefix_t * prefix, |
Neale Ranns | da78f95 | 2017-05-24 09:15:43 -0700 | [diff] [blame] | 47 | dpo_proto_t next_hop_proto, |
Dave Barach | b5e8a77 | 2016-12-06 12:04:42 -0500 | [diff] [blame] | 48 | const ip46_address_t * next_hop, |
| 49 | u32 next_hop_sw_if_index, |
| 50 | u8 next_hop_fib_index, |
Neale Ranns | 57b5860 | 2017-07-15 07:37:25 -0700 | [diff] [blame] | 51 | u16 next_hop_weight, |
| 52 | u16 next_hop_preference, |
Dave Barach | b5e8a77 | 2016-12-06 12:04:42 -0500 | [diff] [blame] | 53 | mpls_label_t next_hop_via_label, |
| 54 | mpls_label_t * next_hop_out_label_stack); |
| 55 | |
| 56 | void |
| 57 | copy_fib_next_hop (fib_route_path_encode_t * api_rpath, |
| 58 | void * fp_arg); |
| 59 | |
| 60 | #endif /* __FIB_API_H__ */ |