diff options
author | Neale <nranns@cisco.com> | 2016-07-01 13:00:09 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-07-07 19:33:43 +0000 |
commit | e9dbd2b7819efdb2a3d2f92334c2e25849068e00 (patch) | |
tree | d576bc91e0dc7af186d0099cad41636144dccff3 /vnet/vnet/ip/ip4.h | |
parent | 689acafcabbc229a89cdbe5e628ca5e7a573afb2 (diff) |
VPP-142 Recursive route sending traffic to wrong interface
Indirect routes should always result in an indriect adjacency even when the route's next-hop is covered by a connceted, since the covering route may change and no tracking is in place.
Some de-duplication of code for installing indirect routes via the CLI and API.
Change-Id: I7a440ffba43ae3990b68cb407244c06bd0827534
Signed-off-by: Neale <nranns@cisco.com>
Diffstat (limited to 'vnet/vnet/ip/ip4.h')
-rw-r--r-- | vnet/vnet/ip/ip4.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vnet/vnet/ip/ip4.h b/vnet/vnet/ip/ip4.h index 7ed5bf5e9a9..5ea4ebf56ef 100644 --- a/vnet/vnet/ip/ip4.h +++ b/vnet/vnet/ip/ip4.h @@ -355,6 +355,13 @@ void ip4_add_del_route_next_hop (ip4_main_t * im, u32 next_hop_weight, u32 adj_index, u32 explicit_fib_index); +u32 +ip4_route_get_next_hop_adj (ip4_main_t * im, + u32 fib_index, + ip4_address_t *next_hop, + u32 next_hop_sw_if_index, + u32 explicit_fib_index); + void * ip4_get_route (ip4_main_t * im, u32 fib_index_or_table_id, |