summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-06-17 15:52:44 +0100
committerChris Luke <chris_luke@cable.comcast.com>2016-06-18 02:50:44 +0000
commita18e413085b1986889b06a2ecc4c618c3f788c0c (patch)
tree5d1a7ca08c053803cb5d9aa9fe1dc6d2383690d1 /vnet
parentb5adaeab2fe89844db678a7a2d61d45b5d4cc4c8 (diff)
Give correct argument to ip_call_add_del_adjacency_callbacks
ip_call_add_del_adjacency_callbacks requires an adjacency index, not a sw_if_index. Change-Id: I4ae6a6bbbe0abee4791217463d353c56f9735ba3 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/ip/ip6_forward.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/ip/ip6_forward.c b/vnet/vnet/ip/ip6_forward.c
index f77b99ef31b..86ee8d5ba2b 100644
--- a/vnet/vnet/ip/ip6_forward.c
+++ b/vnet/vnet/ip/ip6_forward.c
@@ -350,7 +350,7 @@ ip6_add_del_route_next_hop (ip6_main_t * im,
ip6_adjacency_set_interface_route (vnm, adj,
next_hop_sw_if_index, ~0);
ip_call_add_del_adjacency_callbacks
- (lm, next_hop_sw_if_index, /* is_del */ 0);
+ (lm, nh_adj_index, /* is_del */ 0);
hash_set (im->interface_route_adj_index_by_sw_if_index,
next_hop_sw_if_index, nh_adj_index);
}