diff options
Diffstat (limited to 'vnet/vnet/ip/lookup.h')
-rw-r--r-- | vnet/vnet/ip/lookup.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vnet/vnet/ip/lookup.h b/vnet/vnet/ip/lookup.h index 02ab20d11d9..42869350dff 100644 --- a/vnet/vnet/ip/lookup.h +++ b/vnet/vnet/ip/lookup.h @@ -373,9 +373,9 @@ ip_get_adjacency (ip_lookup_main_t * lm, { ip_adjacency_t * adj; - adj = heap_elt_at_index (lm->adjacency_heap, adj_index); + adj = vec_elt_at_index (lm->adjacency_heap, adj_index); - ASSERT (! heap_is_free_handle (lm->adjacency_heap, adj->heap_handle)); + ASSERT (adj->heap_handle != ~0); return adj; } @@ -483,7 +483,4 @@ do { \ void ip_lookup_init (ip_lookup_main_t * lm, u32 ip_lookup_node_index); -serialize_function_t serialize_ip_lookup_main, unserialize_ip_lookup_main; -serialize_function_t serialize_vec_ip_adjacency, unserialize_vec_ip_adjacency; - #endif /* included_ip_lookup_h */ |